[OpenWrt-Devel] [PATCH] include: make sure modules are modposted after initramfs image is built
Michel Stam
m.stam at fugro.nl
Thu Oct 2 09:33:13 EDT 2014
From: Tjalling Hattink <t.hattink at fugro.nl>
Otherwise the modpost steps for individual modules that are compiled manually
(using make package/<name_of_module>/install) will give warning of missing
symbols when that module depends other modules.
This is caused by the Module.symvers file not containing any symbols anymore
of external modules when the initramfs image is built without specifically
giving the modules target.
Signed-off-by: Tjalling Hattink <t.hattink at fugro.nl>
---
include/kernel-defaults.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index da06abd..2f2e564 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -151,6 +151,7 @@ endef
define Kernel/CompileImage/Default
rm -f $(TARGET_DIR)/init
+$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME))
+ +$(MAKE) $(KERNEL_MAKEOPTS) modules
#")
$(call Kernel/CopyImage)
endef
@@ -161,6 +162,7 @@ define Kernel/CompileImage/Initramfs
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/init $(TARGET_DIR)/init
rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio*
+$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME))
+ +$(MAKE) $(KERNEL_MAKEOPTS) modules
#")
#")
$(call Kernel/CopyImage,-initramfs)
--
1.7.12.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list