Skip to content

Commit f8487d2

Browse files
committed
certs: remove noisy messages while generating the signing key
When you run Kbuild with the parallel option -j, the messages from this rule and others are interleaved, like follows: ### CC arch/x86/mm/pat/set_memory.o ### Now generating an X.509 key pair to be used for signing modules. ### ### If this takes a long time, you might wish to run rngd in the ### background to keep the supply of entropy topped up. It CC arch/x86/events/intel/bts.o HDRTEST usr/include/linux/qnx4_fs.h CC arch/x86/events/zhaoxin/core.o ### needs to be run as root, and uses a hardware random ### number generator if one is available. AR init/built-in.a ### On modern machines, it does not take a long time to generate the key. Remove the ugly log messages. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent f3a2ba4 commit f8487d2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

certs/Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,12 @@ endif
8080
endif # CONFIG_MODULE_SIG_KEY_TYPE_RSA
8181

8282
$(obj)/signing_key.pem: $(obj)/x509.genkey
83-
@$(kecho) "###"
84-
@$(kecho) "### Now generating an X.509 key pair to be used for signing modules."
85-
@$(kecho) "###"
86-
@$(kecho) "### If this takes a long time, you might wish to run rngd in the"
87-
@$(kecho) "### background to keep the supply of entropy topped up. It"
88-
@$(kecho) "### needs to be run as root, and uses a hardware random"
89-
@$(kecho) "### number generator if one is available."
90-
@$(kecho) "###"
9183
$(Q)openssl req -new -nodes -utf8 -$(CONFIG_MODULE_SIG_HASH) -days 36500 \
9284
-batch -x509 -config $(obj)/x509.genkey \
9385
-outform PEM -out $(obj)/signing_key.pem \
9486
-keyout $(obj)/signing_key.pem \
9587
$(keytype_openssl) \
9688
$($(quiet)redirect_openssl)
97-
@$(kecho) "###"
98-
@$(kecho) "### Key pair generated."
99-
@$(kecho) "###"
10089

10190
quiet_cmd_copy_x509_config = COPY $@
10291
cmd_copy_x509_config = cat $(srctree)/$(src)/default_x509.genkey > $@

0 commit comments

Comments
 (0)