add devscript for ls2, bork-fix nmigen dependency grr
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 26 Mar 2022 12:39:42 +0000 (12:39 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 26 Mar 2022 12:39:42 +0000 (12:39 +0000)
hdl-dev-ls2 [new file with mode: 0755]
hdl-dev-repos

diff --git a/hdl-dev-ls2 b/hdl-dev-ls2
new file mode 100755 (executable)
index 0000000..bf654b2
--- /dev/null
@@ -0,0 +1,34 @@
+#!/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
+"
+
index 8b8c819f7516a5e6c5f90a821fca586a3790d761..69b24d20942118a051a5516712d640cdd940b3d5 100755 (executable)
@@ -15,8 +15,8 @@ git clone https://git.libre-soc.org/git/nmutil.git
 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
@@ -33,6 +33,17 @@ cd ../nmigen-soc
 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