X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=hdl-dev-repos;h=255692bd91bdcd42b18ebd608787de77a23e01eb;hb=5b15ad60dd5118b1238636c6ad806f6551b3196e;hp=f570b2a747124f7ddaaca802594424c48c01d9a7;hpb=185bdd1ede39f69b75076d865eda7d1179c03985;p=dev-env-setup.git diff --git a/hdl-dev-repos b/hdl-dev-repos old mode 100644 new mode 100755 index f570b2a..255692b --- a/hdl-dev-repos +++ b/hdl-dev-repos @@ -4,27 +4,31 @@ if [ "$EUID" -ne 0 ] exit fi -export MYNAME=`id 1000 | awk '{print $1}' | sed 's/.*(\(.*\))/\1/'` -export MYHOME=/home/$MYNAME - -runuser $MYNAME --preserve-environment -c ' -cd /home/$MYNAME +runuser $SUDO_USER --preserve-environment -c ' +cd /home/$SUDO_USER mkdir src cd src git clone https://github.com/nmigen/nmigen.git -git clone https://git.libre-riscv.org/git/nmutil.git -git clone https://git.libre-riscv.org/git/ieee754fpu.git -git clone https://git.libre-riscv.org/git/soc.git +git clone https://git.libre-soc.org/git/nmutil.git +git clone https://git.libre-soc.org/git/ieee754fpu.git +git clone https://git.libre-soc.org/git/nmigen-soc.git +git clone https://git.libre-soc.org/git/soc.git ' -cd /home/$MYNAME/src/nmigen +cd /home/$SUDO_USER/src/nmigen python3 setup.py develop -python3 setup.py test cd ../nmutil python3 setup.py develop cd ../ieee754fpu git submodule update --init --recursive python3 setup.py develop +cd ../nmigen-soc +python3 setup.py develop cd ../soc git submodule update --init --recursive python3 setup.py develop cd ../ +chown -R $SUDO_USER . +chgrp -R $SUDO_USER . +echo -e " +\e[1;91mAll Libre-SOC dev dependenices should now be installed.\e[0m +"