fix esp32s2 ci build

This commit is contained in:
hathach 2021-01-22 09:41:41 +07:00
parent ffe0fc7537
commit 2b3008f9a8
2 changed files with 3 additions and 6 deletions

View File

@ -7,7 +7,7 @@ set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
# 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)
set(SUPPORTED_TARGETS esp32s2)

View File

@ -34,12 +34,9 @@ all_boards = []
if len(sys.argv) > 2:
all_boards.append(sys.argv[2])
else:
for entry in os.scandir("hw/bsp"):
for entry in os.scandir("hw/bsp/esp32s2/boards"):
if entry.is_dir():
with open(entry.path + '/board.mk') as mk:
# Only includes ESP32-S2 board
if 'CROSS_COMPILE = xtensa-esp32s2-elf-' in mk.read():
all_boards.append(entry.name)
all_boards.append(entry.name)
all_boards.sort()