mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-17 08:45:13 +00:00
fix build for esp32
This commit is contained in:
parent
1911c613c7
commit
5ef260d5fc
2
.github/workflows/build_esp.yml
vendored
2
.github/workflows/build_esp.yml
vendored
@ -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: |
|
||||
|
@ -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)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s2")
|
||||
set(FAMILY_MCUS ESP32S2)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s2")
|
||||
set(FAMILY_MCUS ESP32S2)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s2")
|
||||
set(FAMILY_MCUS ESP32S2)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s3")
|
||||
set(FAMILY_MCUS ESP32S3)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s2")
|
||||
set(FAMILY_MCUS ESP32S2)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s3")
|
||||
set(FAMILY_MCUS ESP32S3)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
set(IDF_TARGET "esp32s3")
|
||||
set(FAMILY_MCUS ESP32S3)
|
||||
|
@ -1,3 +1,2 @@
|
||||
# Apply board specific content here
|
||||
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
|
||||
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")
|
||||
|
||||
|
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user