summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-19 14:54:20 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-22 01:14:11 +0900
commit2ff2b7ec65dcea2261bdf404654975f44ad6323d (patch)
tree43ef958cd89c58f0d02c132d97302b7df03eb98a /init
parenta564bdeb5e0d79dbcebb9a138e7b9f2d7ed97df9 (diff)
downloadlinux-2ff2b7ec65dcea2261bdf404654975f44ad6323d.tar.gz
linux-2ff2b7ec65dcea2261bdf404654975f44ad6323d.tar.bz2
linux-2ff2b7ec65dcea2261bdf404654975f44ad6323d.zip
kbuild: add CONFIG_ASM_MODVERSIONS
Add CONFIG_ASM_MODVERSIONS. This allows to remove one if-conditional nesting in scripts/Makefile.build. scripts/Makefile.build is run every time Kbuild descends into a sub-directory. So, I want to avoid $(wildcard ...) evaluation where possible although computing $(wildcard ...) is so cheap that it may not make measurable performance difference. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index bd7d650d4a99..bf971b5c707d 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1989,6 +1989,14 @@ config MODVERSIONS
make them incompatible with the kernel you are running. If
unsure, say N.
+config ASM_MODVERSIONS
+ bool
+ default HAVE_ASM_MODVERSIONS && MODVERSIONS
+ help
+ This enables module versioning for exported symbols also from
+ assembly. This can be enabled only when the target architecture
+ supports it.
+
config MODULE_REL_CRCS
bool
depends on MODVERSIONS