Skip to content

Commit 8834e34

Browse files
committed
Fixed build error due to missing keystore.c in otp
1 parent 9b378d0 commit 8834e34

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ ifeq ($(SIGN),NONE)
3636
else
3737
PRIVATE_KEY=wolfboot_signing_private_key.der
3838
ifeq ($(FLASH_OTP_KEYSTORE),1)
39-
OBJS+=./src/flash_otp_keystore.o
39+
OBJS+=./src/flash_otp_keystore.o
4040
else
41-
OBJS+=./src/keystore.o
41+
OBJS+=./src/keystore.o
4242
endif
4343
endif
4444

@@ -287,7 +287,11 @@ hex: wolfboot.hex
287287

288288
src/keystore.c: $(PRIVATE_KEY)
289289

290-
flash_keystore: $(PRIVATE_KEY) src/flash_otp_keystore.o
290+
flash_keystore: src/flash_otp_keystore.o
291+
292+
src/flash_otp_keystore.o: $(PRIVATE_KEY) src/flash_otp_keystore.c
293+
$(Q)$(MAKE) src/keystore.c
294+
$(Q)$(CC) -c $(CFLAGS) src/flash_otp_keystore.c -o $(@)
291295

292296
keys: $(PRIVATE_KEY)
293297

0 commit comments

Comments
 (0)