From 185bdd1ede39f69b75076d865eda7d1179c03985 Mon Sep 17 00:00:00 2001 From: colepoirier Date: Mon, 18 May 2020 12:58:03 -0700 Subject: [PATCH] Created simple script to install and 'python3 setup.py develop' libre-soc dev repos in correct sequence --- hdl-dev-repos | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hdl-dev-repos 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 ../ -- 2.30.2