forked from zephyrproject-rtos/trusted-firmware-m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-git.sh
executable file
·39 lines (33 loc) · 1.02 KB
/
init-git.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
TFM_GIT_SHA=368a25ff5e4925eed532fe7f6d03c3be9d8c4062
TFM_TESTS_GIT_SHA=ccda809801e529250b47c9ac470cf94daef1bb1b
MCUBOOT_GIT_SHA=v1.6.0
PSA_ARCH_TESTS_GIT_SHA=v20.03_API1.0
if [ ! -d trusted-firmware-m/.git ]; then
git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git -b ${TFM_GIT_SHA} --bare trusted-firmware-m/.git
cd trusted-firmware-m
git init
git checkout -f
cd ..
fi
if [ ! -d mcuboot/.git ]; then
git clone https://github.com/JuulLabs-OSS/mcuboot.git -b v1.4.0 -b ${MCUBOOT_GIT_SHA} --bare mcuboot/.git
cd mcuboot
git init
git checkout -f
cd ..
fi
if [ ! -d tf-m-tests/.git ]; then
git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git -b ${TFM_TESTS_GIT_SHA} --bare tf-m-tests/.git
cd tf-m-tests
git init
git checkout -f
cd ..
fi
if [ ! -d psa-arch-tests/.git ]; then
git clone https://github.com/ARM-software/psa-arch-tests.git -b ${PSA_ARCH_TESTS_GIT_SHA} --bare psa-arch-tests/.git
cd psa-arch-tests
git init
git checkout -f
cd ..
fi