add verilog-wishbone (for async bridge) to hdl-dev-ls2
[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 # lambdasoc
21 cd /home/$SUDO_USER/src/lambdasoc
22 git tag | xargs git tag -d # very annoying
23 python3 setup.py develop
24
25 # gram
26 cd ../gram
27 git tag | xargs git tag -d # very annoying
28 python3 setup.py develop
29
30 # ls2
31 # does not need an "install"... yet.
32
33 cd ../
34 chown -R $SUDO_USER .
35 chgrp -R $SUDO_USER .
36 echo -e "
37 \e[1;91mAll Libre-SOC dev dependenices should now be installed.\e[0m
38 "
39