From 59da1bc86aac23e591c394273964f86a4df781cc Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 8 Jun 2022 10:31:55 -0300 Subject: [PATCH] risc-v/esp32c3: Disable region protection on IDFboot for Flat build Signed-off-by: Gustavo Henrique Nihei --- arch/risc-v/src/esp32c3/Bootloader.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/esp32c3/Bootloader.mk b/arch/risc-v/src/esp32c3/Bootloader.mk index 7b6429f4a1..902725689d 100644 --- a/arch/risc-v/src/esp32c3/Bootloader.mk +++ b/arch/risc-v/src/esp32c3/Bootloader.mk @@ -97,7 +97,7 @@ ifeq ($(CONFIG_ESP32C3_APP_FORMAT_MCUBOOT),y) } >> $(BOOTLOADER_CONFIG) else ifeq ($(CONFIG_ESP32C3_APP_FORMAT_LEGACY),y) $(Q) { \ - $(if $(CONFIG_BUILD_PROTECTED),$(call cfg_dis,CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE)) \ + $(call cfg_dis,CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE) \ $(call cfg_en,CONFIG_PARTITION_TABLE_CUSTOM) \ $(call cfg_val,CONFIG_PARTITION_TABLE_CUSTOM_FILENAME,\"partitions.csv\") \ $(call cfg_val,CONFIG_PARTITION_TABLE_OFFSET,$(CONFIG_ESP32C3_PARTITION_TABLE_OFFSET)) \