diff options
| author | hathach <[email protected]> | 2019-05-15 18:21:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-15 18:21:41 +0700 |
| commit | c4b153925012e7c4fe28c745e5022820798a160d (patch) | |
| tree | 01c7d3ee839746922ddade2a372310c6fa055999 /tools | |
| parent | 449a631a4a888146e8f68b6960f7fdb579fc5edf (diff) | |
| parent | 6e9324e29c3c2cc7ae36c0d7cbdb037e92ec9614 (diff) | |
Merge pull request #66 from hathach/develop
support makefile device example for all boards
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_all.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/build_all.py b/tools/build_all.py index 37ca1443a..4b0cf9820 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -13,7 +13,11 @@ fail_count = 0 exit_status = 0 all_device_example = ["cdc_msc_hid", "msc_dual_lun", "hid_generic_inout"] -all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "feather_nrf52840_express", "stm32f407g_disc1"] + +all_boards = [] +for entry in os.scandir("hw/bsp"): + if entry.is_dir(): + all_boards.append(entry.name) def build_example(example, board): subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) @@ -48,8 +52,9 @@ for example in all_device_example: #board = 'pca10056' #build_example(example, board) - total_time = time.monotonic() - total_time + +print("Build Sumamary: {} \033[32msucceeded\033[0m, {} \033[31mfailed\033[0m".format(success_count, fail_count)) print("Total build time took {:.2f}s".format(total_time)) sys.exit(exit_status) |
