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/litex.git
12 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex-boards.git
13 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/liteiclink.git
14 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/liteeth.git
15 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litedram.git
16 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-cpu-libresoc.git
17 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/tercelspi.git
18 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-tercelspi.git
19 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/aquilalpc.git
20 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-aquilalpc.git
21 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/swiftfsi.git
22 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-swiftfsi.git
23 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/opencoresi2c.git
24 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-opencoresi2c.git
25 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/simplertc.git
26 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-simplertc.git
27 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/simplepwm.git
28 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-simplepwm.git
29 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/arcticterngpio.git
30 git clone http://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/pythondata-peripheral-arcticterngpio.git
34 cd /home
/$SUDO_USER/src
/kestrel
/litex
35 python3 setup.py develop
38 cd /home
/$SUDO_USER/src
/kestrel
/litex-boards
39 python3 setup.py develop
42 cd /home
/$SUDO_USER/src
/kestrel
/liteiclink
43 python3 setup.py develop
46 cd /home
/$SUDO_USER/src
/kestrel
/liteeth
47 python3 setup.py develop
50 cd /home
/$SUDO_USER/src
/kestrel
/litedram
51 python3 setup.py develop
53 # pythondata-cpu-libresoc
54 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-cpu-libresoc
55 python3 setup.py develop
58 cd /home
/$SUDO_USER/src
/kestrel
/tercelspi
59 python3 setup.py develop
61 # pythondata-peripheral-tercelspi
62 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-tercelspi
63 python3 setup.py develop
66 cd /home
/$SUDO_USER/src
/kestrel
/aquilalpc
67 python3 setup.py develop
69 # pythondata-peripheral-aquilalpc
70 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-aquilalpc
71 python3 setup.py develop
74 cd /home
/$SUDO_USER/src
/kestrel
/swiftfsi
75 python3 setup.py develop
77 # pythondata-peripheral-swiftfsi
78 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-swiftfsi
79 python3 setup.py develop
82 cd /home
/$SUDO_USER/src
/kestrel
/opencoresi2c
83 python3 setup.py develop
85 # pythondata-peripheral-opencoresi2c
86 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-opencoresi2c
87 python3 setup.py develop
90 cd /home
/$SUDO_USER/src
/kestrel
/simplertc
91 python3 setup.py develop
93 # pythondata-peripheral-simplertc
94 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-simplertc
95 python3 setup.py develop
98 cd /home
/$SUDO_USER/src
/kestrel
/simplepwm
99 python3 setup.py develop
101 # pythondata-peripheral-simplepwm
102 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-simplepwm
103 python3 setup.py develop
106 cd /home
/$SUDO_USER/src
/kestrel
/arcticterngpio
107 python3 setup.py develop
109 # pythondata-peripheral-arcticterngpio
110 cd /home
/$SUDO_USER/src
/kestrel
/pythondata-peripheral-arcticterngpio
111 python3 setup.py develop
114 chown
-R $SUDO_USER .
115 chgrp
-R $SUDO_USER .
117 \e[1;91mAll Libre-SOC Kestrel dependenices should now be installed.\e[0m