Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / hdl-kestrel-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/kestrel
10 cd src/kestrel
11 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/migen
12 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex.git
13 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex-boards.git
14 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/liteiclink.git
15 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/liteeth.git
16 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litedram.git
17 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-cpu-libresoc.git
18 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/tercelspi.git
19 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-tercelspi.git
20 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/aquilalpc.git
21 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-aquilalpc.git
22 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/swiftfsi.git
23 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-swiftfsi.git
24 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/opencoresi2c.git
25 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-opencoresi2c.git
26 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/simplertc.git
27 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-simplertc.git
28 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/simplepwm.git
29 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-simplepwm.git
30 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/arcticterngpio.git
31 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-arcticterngpio.git
32 '
33
34 # litex
35 cd /home/$SUDO_USER/src/kestrel/litex
36 python3 setup.py develop
37
38 # litex-boards
39 cd /home/$SUDO_USER/src/kestrel/litex-boards
40 python3 setup.py develop
41
42 # liteiclink
43 cd /home/$SUDO_USER/src/kestrel/liteiclink
44 python3 setup.py develop
45
46 # liteeth
47 cd /home/$SUDO_USER/src/kestrel/liteeth
48 python3 setup.py develop
49
50 # litedram
51 cd /home/$SUDO_USER/src/kestrel/litedram
52 python3 setup.py develop
53
54 # pythondata-cpu-libresoc
55 cd /home/$SUDO_USER/src/kestrel/pythondata-cpu-libresoc
56 python3 setup.py develop
57
58 # tercelspi
59 cd /home/$SUDO_USER/src/kestrel/tercelspi
60 python3 setup.py develop
61
62 # pythondata-peripheral-tercelspi
63 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-tercelspi
64 python3 setup.py develop
65
66 # aquilalpc
67 cd /home/$SUDO_USER/src/kestrel/aquilalpc
68 python3 setup.py develop
69
70 # pythondata-peripheral-aquilalpc
71 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-aquilalpc
72 python3 setup.py develop
73
74 # swiftfsi
75 cd /home/$SUDO_USER/src/kestrel/swiftfsi
76 python3 setup.py develop
77
78 # pythondata-peripheral-swiftfsi
79 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-swiftfsi
80 python3 setup.py develop
81
82 # opencoresi2c
83 cd /home/$SUDO_USER/src/kestrel/opencoresi2c
84 python3 setup.py develop
85
86 # pythondata-peripheral-opencoresi2c
87 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-opencoresi2c
88 python3 setup.py develop
89
90 # simplertc
91 cd /home/$SUDO_USER/src/kestrel/simplertc
92 python3 setup.py develop
93
94 # pythondata-peripheral-simplertc
95 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-simplertc
96 python3 setup.py develop
97
98 # simplepwm
99 cd /home/$SUDO_USER/src/kestrel/simplepwm
100 python3 setup.py develop
101
102 # pythondata-peripheral-simplepwm
103 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-simplepwm
104 python3 setup.py develop
105
106 # arcticterngpio
107 cd /home/$SUDO_USER/src/kestrel/arcticterngpio
108 python3 setup.py develop
109
110 # pythondata-peripheral-arcticterngpio
111 cd /home/$SUDO_USER/src/kestrel/pythondata-peripheral-arcticterngpio
112 python3 setup.py develop
113
114 cd ../
115 chown -R $SUDO_USER .
116 chgrp -R $SUDO_USER .
117 echo -e "
118 \e[1;91mAll Libre-SOC Kestrel dependenices should now be installed.\e[0m
119 "
120