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:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
idf_ver: [release-v5.4, latest]
|
idf_ver: [release-v5.4, latest]
|
||||||
idf_target: [esp32s3]
|
idf_target: [esp32c3, esp32s3, esp32p4]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -31,8 +31,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
- name: Delete CMakeLists.txt in components (only used for simulator build)
|
||||||
|
run: rm components/CMakeLists.txt
|
||||||
|
|
||||||
- name: ESP-IDF build
|
- name: ESP-IDF build
|
||||||
uses: espressif/esp-idf-ci-action@v1
|
uses: espressif/esp-idf-ci-action@v1
|
||||||
with:
|
with:
|
||||||
esp_idf_version: ${{ matrix.idf_ver }}
|
esp_idf_version: ${{ matrix.idf_ver }}
|
||||||
target: ${{ matrix.idf_target }}
|
target: ${{ matrix.idf_target }}
|
||||||
|
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build
|
||||||
|
@@ -1,11 +1,9 @@
|
|||||||
if (DEFINED ENV{IDF_PATH})
|
if (NOT DEFINED ENV{IDF_PATH})
|
||||||
return()
|
add_library(components INTERFACE)
|
||||||
endif ()
|
|
||||||
|
|
||||||
add_library(components INTERFACE)
|
add_subdirectory(imgui)
|
||||||
|
add_subdirectory(insa)
|
||||||
|
add_subdirectory(ruth)
|
||||||
|
|
||||||
add_subdirectory(imgui)
|
target_link_libraries(components INTERFACE ImGui)
|
||||||
add_subdirectory(insa)
|
endif ()
|
||||||
add_subdirectory(ruth)
|
|
||||||
|
|
||||||
target_link_libraries(components INTERFACE ImGui)
|
|
@@ -1,4 +1,9 @@
|
|||||||
idf_component_register(
|
idf_component_register(SRCS
|
||||||
SRCS
|
"main.c"
|
||||||
"main.c" "setup.c" "button_handling.c"
|
"setup.c"
|
||||||
INCLUDE_DIRS ".")
|
"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