From: colepoirier Date: Mon, 18 May 2020 19:58:03 +0000 (-0700) Subject: Created simple script to install and 'python3 setup.py develop' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=185bdd1ede39f69b75076d865eda7d1179c03985;p=dev-env-setup.git Created simple script to install and 'python3 setup.py develop' libre-soc dev repos in correct sequence --- diff --git a/hdl-dev-repos b/hdl-dev-repos new file mode 100644 index 0000000..f570b2a --- /dev/null +++ b/hdl-dev-repos @@ -0,0 +1,30 @@ +#!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +export MYNAME=`id 1000 | awk '{print $1}' | sed 's/.*(\(.*\))/\1/'` +export MYHOME=/home/$MYNAME + +runuser $MYNAME --preserve-environment -c ' +cd /home/$MYNAME +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 +' +cd /home/$MYNAME/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 ../soc +git submodule update --init --recursive +python3 setup.py develop +cd ../