mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-28 01:04:48 +03:00
20 lines
465 B
CMake
20 lines
465 B
CMake
set(srcs)
|
|
|
|
if(CONFIG_SPIRAM_MODE_QUAD)
|
|
if(NOT ${target} STREQUAL "esp32" AND NOT ${target} STREQUAL "esp32s2")
|
|
list(APPEND srcs "esp_psram_impl_ap_quad.c")
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_SPIRAM_MODE_OCT)
|
|
if(NOT ${target} STREQUAL "esp32s3")
|
|
list(APPEND srcs "esp_psram_impl_ap_oct.c")
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_SPIRAM_MODE_HEX)
|
|
list(APPEND srcs "esp_psram_impl_ap_hex.c")
|
|
endif()
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|