From 87daf284219bdbe8468e4d3641246bba3ce016d4 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 24 Jan 2021 01:26:16 +0700 Subject: [PATCH] rp2040 skip freertos example --- examples/device/cdc_msc_freertos/.skip.MCU_RP2040 | 0 examples/device/hid_composite_freertos/.skip.MCU_RP2040 | 0 tools/build_family.py | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 examples/device/cdc_msc_freertos/.skip.MCU_RP2040 create mode 100644 examples/device/hid_composite_freertos/.skip.MCU_RP2040 diff --git a/examples/device/cdc_msc_freertos/.skip.MCU_RP2040 b/examples/device/cdc_msc_freertos/.skip.MCU_RP2040 new file mode 100644 index 000000000..e69de29bb diff --git a/examples/device/hid_composite_freertos/.skip.MCU_RP2040 b/examples/device/hid_composite_freertos/.skip.MCU_RP2040 new file mode 100644 index 000000000..e69de29bb diff --git a/tools/build_family.py b/tools/build_family.py index eb0ef9d82..848996a3d 100644 --- a/tools/build_family.py +++ b/tools/build_family.py @@ -107,12 +107,12 @@ def skip_example(example, board): mk_contents = mk.read() # Skip all OPT_MCU_NONE these are WIP port - if '-DCFG_TUSB_MCU=OPT_MCU_NONE' in mk_contents: + if 'CFG_TUSB_MCU=OPT_MCU_NONE' in mk_contents: return 1 # Skip if CFG_TUSB_MCU in board.mk to match skip file for skip_file in glob.iglob(ex_dir + '/.skip.MCU_*'): - mcu_cflag = '-DCFG_TUSB_MCU=OPT_' + os.path.basename(skip_file).split('.')[2] + mcu_cflag = 'CFG_TUSB_MCU=OPT_' + os.path.basename(skip_file).split('.')[2] if mcu_cflag in mk_contents: return 1 @@ -120,7 +120,7 @@ def skip_example(example, board): only_list = list(glob.iglob(ex_dir + '/.only.MCU_*')) if len(only_list) > 0: for only_file in only_list: - mcu_cflag = '-DCFG_TUSB_MCU=OPT_' + os.path.basename(only_file).split('.')[2] + mcu_cflag = 'CFG_TUSB_MCU=OPT_' + os.path.basename(only_file).split('.')[2] if mcu_cflag in mk_contents: return 0 return 1