correction to gdb-gcc build script
[dev-env-setup.git] / hdl-dev-repos
index f570b2a747124f7ddaaca802594424c48c01d9a7..4116609363e15544369631108174159cf22e774c 100755 (executable)
@@ -4,27 +4,34 @@ if [ "$EUID" -ne 0 ]
   exit
 fi
 
   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
 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/c4m-jtag.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
+cd ../c4m-jtag
 python3 setup.py develop
 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 ../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 ../
 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
+"