mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
rp2040 skip freertos example
This commit is contained in:
parent
4101df7a75
commit
87daf28421
0
examples/device/cdc_msc_freertos/.skip.MCU_RP2040
Normal file
0
examples/device/cdc_msc_freertos/.skip.MCU_RP2040
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user