--- /dev/null
+#!/bin/bash
+if [ "$EUID" -ne 0 ]
+ then echo "Please run as root using 'sudo bash'"
+ exit
+fi
+
+runuser $SUDO_USER --preserve-environment -c '
+cd /home/$SUDO_USER
+mkdir -p src
+cd src
+git clone https://git.libre-soc.org/git/ls2.git
+git clone https://git.libre-soc.org/git/gram.git
+git clone https://git.libre-soc.org/git/lambdasoc.git
+'
+# lambdasoc
+cd /home/$SUDO_USER/src/lambdasoc
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# gram
+cd ../gram
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# ls2
+# does not need an "install"... yet.
+
+cd ../
+chown -R $SUDO_USER .
+chgrp -R $SUDO_USER .
+echo -e "
+\e[1;91mAll Libre-SOC dev dependenices should now be installed.\e[0m
+"
+
git clone https://git.libre-soc.org/git/openpower-isa.git
git clone https://git.libre-soc.org/git/ieee754fpu.git
git clone https://gitlab.com/nmigen/nmigen-soc.git
+git clone https://gitlab.com/nmigen/nmigen-stdio.git
git clone https://git.libre-soc.org/git/soc.git
-git clone https://git.libre-soc.org/git/ls2.git
'
# nmigen
cd /home/$SUDO_USER/src/nmigen
git tag | xargs git tag -d # very annoying
python3 setup.py develop
+# nmigen-stdio
+cd ../nmigen-stdio
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
+# XXX GRRR run this again: TODO, resolve dependencies
+# nmigen
+cd /home/$SUDO_USER/src/nmigen
+git tag | xargs git tag -d # very annoying
+python3 setup.py develop
+
# c4m-jtag
cd ../c4m-jtag
git tag | xargs git tag -d # very annoying