forked from rel4team/mi-dev-integral-rel4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepo.sh
executable file
·23 lines (21 loc) · 874 Bytes
/
repo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
urls=("[email protected]:rel4team/sel4_common.git,sel4_common"
"[email protected]:rel4team/sel4_task.git,sel4_task"
"[email protected]:rel4team/sel4_ipc.git,sel4_ipc"
"[email protected]:rel4team/sel4_vspace.git,sel4_vspace"
"[email protected]:rel4team/sel4_cspace.git,sel4_cspace"
"[email protected]:rel4team/rel4_kernel.git,kernel"
"[email protected]:rel4team/driver-collect.git,driver-collect"
"[email protected]:rel4team/serial-impl-pl011.git,serial-impl/pl011"
"[email protected]:rel4team/serial-impl-sbi.git,serial-impl/sbi"
"[email protected]:rel4team/serial-frame.git,serial-frame"
)
branch=mi_dev
for str in ${urls[@]}; do
IFS=',' read -r -a inner_array <<<"$str"
echo ${inner_array[0]}
git subrepo clone ${inner_array[0]} -b $branch ${inner_array[1]}
done
cp -r kernel/.cargo .cargo
cp -r kernel/build.py build.py
cp -r kernel/Cargo.toml.virtual Cargo.toml