@@ -35,7 +35,7 @@ ifeq ($(SIGN),NONE)
3535 PRIVATE_KEY =
3636else
3737 PRIVATE_KEY =wolfboot_signing_private_key.der
38- ifeq ($(FLASH_OTP_ROT ),1)
38+ ifeq ($(FLASH_OTP_KEYSTORE ),1)
3939 OBJS+ =./src/flash_otp_keystore.o
4040 else
4141 OBJS+ =./src/keystore.o
@@ -127,7 +127,7 @@ ifeq ($(TARGET),nxp_t1024)
127127 MAIN_TARGET:=factory_wstage1.bin
128128endif
129129
130- ifeq ($(FLASH_OTP_ROT ) ,1)
130+ ifeq ($(FLASH_OTP_KEYSTORE ) ,1)
131131 MAIN_TARGET:=include/target.h tools/keytools/otp/otp-keystore-primer factory.bin
132132endif
133133
@@ -188,7 +188,7 @@ $(PRIVATE_KEY):
188188 $(Q )$(MAKE ) keytools_check
189189 $(Q ) (test $( SIGN) = NONE) || (" $( KEYGEN_TOOL) " $( KEYGEN_OPTIONS) -g $( PRIVATE_KEY) ) || true
190190 $(Q ) (test $( SIGN) = NONE) && (echo " // SIGN=NONE" > src/keystore.c) || true
191- $(Q ) (test $( FLASH_OTP_ROT ) = 0) || (make -C tools/keytools/otp) || true
191+ $(Q ) (test $( FLASH_OTP_KEYSTORE ) = 0) || (make -C tools/keytools/otp) || true
192192
193193keytools : include/target.h
194194 @echo " Building key tools"
@@ -244,7 +244,7 @@ wolfboot_stage1.bin: wolfboot.elf stage1/loader_stage1.bin
244244 $(Q ) cp stage1/loader_stage1.bin wolfboot_stage1.bin
245245
246246wolfboot.elf : include/target.h $(LSCRIPT ) $(OBJS ) $(LIBS ) $(BINASSEMBLE ) FORCE
247- $(Q ) (test $( SIGN) = NONE) || (test $( FLASH_OTP_ROT ) = 1) || (grep -q $( SIGN_ALG) src/keystore.c) || \
247+ $(Q ) (test $( SIGN) = NONE) || (test $( FLASH_OTP_KEYSTORE ) = 1) || (grep -q $( SIGN_ALG) src/keystore.c) || \
248248 (echo " Key mismatch: please run 'make distclean' to remove all keys if you want to change algorithm" && false)
249249 @echo " \t[LD] $@ "
250250 @echo $(OBJS )
0 commit comments