summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorMichal Marek2013-01-25 04:11:00 +0100
committerRusty Russell2013-01-25 07:25:35 +0100
commit227536740e5cb157fb9fa9b381178c7d34b95d3b (patch)
tree18068d0713e94f543c0c29b93aaca9418926f6f8 /init
parentmodule: clean up load_module a little more. (diff)
downloadkernel-qcow2-linux-227536740e5cb157fb9fa9b381178c7d34b95d3b.tar.gz
kernel-qcow2-linux-227536740e5cb157fb9fa9b381178c7d34b95d3b.tar.xz
kernel-qcow2-linux-227536740e5cb157fb9fa9b381178c7d34b95d3b.zip
MODSIGN: Simplify Makefile with a Kconfig helper
Signed-off-by: Michal Marek <mmarek@suse.cz> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index be8b7f55312d..fff4cb1321c5 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1697,6 +1697,15 @@ config MODULE_SIG_SHA512
endchoice
+config MODULE_SIG_HASH
+ string
+ depends on MODULE_SIG
+ default "sha1" if MODULE_SIG_SHA1
+ default "sha224" if MODULE_SIG_SHA224
+ default "sha256" if MODULE_SIG_SHA256
+ default "sha384" if MODULE_SIG_SHA384
+ default "sha512" if MODULE_SIG_SHA512
+
endif # MODULES
config INIT_ALL_POSSIBLE