localmodconfig: Reset certificate paths
authorBenjamin Poirier <bpoirier@suse.com>
Tue, 26 Apr 2016 18:52:01 +0000 (11:52 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 26 Apr 2016 19:48:20 +0000 (15:48 -0400)
commit96bab35d1c4ab706922abd7cef8262fdca07664a
tree9e742a1e9972ed8e60cf5cd8292a3cbfc77f212b
parent5169192bc1d51cac1ccd57757a849657fb3bdf93
localmodconfig: Reset certificate paths

When using `make localmodconfig` and friends, if the input config comes
from a kernel that was built in a different environment (for example, the
canonical case of using localmodconfig to trim a distribution kernel
config) the key files for module signature checking will not be available
and should be regenerated or omitted. Otherwise, the user will be faced
with annoying errors when trying to build with the generated .config:

make[1]: *** No rule to make target 'keyring.crt', needed by 'certs/x509_certificate_list'.  Stop.
Makefile:1576: recipe for target 'certs/' failed

Link: http://lkml.kernel.org/r/1461696721-3001-1-git-send-email-bpoirier@suse.com
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl