import os
import shutil
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 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)

@@ -455,28 +455,296 @@
 xample, board), shell=True)%0A
+%0A# FreeRTOS example%0Aexample = 'cdc_msc_hid_freertos'%0Aboard = 'pca10056'%0Asubprocess.run(%22make -j2 -C examples/device/%7B%7D BOARD=%7B%7D clean%22.format(example, board), shell=True)%0Asubprocess.run(%22make -j2 -C examples/device/%7B%7D BOARD=%7B%7D all%22.format(example, board), shell=True)%0A

update build script