diff options
| author | hathach <[email protected]> | 2023-03-10 19:23:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-10 19:23:23 +0700 |
| commit | 76f43a7a16ae814abfc7e4eec84088a4a8e70bb4 (patch) | |
| tree | b92a7e52c3103ac1827431870140cf38d4cf60c9 /tools/get_deps.py | |
| parent | 990fb6ae5c4d9d4b77c5a9ecb3a2abe899dd2712 (diff) | |
starting to remove submodule cmsis5 and nrfx
Diffstat (limited to 'tools/get_deps.py')
| -rw-r--r-- | tools/get_deps.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/get_deps.py b/tools/get_deps.py new file mode 100644 index 000000000..e7d3e0a76 --- /dev/null +++ b/tools/get_deps.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 |
