summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-05-14 12:44:36 +0700
committerGitHub <[email protected]>2024-05-14 12:44:36 +0700
commit3c24ba3ff2eb5fdb4e214f668a25ed2038a847ad (patch)
treee4f57fe7a9cb538eefa32f55472eaacc5aa80dd0 /tools
parentae01de246421df8638f05cab7b1c6e15e0184952 (diff)
build arm-clang on circleci with pull request (#2644)
* Build arm-clang using circle ci (only on PR): cache most of mandatory deps, clang toolchain * update get_deps.py to include CMSIS_5 with --print + no arguments, prevent duplicated deps
Diffstat (limited to 'tools')
-rw-r--r--tools/get_deps.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/get_deps.py b/tools/get_deps.py
index 2c2f97b4b..87c1c5ccd 100644
--- a/tools/get_deps.py
+++ b/tools/get_deps.py
@@ -249,9 +249,6 @@ def main():
boards = args.board
print_only = args.print
- if len(families) == 0 and len(boards) == 0:
- print("Warning: family and board are not specified, only fetching mandatory dependencies.")
-
status = 0
deps = list(deps_mandatory.keys())
@@ -267,11 +264,14 @@ def main():
for f in families:
for d in deps_optional:
- if f in deps_optional[d][2]:
+ if d not in deps and f in deps_optional[d][2]:
deps.append(d)
if print_only:
pvalue = {}
+ # print only without arguments, always add CMSIS_5
+ if len(families) == 0 and len(boards) == 0:
+ deps.append('lib/CMSIS_5')
for d in deps:
commit = deps_all[d][1]
pvalue[d] = commit