idf_as_lib: remove dependency to esp_psram

Previously this dependency is introduced by mistake. As idf_as_lib
example doesn't need esp_psram, remove this dependency.
This commit is contained in:
Armando
2022-07-11 21:06:11 +08:00
parent 21204e13e8
commit c863a79a6d

View File

@@ -15,7 +15,7 @@ if("${TARGET}" IN_LIST targets)
# although esptool_py does not generate static library, # although esptool_py does not generate static library,
# processing the component is needed for flashing related # processing the component is needed for flashing related
# targets and file generation # targets and file generation
COMPONENTS freertos esptool_py esp_psram COMPONENTS freertos esptool_py
SDKCONFIG ${CMAKE_CURRENT_LIST_DIR}/sdkconfig SDKCONFIG ${CMAKE_CURRENT_LIST_DIR}/sdkconfig
BUILD_DIR ${CMAKE_BINARY_DIR}) BUILD_DIR ${CMAKE_BINARY_DIR})
else() else()
@@ -33,7 +33,7 @@ add_executable(${elf_file} main.c)
# Link the static libraries to the executable # Link the static libraries to the executable
if("${TARGET}" IN_LIST targets) if("${TARGET}" IN_LIST targets)
target_link_libraries(${elf_file} idf::freertos idf::spi_flash idf::esp_psram) target_link_libraries(${elf_file} idf::freertos idf::spi_flash)
# Attach additional targets to the executable file for flashing, # Attach additional targets to the executable file for flashing,
# linker script generation, partition_table generation, etc. # linker script generation, partition_table generation, etc.
idf_build_executable(${elf_file}) idf_build_executable(${elf_file})