From 391e8d05d8bf215488c926266b2d1ea31d48ea67 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 18 Jun 2024 15:00:54 +0200 Subject: [PATCH] Fix build OTP options - ARMORED option is not needed in otp_primer - do not attempt to compile otp_primer if the option is not declared --- Makefile | 2 +- include/image.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d9354f160..5743fb875 100644 --- a/Makefile +++ b/Makefile @@ -191,7 +191,7 @@ $(PRIVATE_KEY): $(Q)$(MAKE) keytools_check $(Q)(test $(SIGN) = NONE) || ("$(KEYGEN_TOOL)" $(KEYGEN_OPTIONS) -g $(PRIVATE_KEY)) || true $(Q)(test $(SIGN) = NONE) && (echo "// SIGN=NONE" > src/keystore.c) || true - $(Q)(test $(FLASH_OTP_KEYSTORE) = 0) || (make -C tools/keytools/otp) || true + $(Q)(test "$(FLASH_OTP_KEYSTORE)" = "1") && (make -C tools/keytools/otp) || true keytools: include/target.h @echo "Building key tools" diff --git a/include/image.h b/include/image.h index 6c1a5f174..3329eaaa3 100644 --- a/include/image.h +++ b/include/image.h @@ -74,7 +74,7 @@ int wolfBot_get_dts_size(void *dts_addr); -#if defined(WOLFBOOT_ARMORED) +#if (defined(WOLFBOOT_ARMORED) && defined(__WOLFBOOT)) #if !defined(ARCH_ARM) || !defined(__GNUC__) # error WOLFBOOT_ARMORED only available with arm-gcc compiler