• Arnd Bergmann's avatar
    modsign: hide openssl output in silent builds · 5d06ee20
    Arnd Bergmann authored
    When a user calls 'make -s', we can assume they don't want to
    see any output except for warnings and errors, but instead
    they see this for a warning free build:
    
     ###
     ### 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
     ### needs to be run as root, and uses a hardware random
     ### number generator if one is available.
     ###
     Generating a 4096 bit RSA private key
     .................................................................................................................................................................................................................................++
     ..............................................................................................................................++
     writing new private key to 'certs/signing_key.pem'
     -----
     ###
     ### Key pair generated.
     ###
    
    The output can confuse simple build testing scripts that just check
    for an empty build log.
    
    This patch silences all the output:
     - "echo" is changed to "@$(kecho)", which is dropped when "-s" gets
       passed
     - the openssl command itself is only printed with V=1, using the
       $(Q) macro
     - The output of openssl gets redirected to /dev/null on "-s" builds.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    5d06ee20
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...