From 8834e344a931bb4b779eb5f6c7b239880c536b30 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Fri, 24 May 2024 17:01:01 +0200 Subject: [PATCH] Fixed build error due to missing keystore.c in otp --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2f05f425a..4b73633b3 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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)