fix build for esp32
This commit is contained in:
2
.github/workflows/build_esp.yml
vendored
2
.github/workflows/build_esp.yml
vendored
@@ -54,7 +54,7 @@ jobs:
|
|||||||
path: linkermap
|
path: linkermap
|
||||||
|
|
||||||
- name: Build
|
- 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
|
- name: Linker Map
|
||||||
run: |
|
run: |
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/../hw/bsp/family_support.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../hw/bsp/family_support.cmake)
|
||||||
|
|
||||||
project(tinyusb_examples)
|
project(tinyusb_examples)
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s2")
|
set(IDF_TARGET "esp32s2")
|
||||||
set(FAMILY_MCUS ESP32S2)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s2")
|
set(IDF_TARGET "esp32s2")
|
||||||
set(FAMILY_MCUS ESP32S2)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s2")
|
set(IDF_TARGET "esp32s2")
|
||||||
set(FAMILY_MCUS ESP32S2)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s3")
|
set(IDF_TARGET "esp32s3")
|
||||||
set(FAMILY_MCUS ESP32S3)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s2")
|
set(IDF_TARGET "esp32s2")
|
||||||
set(FAMILY_MCUS ESP32S2)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s3")
|
set(IDF_TARGET "esp32s3")
|
||||||
set(FAMILY_MCUS ESP32S3)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s3")
|
set(IDF_TARGET "esp32s3")
|
||||||
set(FAMILY_MCUS ESP32S3)
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Apply board specific content here
|
# Apply board specific content here
|
||||||
set(IDF_TARGET "esp32s2")
|
set(IDF_TARGET "esp32s2")
|
||||||
set(FAMILY_MCUS ESP32S2)
|
|
||||||
|
@@ -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
|
# 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")
|
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
|
# Add example src and bsp directories
|
||||||
set(EXTRA_COMPONENT_DIRS "src" "${CMAKE_CURRENT_LIST_DIR}/boards" "${CMAKE_CURRENT_LIST_DIR}/components")
|
set(EXTRA_COMPONENT_DIRS "src" "${CMAKE_CURRENT_LIST_DIR}/boards" "${CMAKE_CURRENT_LIST_DIR}/components")
|
||||||
|
|
||||||
|
@@ -53,6 +53,13 @@ def skip_example(example, board):
|
|||||||
token = token.strip("\"")
|
token = token.strip("\"")
|
||||||
_, opt_mcu = token.split("=")
|
_, opt_mcu = token.split("=")
|
||||||
mcu = opt_mcu[len("OPT_MCU_"):]
|
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
|
# Skip all OPT_MCU_NONE these are WIP port
|
||||||
if mcu == "NONE":
|
if mcu == "NONE":
|
||||||
|
Reference in New Issue
Block a user