Skip to content

Commit f60a00b

Browse files
committed
Fix port build: ESP32
1 parent 2847546 commit f60a00b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ports/esp32/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ idf_build_set_property(COMPILE_DEFINITIONS "-DLV_KCONFIG_IGNORE" APPEND)
8585
separate_arguments(LV_CFLAGS_ENV UNIX_COMMAND $ENV{LV_CFLAGS})
8686
list(APPEND LV_CFLAGS ${LV_CFLAGS_ENV})
8787
idf_build_set_property(COMPILE_DEFINITIONS "${LV_CFLAGS}" APPEND)
88+
idf_build_set_property(COMPILE_OPTIONS "-Wno-unused-function" APPEND)
89+
idf_build_set_property(SRCS "${LV_SRC}" APPEND)
90+
idf_build_set_property(INCLUDE_DIRS "${LV_INCLUDE}" APPEND)
91+
92+
# DEBUG LV_CONF_PATH
93+
message(STATUS "LV_CONF_PATH=${LV_CONF_PATH}")
94+
95+
# Fix for idf 5.2.x
96+
idf_build_get_property(component_targets __COMPONENT_TARGETS)
97+
string(REPLACE "___idf_lvgl" "" component_targets "${component_targets}")
98+
idf_build_set_property(__COMPONENT_TARGETS "${component_targets}")
99+
88100

89101
# Define the project.
90102
project(micropython)

0 commit comments

Comments
 (0)