From: Luke Kenneth Casson Leighton Date: Sat, 26 Mar 2022 12:39:42 +0000 (+0000) Subject: add devscript for ls2, bork-fix nmigen dependency grr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40202d34dd83bf61b99d9c24430fb721ae41d380;p=dev-env-setup.git add devscript for ls2, bork-fix nmigen dependency grr --- diff --git a/hdl-dev-ls2 b/hdl-dev-ls2 new file mode 100755 index 0000000..bf654b2 --- /dev/null +++ b/hdl-dev-ls2 @@ -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 +" + diff --git a/hdl-dev-repos b/hdl-dev-repos index 8b8c819..69b24d2 100755 --- a/hdl-dev-repos +++ b/hdl-dev-repos @@ -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