We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef76a04 + cd43084 commit 63c2a81Copy full SHA for 63c2a81
makefiles/suit.base.inc.mk
@@ -60,7 +60,13 @@ $(SUIT_SEC): | $(CLEAN)
60
)
61
$(Q)if [ ! -s $@ ]; then rm $@; fi
62
63
-%.pem.pub: %.pem
+# Allow to disable auto-generating public key from private key, e.g. if only the
64
+# public key is available at build time and manifest is created elsewhere.
65
+SUIT_GEN_PUBKEY ?= 1
66
+ifeq (1, $(SUIT_GEN_PUBKEY))
67
+ _PUB_FROM_SEC := %.pem
68
+endif
69
+%.pem.pub: $(_PUB_FROM_SEC)
70
$(Q)openssl ec -inform pem -in $< -outform pem -pubout -out $@
71
72
# Convert public keys to C headers - only last 32 bytes are key material
0 commit comments