[PATCH 06/10] backports: Makefile.real: use depmod.sh instead of the depmod program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <s.martin49@xxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux