Skip to content

Commit 391e8d0

Browse files
committed
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
1 parent ca3e8dc commit 391e8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ $(PRIVATE_KEY):
191191
$(Q)$(MAKE) keytools_check
192192
$(Q)(test $(SIGN) = NONE) || ("$(KEYGEN_TOOL)" $(KEYGEN_OPTIONS) -g $(PRIVATE_KEY)) || true
193193
$(Q)(test $(SIGN) = NONE) && (echo "// SIGN=NONE" > src/keystore.c) || true
194-
$(Q)(test $(FLASH_OTP_KEYSTORE) = 0) || (make -C tools/keytools/otp) || true
194+
$(Q)(test "$(FLASH_OTP_KEYSTORE)" = "1") && (make -C tools/keytools/otp) || true
195195

196196
keytools: include/target.h
197197
@echo "Building key tools"

include/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int wolfBot_get_dts_size(void *dts_addr);
7474

7575

7676

77-
#if defined(WOLFBOOT_ARMORED)
77+
#if (defined(WOLFBOOT_ARMORED) && defined(__WOLFBOOT))
7878

7979
#if !defined(ARCH_ARM) || !defined(__GNUC__)
8080
# error WOLFBOOT_ARMORED only available with arm-gcc compiler

0 commit comments

Comments
 (0)