comments on why cp-scripts-to-chroot is needed
[dev-env-setup.git] / hdl-dev-ls2
1 #!/bin/bash
2 if [ "$EUID" -ne 0 ]
3 then echo "Please run as root using 'sudo bash'"
4 exit
5 fi
6
7 runuser $SUDO_USER --preserve-environment -c '
8 cd /home/$SUDO_USER
9 mkdir -p src
10 cd src
11 git clone https://git.libre-soc.org/git/ls2.git
12 git clone https://git.libre-soc.org/git/gram.git
13 git clone https://git.libre-soc.org/git/lambdasoc.git
14 git clone https://git.libre-soc.org/git/microwatt.git tercel-qspi
15 git clone https://github.com/freecores/uart16550
16 git clone https://github.com/freecores/ethmac
17 git clone https://github.com/alexforencich/verilog-wishbone
18
19 # verilog-wishbone checkout at specific tag
20 cd /home/$SUDO_USER/src/verilog-wishbone
21 git checkout d1fa24a0
22
23 # lambdasoc
24 cd /home/$SUDO_USER/src/lambdasoc
25 git tag | xargs git tag -d # very annoying
26 python3 setup.py develop
27
28 # gram
29 cd ../gram
30 git tag | xargs git tag -d # very annoying
31 python3 setup.py develop
32
33 # ls2
34 # does not need an "install"... yet.
35
36 cd ../
37 chown -R $SUDO_USER .
38 chgrp -R $SUDO_USER .
39 echo -e "
40 \e[1;91mAll Libre-SOC dev dependenices should now be installed.\e[0m
41 "
42