diff options
| author | hathach <[email protected]> | 2019-04-26 16:21:39 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-26 16:21:39 +0700 |
| commit | e4be6dd95eba53388b713d6c3f59b4ba7c7886f2 (patch) | |
| tree | 31b7bd3279d58cb4b10caf95143d6a62a4c61645 /tools | |
| parent | cfd2d995d2e74d81aee49ae9fb7949cf7d0fe540 (diff) | |
| parent | 25bd3fef47114bba845d3dbf397a50efb0ee777c (diff) | |
Merge pull request #59 from hathach/develop
add multiple Lun support along with msc_dual_lun example
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_all.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/build_all.py b/tools/build_all.py index 4b6fa5775..e3439cb5b 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -4,8 +4,10 @@ import sys import subprocess import time +all_device_example = ["cdc_msc_hid", "msc_dual_lun"] all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "stm32f407g_disc1"] -for board in all_boards: - subprocess.run("make -j2 -C examples/device/cdc_msc_hid BOARD={} clean".format(board), shell=True) - subprocess.run("make -j2 -C examples/device/cdc_msc_hid BOARD={} all".format(board), shell=True) +for example in all_device_example: + for board in all_boards: + subprocess.run("make -j2 -C examples/device/{} BOARD={} clean".format(example, board), shell=True) + subprocess.run("make -j2 -C examples/device/{} BOARD={} all".format(example, board), shell=True) |
