diff options
| author | hathach <[email protected]> | 2019-07-11 23:52:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-11 23:52:58 +0700 |
| commit | 92134b5ef24b430b41d863399eae0528d349aec1 (patch) | |
| tree | 890f3b697f95e884f3738e29f35fa36926d3b64f | |
| parent | 913b52bb359c08c4e3c007dd115ad48c2aada03b (diff) | |
clean up build script
| -rw-r--r-- | tools/build_all.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/build_all.py b/tools/build_all.py index 93bdef4c1..b34edffaf 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -12,7 +12,16 @@ success_count = 0 fail_count = 0 exit_status = 0 -all_device_example = ["cdc_msc_hid", "hid_generic_inout", "midi_test", "msc_dual_lun"] +all_examples = []; +for entry in os.scandir("examples/device"): + if entry.is_dir(): + all_examples.append(entry.name) + +# mynewt has its own example repo +all_examples.remove("cdc_msc_hid_mynewt") + +# TODO update freeRTOS example to work with all boards (only nrf52840 now) +all_examples.remove("cdc_msc_hid_freertos") all_boards = [] for entry in os.scandir("hw/bsp"): @@ -25,7 +34,7 @@ def build_example(example, board): total_time = time.monotonic() -for example in all_device_example: +for example in all_examples: for board in all_boards: start_time = time.monotonic() build_result = build_example(example, board) |
