fix CROSS_COMPILE for esp32s2

This commit is contained in:
hathach 2020-04-06 20:39:20 +07:00
parent 9d26666c91
commit a344427e3f
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
# Cross Compiler for ESP32
CROSS_COMPILE = xtensa-esp32-elf-
CROSS_COMPILE = xtensa-esp32s2-elf-

View File

@ -58,7 +58,7 @@ def skip_example(example, board):
mk_contents = mk.read()
# Skip ESP32-S2 board if example is not FreeRTOS one
if 'freertos' not in example and 'CROSS_COMPILE = xtensa-esp32-elf-' in mk_contents:
if 'freertos' not in example and 'CROSS_COMPILE = xtensa-esp32s2-elf-' in mk_contents:
return 1
# Skip if CFG_TUSB_MCU in board.mk to match skip file