2019-03-23 16:51:07 +07:00
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
import time
|
|
|
|
|
2019-05-02 14:30:49 +07:00
|
|
|
all_device_example = ["cdc_msc_hid", "msc_dual_lun", "hid_generic_inout"]
|
2019-05-02 18:10:06 +07:00
|
|
|
all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "feather_nrf52840_express", "stm32f407g_disc1"]
|
2019-03-23 16:51:07 +07:00
|
|
|
|
2019-04-26 15:55:00 +07:00
|
|
|
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)
|
2019-05-01 16:04:41 +07:00
|
|
|
|
|
|
|
# FreeRTOS example
|
|
|
|
example = 'cdc_msc_hid_freertos'
|
|
|
|
board = 'pca10056'
|
|
|
|
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)
|