starting convert for ESP32
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
6
.github/workflows/esp32_build.yml
vendored
6
.github/workflows/esp32_build.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
idf_ver: [release-v5.4, latest]
|
||||
idf_target: [esp32s3]
|
||||
idf_target: [esp32c3, esp32s3, esp32p4]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
@@ -31,8 +31,12 @@ jobs:
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: Delete CMakeLists.txt in components (only used for simulator build)
|
||||
run: rm components/CMakeLists.txt
|
||||
|
||||
- name: ESP-IDF build
|
||||
uses: espressif/esp-idf-ci-action@v1
|
||||
with:
|
||||
esp_idf_version: ${{ matrix.idf_ver }}
|
||||
target: ${{ matrix.idf_target }}
|
||||
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build
|
||||
|
@@ -1,11 +1,9 @@
|
||||
if (DEFINED ENV{IDF_PATH})
|
||||
return()
|
||||
endif ()
|
||||
if (NOT DEFINED ENV{IDF_PATH})
|
||||
add_library(components INTERFACE)
|
||||
|
||||
add_library(components INTERFACE)
|
||||
add_subdirectory(imgui)
|
||||
add_subdirectory(insa)
|
||||
add_subdirectory(ruth)
|
||||
|
||||
add_subdirectory(imgui)
|
||||
add_subdirectory(insa)
|
||||
add_subdirectory(ruth)
|
||||
|
||||
target_link_libraries(components INTERFACE ImGui)
|
||||
target_link_libraries(components INTERFACE ImGui)
|
||||
endif ()
|
@@ -1,4 +1,9 @@
|
||||
idf_component_register(
|
||||
SRCS
|
||||
"main.c" "setup.c" "button_handling.c"
|
||||
INCLUDE_DIRS ".")
|
||||
idf_component_register(SRCS
|
||||
"main.c"
|
||||
"setup.c"
|
||||
"button_handling.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES
|
||||
insa
|
||||
ruth
|
||||
)
|
||||
|
2
sdkconfig.defaults.esp32c3
Normal file
2
sdkconfig.defaults.esp32c3
Normal file
@@ -0,0 +1,2 @@
|
||||
# default ESP target
|
||||
CONFIG_IDF_TARGET="esp32c3"
|
2
sdkconfig.defaults.esp32h2
Normal file
2
sdkconfig.defaults.esp32h2
Normal file
@@ -0,0 +1,2 @@
|
||||
# default ESP target
|
||||
CONFIG_IDF_TARGET="esp32h2"
|
2
sdkconfig.defaults.esp32p4
Normal file
2
sdkconfig.defaults.esp32p4
Normal file
@@ -0,0 +1,2 @@
|
||||
# default ESP target
|
||||
CONFIG_IDF_TARGET="esp32p4"
|
0
sdkconfig.release
Normal file
0
sdkconfig.release
Normal file
Reference in New Issue
Block a user