Skip to content

Commit 852466e

Browse files
Merge branch 'fix/cache_support_duing_pure_ram_app' into 'master'
fix(esp_mm): Move cache-related sources out of pure RAM app check See merge request espressif/esp-idf!38717
2 parents 739a6ef + 944e3ec commit 852466e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

components/esp_mm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
1919
if(CONFIG_IDF_TARGET_ESP32)
2020
list(APPEND srcs "cache_esp32.c")
2121
endif()
22+
else()
23+
if(CONFIG_SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE)
24+
list(APPEND srcs "esp_cache.c")
25+
endif()
2226
endif()
2327

2428
list(APPEND srcs "heap_align_hw.c")

components/hal/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
4343
elseif(NOT ${target} STREQUAL "linux")
4444
list(APPEND srcs "cache_hal.c")
4545
endif()
46+
else()
47+
if(CONFIG_SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE)
48+
list(APPEND srcs "cache_hal.c")
49+
endif()
4650
endif()
4751

4852
if(esp_tee_build)

0 commit comments

Comments
 (0)