diff options
author | Matt Domsch <matt_domsch@dell.com> | 2004-10-19 18:37:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-19 18:37:33 -0700 |
commit | 1184aeda646af14b91609552436f722e12117e0b (patch) | |
tree | a46fde13ec80545a22e3b23458ad666eb4edc3e0 /init | |
parent | 77bcf0fa9d57bbba95a2e4d053d450bab4438253 (diff) | |
download | history-1184aeda646af14b91609552436f722e12117e0b.tar.gz |
[PATCH] modules: put srcversion checksum in each modinfo section
Separate the module source and header checksum into a separate modinfo
field srcversion.
With CONFIG_MODULE_SRCVERSION_ALL=y, put srcversion into every module, not
just those with MODULE_VERSION("something").
Patch by Rusty Russell, trivial merging and testing by Matt Domsch
Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 0d8b1bfc2e8ce0..6dcf85f3d79658 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -389,6 +389,18 @@ config MODVERSIONS make them incompatible with the kernel you are running. If unsure, say N. +config MODULE_SRCVERSION_ALL + bool "Source checksum for all modules" + depends on MODULES + help + Modules which contain a MODULE_VERSION get an extra "srcversion" + field inserting into their modinfo section, which contains a + sum of the source files which made it. This helps maintainers + see exactly which source was used to build a module (since + others sometimes change the module source without updating + the version). With this option, such a "srcversion" field + will be created for all modules. If unsure, say N. + config KMOD bool "Automatic kernel module loading" depends on MODULES |