diff options
| author | Ha Thach <[email protected]> | 2022-07-01 20:52:46 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-01 20:52:46 +0700 |
| commit | ecb899408bb95c5c0d50ebe2d887cd746104c534 (patch) | |
| tree | f7eb5ba056d1ae91cdaca4203f48f588f651a63e /tools/get_dependencies.py | |
| parent | 68c2012ed1df7f87c898881cd06a445867564106 (diff) | |
| parent | 53db23142a89def1ad2f866863a559a931eeb035 (diff) | |
Merge pull request #1544 from hathach/ci-parallel-build
Ci parallel build
Diffstat (limited to 'tools/get_dependencies.py')
| -rw-r--r-- | tools/get_dependencies.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/get_dependencies.py b/tools/get_dependencies.py new file mode 100644 index 000000000..e7d3e0a76 --- /dev/null +++ b/tools/get_dependencies.py @@ -0,0 +1,25 @@ +import os +import sys +import subprocess + + +# dependency lookup (ABC sorted) +# deps = { +# 'LPC11UXX' : [ [] ] +# } + + +def get_family_dep(family): + for entry in os.scandir("hw/bsp/{}/boards".format(family)): + if entry.is_dir(): + result = subprocess.run("make -C examples/device/board_test BOARD={} get-deps".format(entry.name), + shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + print(result.stdout.decode("utf-8")) + return result.returncode + +status = 0 +all_family = sys.argv[1:] +for f in all_family: + status += get_family_dep(f) + +sys.exit(status)
\ No newline at end of file |
