diff --git a/boards/xtensa/esp32/common/scripts/flat_memory.ld b/boards/xtensa/esp32/common/scripts/flat_memory.ld index ed92a5867657d..73fc59c3219f9 100644 --- a/boards/xtensa/esp32/common/scripts/flat_memory.ld +++ b/boards/xtensa/esp32/common/scripts/flat_memory.ld @@ -157,7 +157,7 @@ MEMORY extmem_seg (RWX) : org = 0x3f800000, len = 0x400000 } -#if CONFIG_ESP32_RUN_IRAM +#ifdef CONFIG_ESP32_RUN_IRAM REGION_ALIAS("default_rodata_seg", dram0_0_seg); REGION_ALIAS("default_code_seg", iram0_0_seg); #else