Skip to content

Commit

Permalink
Fixed build error due to missing keystore.c in otp
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed May 24, 2024
1 parent 9b378d0 commit 8834e34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ ifeq ($(SIGN),NONE)
else
PRIVATE_KEY=wolfboot_signing_private_key.der
ifeq ($(FLASH_OTP_KEYSTORE),1)
OBJS+=./src/flash_otp_keystore.o
OBJS+=./src/flash_otp_keystore.o
else
OBJS+=./src/keystore.o
OBJS+=./src/keystore.o
endif
endif

Expand Down Expand Up @@ -287,7 +287,11 @@ hex: wolfboot.hex

src/keystore.c: $(PRIVATE_KEY)

flash_keystore: $(PRIVATE_KEY) src/flash_otp_keystore.o
flash_keystore: src/flash_otp_keystore.o

src/flash_otp_keystore.o: $(PRIVATE_KEY) src/flash_otp_keystore.c
$(Q)$(MAKE) src/keystore.c
$(Q)$(CC) -c $(CFLAGS) src/flash_otp_keystore.c -o $(@)

keys: $(PRIVATE_KEY)

Expand Down

0 comments on commit 8834e34

Please sign in to comment.