Skip to content

Commit c537e4d

Browse files
committed
certs: use $< and $@ to simplify the key generation rule
Do not repeat $(obj)/x509.genkey or $(obj)/signing_key.pem Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent 4fbce81 commit c537e4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

certs/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ keytype-$(CONFIG_MODULE_SIG_KEY_TYPE_ECDSA) := -newkey ec -pkeyopt ec_paramgen_c
6060

6161
quiet_cmd_gen_key = GENKEY $@
6262
cmd_gen_key = openssl req -new -nodes -utf8 -$(CONFIG_MODULE_SIG_HASH) -days 36500 \
63-
-batch -x509 -config $(obj)/x509.genkey \
64-
-outform PEM -out $(obj)/signing_key.pem \
65-
-keyout $(obj)/signing_key.pem $(keytype-y) 2>&1
63+
-batch -x509 -config $< \
64+
-outform PEM -out $@ -keyout $@ $(keytype-y) 2>&1
6665

6766
$(obj)/signing_key.pem: $(obj)/x509.genkey FORCE
6867
$(call if_changed,gen_key)

0 commit comments

Comments
 (0)