-
Notifications
You must be signed in to change notification settings - Fork 39
/
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 = "b71e7ba08487989338716e9561d6fbefff30dfb7"
MPP_VERSION = "c48e1128cf073fa650ed1c357f3c0b8a9305ddeb"
UNITTEST_VERSION = "a07caf5e19a6a215605271cfeedce18111790e9d"
OPENSBI_VERSION = "1f89326f7dc48d701dbed79f828b80fa28e5b34c"
BUILDROOT-EXT_VERSION = "3b7945c5bb8b83ad4da436af5bfcb9b0b080d993"
LINUX_VERSION = "67b5789176efdcdbe040e435931bb2e34563d011"
CDK_VERSION = "c1066628d2e9eece8114ebdb908f7b6324fc0330"
UBOOT_VERSION = "1f0308a5a96ffad95c99d0ec4a627f11f787ef96"
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 = "git@g.a-bug.org:maix_sw/maix3_rt_smart.git"
MPP_URL = "git@g.a-bug.org:maix_sw/mpp.git"
UNITTEST_URL = "git@g.a-bug.org:maix_sw/maix3_unittest.git"
OPENSBI_URL = "git@g.a-bug.org:maix_sw/maix3_opensbi.git"
BUILDROOT-EXT_URL = "git@g.a-bug.org:maix_sw/buildroot-ext.git"
LINUX_URL = "git@g.a-bug.org:maix_sw/maix3_linux_kernel.git"
UBOOT_URL = "git@g.a-bug.org:maix_sw/maix3_u-boot.git"
CDK_URL = "git@g.a-bug.org: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