add svgwrite to list of dependencies
[dev-env-setup.git] / hdl-dev-repos
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://github.com/nmigen/nmigen.git
12 git clone https://git.libre-soc.org/git/c4m-jtag.git
13 git clone https://git.libre-soc.org/git/nmutil.git
14 git clone https://git.libre-soc.org/git/openpower-isa.git
15 git clone https://git.libre-soc.org/git/ieee754fpu.git
16 git clone https://git.libre-soc.org/git/nmigen-soc.git
17 git clone https://git.libre-soc.org/git/soc.git
18 '
19 # nmigen
20 cd /home/$SUDO_USER/src/nmigen
21 git tag | xargs git tag -d # very annoying
22 python3 setup.py develop
23
24 # nmigen-soc
25 cd ../nmigen-soc
26 git tag | xargs git tag -d # very annoying
27 python3 setup.py develop
28
29 # c4m-jtag
30 cd ../c4m-jtag
31 git tag | xargs git tag -d # very annoying
32 python3 setup.py develop
33
34 # nmutil
35 cd ../nmutil
36 python3 setup.py develop
37
38 # openpower-isa
39 cd ../openpower-isa
40 python3 setup.py develop
41 make svanalysis
42 make pywriter
43 make pyfnwriter
44
45 # ieee754fpy
46 cd ../ieee754fpu
47 git submodule update --init --recursive
48 python3 setup.py develop
49
50 # soc
51 cd ../soc
52 make gitupdate
53 python3 setup.py develop
54 make mkpinmux
55
56 cd ../
57 chown -R $SUDO_USER .
58 chgrp -R $SUDO_USER .
59 echo -e "
60 \e[1;91mAll Libre-SOC dev dependenices should now be installed.\e[0m
61 "