diff options
| author | Ha Thach <[email protected]> | 2019-11-22 15:16:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-22 15:16:41 +0700 |
| commit | ca741dfc2a88fdfebe0703e0d484dc5a684e3e99 (patch) | |
| tree | 11f8e391c7b3d2e55d9b84c165133e61060f5d6a /tools | |
| parent | f0682f62794290f4a17ac365b5c09b59dbc895ef (diff) | |
| parent | a02e723d098c3e2735e84a229968947e485e1b68 (diff) | |
Merge pull request #220 from hathach/develop
Port NXP iMX RT10XX
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_all.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/build_all.py b/tools/build_all.py index b20785049..9f35aac63 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -15,12 +15,17 @@ exit_status = 0 total_time = time.monotonic() all_examples = [] -for entry in os.scandir("examples/device"): - if entry.is_dir(): - all_examples.append(entry.name) -# TODO update freeRTOS example to work with all boards (only nrf52840 now) -all_examples.remove("cdc_msc_hid_freertos") +# build all example if input not existed +if len(sys.argv) > 1: + all_examples.append(sys.argv[1]) +else: + for entry in os.scandir("examples/device"): + if entry.is_dir(): + all_examples.append(entry.name) + + # 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"): @@ -31,7 +36,7 @@ for entry in os.scandir("hw/bsp"): def build_example(example, board): subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - return subprocess.run("make -j 4 -C examples/device/{} BOARD={} all".format(example, board), shell=True, + return subprocess.run("make -j 8 -C examples/device/{} BOARD={} all".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
