Fix correct commit hash for release 0.7.0 of openXC7
[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
20 # verilog-wishbone checkout at specific tag
21 cd /home/$SUDO_USER/src/verilog-wishbone
22 git checkout d1fa24a0
23
24 # lambdasoc
25 cd /home/$SUDO_USER/src/lambdasoc
26 git tag | xargs git tag -d # very annoying
27 python3 setup.py develop
28
29 # gram
30 cd ../gram
31 git tag | xargs git tag -d # very annoying
32 python3 setup.py develop
33
34 # ls2
35 # does not need an "install"... yet.
36
37 cd ../
38 chown -R $SUDO_USER .
39 chgrp -R $SUDO_USER .
40 echo -e "
41 \e[1;91mAll Libre-SOC dev dependencies should now be installed.\e[0m
42 "
43