From: Luke Kenneth Casson Leighton Date: Wed, 15 Sep 2021 18:43:08 +0000 (+0100) Subject: add sudo in front of chown/chgrp and make it at the top home level X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d52c804acd280b1821ce507491215ba9ef703c6;p=dev-env-setup.git add sudo in front of chown/chgrp and make it at the top home level --- diff --git a/coriolis_install b/coriolis_install index c90bee4..5769bf9 100755 --- a/coriolis_install +++ b/coriolis_install @@ -27,8 +27,8 @@ sudo apt-get install -y automake binutils-dev bison build-essential \ # Add convenience variable to chroot user .bash_profile echo -e 'export PATH=/usr/lib/ccache:"\044PATH"\nexport DISPLAY=:0.0\nexport ALLIANCE_TOP=/home/$SUDO_USER/alliance/install\nexport YOSYS_TOP=/home/$SUDO_USER/yosys\nexport LD_LIBRARY_PATH=\044{ALLIANCE_TOP}/lib:\044{LD_LIBRARY_PATH}\nexport LD_LIBRARY_PATH=\044{ALLIANCE_TOP}/lib64:\044{LD_LIBRARY_PATH}' > /home/$SUDO_USER/.bash_profile -chown $SUDO_USER /home/$SUDO_USER/.bash_profile -chgrp $SUDO_USER /home/$SUDO_USER/.bash_profile +sudo chown $SUDO_USER /home/$SUDO_USER/.bash_profile +sudo chgrp $SUDO_USER /home/$SUDO_USER/.bash_profile echo -e "Added 'export PATH=/usr/lib/ccache:\"\044PATH\"\nexport DISPLAY=:0.0' to /home/$SUDO_USER/.bash_profile to speed up rebuilds" @@ -43,7 +43,7 @@ git clone https://github.com/cliffordwolf/yosys.git cd yosys git checkout 049e3abf9baf795e69b9ecb9c4f19de6131f8418 make config-clang -# WAY too heavy a load - make -j$(nproc) +# WAY too heavy a load (18+) - make -j$(nproc) make cd /home/$SUDO_USER/yosys @@ -100,6 +100,6 @@ echo -e " " make cgt -cd /home/$SUDO_USER/src/nextpnr -chown -R $SUDO_USER . -chgrp -R $SUDO_USER . +cd /home/$SUDO_USER/ +sudo chown -R $SUDO_USER * +sudo chgrp -R $SUDO_USER *