3 then echo "Please run as root using 'sudo bash'"
7 runuser
$SUDO_USER --preserve-environment -c '
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
35 cd /home
/$SUDO_USER/src
/kestrel
/litex
36 python3 setup.py develop
39 cd /home
/$SUDO_USER/src
/kestrel
/litex-boards
40 python3 setup.py develop
43 cd /home
/$SUDO_USER/src
/kestrel
/liteiclink
44 python3 setup.py develop
47 cd /home
/$SUDO_USER/src
/kestrel
/liteeth
48 python3 setup.py develop
51 cd /home
/$SUDO_USER/src
/kestrel
/litedram
52 python3 setup.py develop
54 # pythondata-cpu-libresoc
55 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-cpu-libresoc
56 python3 setup.py develop
59 cd /home
/$SUDO_USER/src
/kestrel
/tercelspi
60 python3 setup.py develop
62 # pythondata-peripheral-tercelspi
63 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-tercelspi
64 python3 setup.py develop
67 cd /home
/$SUDO_USER/src
/kestrel
/aquilalpc
68 python3 setup.py develop
70 # pythondata-peripheral-aquilalpc
71 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-aquilalpc
72 python3 setup.py develop
75 cd /home
/$SUDO_USER/src
/kestrel
/swiftfsi
76 python3 setup.py develop
78 # pythondata-peripheral-swiftfsi
79 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-swiftfsi
80 python3 setup.py develop
83 cd /home
/$SUDO_USER/src
/kestrel
/opencoresi2c
84 python3 setup.py develop
86 # pythondata-peripheral-opencoresi2c
87 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-opencoresi2c
88 python3 setup.py develop
91 cd /home
/$SUDO_USER/src
/kestrel
/simplertc
92 python3 setup.py develop
94 # pythondata-peripheral-simplertc
95 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-simplertc
96 python3 setup.py develop
99 cd /home
/$SUDO_USER/src
/kestrel
/simplepwm
100 python3 setup.py develop
102 # pythondata-peripheral-simplepwm
103 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-simplepwm
104 python3 setup.py develop
107 cd /home
/$SUDO_USER/src
/kestrel
/arcticterngpio
108 python3 setup.py develop
110 # pythondata-peripheral-arcticterngpio
111 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-arcticterngpio
112 python3 setup.py develop
115 chown
-R $SUDO_USER .
116 chgrp
-R $SUDO_USER .
118 \e[1;91mAll Libre-SOC Kestrel dependenices should now be installed.\e[0m