fix esp32s2 ci build
This commit is contained in:
parent
ffe0fc7537
commit
2b3008f9a8
|
@ -7,7 +7,7 @@ set(TOP "../../..")
|
||||||
get_filename_component(TOP "${TOP}" REALPATH)
|
get_filename_component(TOP "${TOP}" REALPATH)
|
||||||
|
|
||||||
# Add example src and bsp directories
|
# Add example src and bsp directories
|
||||||
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/${BOARD}")
|
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2/boards" "${TOP}/hw/bsp/esp32s2/components")
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
set(SUPPORTED_TARGETS esp32s2)
|
set(SUPPORTED_TARGETS esp32s2)
|
||||||
|
|
|
@ -34,12 +34,9 @@ all_boards = []
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 2:
|
||||||
all_boards.append(sys.argv[2])
|
all_boards.append(sys.argv[2])
|
||||||
else:
|
else:
|
||||||
for entry in os.scandir("hw/bsp"):
|
for entry in os.scandir("hw/bsp/esp32s2/boards"):
|
||||||
if entry.is_dir():
|
if entry.is_dir():
|
||||||
with open(entry.path + '/board.mk') as mk:
|
all_boards.append(entry.name)
|
||||||
# Only includes ESP32-S2 board
|
|
||||||
if 'CROSS_COMPILE = xtensa-esp32s2-elf-' in mk.read():
|
|
||||||
all_boards.append(entry.name)
|
|
||||||
|
|
||||||
all_boards.sort()
|
all_boards.sort()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue