fix build for esp32

This commit is contained in:
hathach 2023-04-03 17:44:05 +07:00
parent 1911c613c7
commit 5ef260d5fc
13 changed files with 15 additions and 9 deletions

View File

@ -54,7 +54,7 @@ jobs:
path: linkermap
- name: Build
run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32sx.py ${{ matrix.board }}
run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32.py ${{ matrix.board }}
- name: Linker Map
run: |

View File

@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.5)
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(${CMAKE_CURRENT_SOURCE_DIR}/../hw/bsp/family_support.cmake)
project(tinyusb_examples)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s2")
set(FAMILY_MCUS ESP32S2)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s2")
set(FAMILY_MCUS ESP32S2)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s2")
set(FAMILY_MCUS ESP32S2)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s3")
set(FAMILY_MCUS ESP32S3)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s2")
set(FAMILY_MCUS ESP32S2)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s3")
set(FAMILY_MCUS ESP32S3)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s3")
set(FAMILY_MCUS ESP32S3)

View File

@ -1,3 +1,2 @@
# Apply board specific content here
set(IDF_TARGET "esp32s2")
set(FAMILY_MCUS ESP32S2)

View File

@ -3,6 +3,12 @@ cmake_minimum_required(VERSION 3.5)
# Apply board specific content i.e IDF_TARGET must be set before project.cmake is included
include("${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake")
if(IDF_TARGET STREQUAL "esp32s2")
set(FAMILY_MCUS ESP32S2)
elseif(IDF_TARGET STREQUAL "esp32s3")
set(FAMILY_MCUS ESP32S3)
endif()
# Add example src and bsp directories
set(EXTRA_COMPONENT_DIRS "src" "${CMAKE_CURRENT_LIST_DIR}/boards" "${CMAKE_CURRENT_LIST_DIR}/components")

View File

@ -53,6 +53,13 @@ def skip_example(example, board):
token = token.strip("\"")
_, opt_mcu = token.split("=")
mcu = opt_mcu[len("OPT_MCU_"):]
break
if "esp32s2" in token:
mcu = "ESP32S2"
break
if "esp32s3" in token:
mcu = "ESP32S3"
break
# Skip all OPT_MCU_NONE these are WIP port
if mcu == "NONE":