build(esp): only add fatfs component if use_fs_fatfs is enabled (#9746)

This commit is contained in:
André Costa
2026-02-17 13:29:35 +01:00
committed by GitHub
parent 5fdf3bbce2
commit 6048a65c7e
+9 -5
View File
@@ -55,11 +55,15 @@ else()
set_source_files_properties(${DEMO_MUSIC_SOURCES} COMPILE_FLAGS "-Wno-format")
endif()
if(${target} STREQUAL "esp32p4")
set(IDF_COMPONENTS esp_driver_ppa esp_mm esp_timer fatfs log)
else()
set(IDF_COMPONENTS esp_timer fatfs log)
endif()
set(IDF_COMPONENTS esp_timer log)
if(${target} STREQUAL "esp32p4")
list(APPEND IDF_COMPONENTS esp_driver_ppa esp_mm)
endif()
if(CONFIG_LV_USE_FS_FATFS)
list(APPEND IDF_COMPONENTS fatfs)
endif()
idf_component_register(SRCS ${SOURCES} ${EXAMPLE_SOURCES} ${DEMO_SOURCES}
INCLUDE_DIRS ${LVGL_ROOT_DIR} ${LVGL_ROOT_DIR}/src ${LVGL_ROOT_DIR}/../