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)) \