From b1d346f682d92ccfc681522b44fda5e31da963b0 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Thu, 22 Apr 2021 15:33:53 +0800 Subject: [PATCH] bootloader: disable psram cache bug fix for bootloader The psram cache bug fix was also being applied to the bootloader binary (for cmake), which doesnt do any psram access. Applying this fix would increase the binary size, as much as 300 bytes in worst case scenarios --- components/esp32/project_include.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/project_include.cmake b/components/esp32/project_include.cmake index 91c0f8af46..472d8c7ebd 100644 --- a/components/esp32/project_include.cmake +++ b/components/esp32/project_include.cmake @@ -1,4 +1,4 @@ -if(CONFIG_SPIRAM_CACHE_WORKAROUND) +if(CONFIG_SPIRAM_CACHE_WORKAROUND AND NOT BOOTLOADER_BUILD) # We do this here as well as in CMakeLists.txt, because targets that # are not part of the ESP-IDF build system (for cases where a generic # non-IDF CMakeLists.txt file is imported into a component) don't depend