mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
makefiles/suit: allow to decrypt signing key with SUIT_SEC_PASSWORD
This commit is contained in:
parent
1517949f13
commit
50e3d61441
@ -56,9 +56,13 @@ $(SUIT_MANIFEST): $(SUIT_MANIFEST_PAYLOADS) $(BINDIR_SUIT)
|
|||||||
$(SUIT_MANIFEST_SIGNED): $(SUIT_MANIFEST) $(SUIT_SEC)
|
$(SUIT_MANIFEST_SIGNED): $(SUIT_MANIFEST) $(SUIT_SEC)
|
||||||
$(Q)( \
|
$(Q)( \
|
||||||
if grep -q ENCRYPTED $(SUIT_SEC_SIGN); then \
|
if grep -q ENCRYPTED $(SUIT_SEC_SIGN); then \
|
||||||
printf "Enter encryption for key file $(SUIT_SEC_SIGN): "; \
|
if [ -z "$(SUIT_SEC_PASSWORD)" ]; then \
|
||||||
read PASSWORD; \
|
printf "Enter encryption for key file $(SUIT_SEC_SIGN): "; \
|
||||||
$(SUIT_TOOL) sign -p $$PASSWORD -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@; \
|
read PASSWORD; \
|
||||||
|
else \
|
||||||
|
PASSWORD="$(SUIT_SEC_PASSWORD)"; \
|
||||||
|
fi; \
|
||||||
|
$(SUIT_TOOL) sign -p "$$PASSWORD" -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@;\
|
||||||
else \
|
else \
|
||||||
$(SUIT_TOOL) sign -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@; \
|
$(SUIT_TOOL) sign -k $(SUIT_SEC_SIGN) -m $(SUIT_MANIFEST) -o $@; \
|
||||||
fi \
|
fi \
|
||||||
|
Loading…
Reference in New Issue
Block a user