We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1517949 commit 50e3d61Copy full SHA for 50e3d61
1 file changed
makefiles/suit.inc.mk
@@ -56,9 +56,13 @@ $(SUIT_MANIFEST): $(SUIT_MANIFEST_PAYLOADS) $(BINDIR_SUIT)
56
$(SUIT_MANIFEST_SIGNED): $(SUIT_MANIFEST) $(SUIT_SEC)
57
$(Q)( \
58
if grep -q ENCRYPTED $(SUIT_SEC_SIGN); then \
59
- printf "Enter encryption for key file $(SUIT_SEC_SIGN): "; \
60
- read PASSWORD; \
61
- $(SUIT_TOOL) sign -p $$PASSWORD -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@; \
+ if [ -z "$(SUIT_SEC_PASSWORD)" ]; then \
+ printf "Enter encryption for key file $(SUIT_SEC_SIGN): "; \
+ read PASSWORD; \
62
+ else \
63
+ PASSWORD="$(SUIT_SEC_PASSWORD)"; \
64
+ fi; \
65
+ $(SUIT_TOOL) sign -p "$$PASSWORD" -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@;\
66
else \
67
$(SUIT_TOOL) sign -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@; \
68
fi \
0 commit comments