diff --git a/Makefile b/Makefile index dccc9c50c..cafe45eb4 100644 --- a/Makefile +++ b/Makefile @@ -192,7 +192,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 04307fcdd..327ac63f1 100644 --- a/include/image.h +++ b/include/image.h @@ -82,7 +82,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