Call depmod.sh from the kernel source tree and set all parameter to
improve cross-compilation support.

This way, target root location, kernel version and symbol prefix are
also handled.

Signed-off-by: Samuel Martin <[email protected]>
---
 backport/Makefile.real | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/backport/Makefile.real b/backport/Makefile.real
index a12a0db..1dc9323 100644
--- a/backport/Makefile.real
+++ b/backport/Makefile.real
@@ -97,7 +97,11 @@ install: modules
        @./scripts/blacklist.sh $(KLIB)/ $(KLIB)/$(KMODDIR) $(KROOT)
        @./scripts/compress_modules.sh $(KLIB)/$(KMODDIR)
        @./scripts/check_depmod.sh $(DEPMOD) $(KROOT)
-       @$(DEPMOD) -a
+       @$(KMODPATH_ARGS) $(KLIB_BUILD)/scripts/depmod.sh \
+               $(DEPMOD) \
+               $(KVERSION) \
+               "$(shell sed -n '/^CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX=y/ 
s//_/p' \
+                       $(KLIB_BUILD)/.config)"
        @./scripts/update-initramfs.sh $(KLIB)
        @echo
        @echo Your backported driver modules should be installed now.
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to