path: root/Makefile
diff options
authorJames Hogan <>2013-02-06 12:56:59 +0000
committerMichal Marek <>2013-02-22 11:52:31 +0100
commit8937e897181a411f73faf4da83c452c7b0732929 (patch)
tree0d95332bedd56cb3072632474a5a579177dce4b1 /Makefile
parent9b58b9281d296d8e679e394d2aa5a02102dd8fe8 (diff)
On architectures which have symbol prefixes, depmod emits lots of warnings like this: WARNING: $module.ko needs unknown symbol $symbol This is because depmod isn't being passed the -P <symbol_prefix> arguments to specify the symbol prefix to ignore. This option is included since the 3.13 release of module-init-tools. Update scripts/ to take extra arguments for the symbol prefix (required but may be empty), and update the main Makefile to always pass "$(CONFIG_SYMBOL_PREFIX)" to scripts/ If the provided symbol prefix is non-empty, scripts/ checks if depmod --version reports module-init-tools with a version number < 3.13 otherwise it appends -P $SYMBOL_PREFIX to the depmod command line. Signed-off-by: James Hogan <> Cc: Michal Marek <> Cc: Cc: Mike Frysinger <> Cc: Yoshinori Sato <> Cc: Signed-off-by: Michal Marek <>
Diffstat (limited to 'Makefile')
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5812ec9a56b..d4dd2e4a045 100644
--- a/Makefile
+++ b/Makefile
@@ -1396,7 +1396,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))
# Run depmod only if we have and depmod is executable
quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
cmd_depmod = $(CONFIG_SHELL) $(srctree)/scripts/ $(DEPMOD) \
+ $(KERNELRELEASE) "$(patsubst "%",%,$(CONFIG_SYMBOL_PREFIX))"
# Create temporary dir for module support files
# clean it up only when building all modules