forked from kendryte/k230_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repo.mak
executable file
·43 lines (40 loc) · 1.73 KB
/
repo.mak
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
39
40
41
42
43
RT-SMART_VERSION = "0a2c55975d1181e66abf4ee10f8cf29f0966071d"
MPP_VERSION = "0955ee6e157771ff8870bf49fd0c598126abe9f2"
UNITTEST_VERSION = "a07caf5e19a6a215605271cfeedce18111790e9d"
OPENSBI_VERSION = "9aa2f6d34e685bbbb0afaab4e308b93a9cd06ec7"
BUILDROOT-EXT_VERSION = "8eafd41f1dde4ff48b914d5978cecf7af627fba6"
LINUX_VERSION = "04b6371ff02d49cba18adc81dfcdbbec0cbfed56"
UBOOT_VERSION = "317894980fd498b863820b1343096fe188faae53"
CDK_VERSION = "dbfb3da07812b2f73257ebc1fb0d54dded1f7740"
RT-SMART_SRC_PATH = src/big/rt-smart
MPP_SRC_PATH = src/big/mpp
UNITTEST_SRC_PATH = src/big/unittest
OPENSBI_SRC_PATH = src/common/opensbi
BUILDROOT-EXT_SRC_PATH = src/little/buildroot-ext
LINUX_SRC_PATH = src/little/linux
UBOOT_SRC_PATH = src/little/uboot
CDK_SRC_PATH = src/common/cdk
RT-SMARTR_URL = "[email protected]:maix_sw/maix3_rt_smart.git"
MPP_URL = "[email protected]:maix_sw/mpp.git"
UNITTEST_URL = "[email protected]:maix_sw/maix3_unittest.git"
OPENSBI_URL = "[email protected]:maix_sw/maix3_opensbi.git"
BUILDROOT-EXT_URL = "[email protected]:maix_sw/buildroot-ext.git"
LINUX_URL = "[email protected]:maix_sw/maix3_linux_kernel.git"
UBOOT_URL = "[email protected]:maix_sw/maix3_u-boot.git"
CDK_URL = "[email protected]:maix_sw/cdk.git"
define FETCH_CODE
set -e; \
(test -d $(2) || ( \
echo "clone $(1) into $(2), version $(3)";\
git clone $(1) $(2) >/dev/null 2>&1;\
cd $(2);\
git checkout $(3) >/dev/null 2>&1;\
)) && ( \
echo "fetch $(1), version $(3)";\
cd $(2);\
git fetch;\
git checkout $(3) >/dev/null 2>&1;\
); \
cd - >/dev/null 2>&1;\
echo "success"
endef