diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2025-01-03 20:45:39 +0000 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-11 01:25:26 +0900 |
commit | 9c3681f9b9fd12cdbc4a542df599f1837512f3d5 (patch) | |
tree | 23432cfc80ae8d2111ab1cff601afa5c84285732 /kernel/module | |
parent | d7476f24c9aa93d02ef3fd8d587a6114387b7667 (diff) |
kbuild: Add gendwarfksyms as an alternative to genksyms
When MODVERSIONS is enabled, allow selecting gendwarfksyms as the
implementation, but default to genksyms.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r-- | kernel/module/Kconfig | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig index 4637f063d0fc..d443fc504ffc 100644 --- a/kernel/module/Kconfig +++ b/kernel/module/Kconfig @@ -169,6 +169,22 @@ config MODVERSIONS make them incompatible with the kernel you are running. If unsure, say N. +choice + prompt "Module versioning implementation" + depends on MODVERSIONS + help + Select the tool used to calculate symbol versions for modules. + + If unsure, select GENKSYMS. + +config GENKSYMS + bool "genksyms (from source code)" + help + Calculate symbol versions from pre-processed source code using + genksyms. + + If unsure, say Y. + config GENDWARFKSYMS bool "gendwarfksyms (from debugging information)" depends on DEBUG_INFO @@ -176,6 +192,12 @@ config GENDWARFKSYMS depends on !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT # Requires ELF object files. depends on !LTO + help + Calculate symbol versions from DWARF debugging information using + gendwarfksyms. Requires DEBUG_INFO to be enabled. + + If unsure, say N. +endchoice config ASM_MODVERSIONS bool |