[source] broadcom-wl: reorder kmod build and pass EXTRA_VERSIONS

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 27 04:08:23 PDT 2017


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/5cee71904f4792840a1153d8ebbd04c6f93c3c98

commit 5cee71904f4792840a1153d8ebbd04c6f93c3c98
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Fri Jul 21 16:23:06 2017 +0200

    broadcom-wl: reorder kmod build and pass EXTRA_VERSIONS
    
    Reoder the build to build the glue module first and pass the glue module's
    Module.symvers to the wl driver builds.
    
    This allows modpost to properly store a wl_glue dependency in the driver.
    
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 package/kernel/broadcom-wl/Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/package/kernel/broadcom-wl/Makefile b/package/kernel/broadcom-wl/Makefile
index c174141..cca0023 100644
--- a/package/kernel/broadcom-wl/Makefile
+++ b/package/kernel/broadcom-wl/Makefile
@@ -112,23 +112,25 @@ define Build/Prepare
 endef
 
 define Build/Compile
+	# Compile glue driver
+	$(MAKE_KMOD) -C "$(LINUX_DIR)" \
+		SUBDIRS="$(PKG_BUILD_DIR)/glue" \
+		modules
+
 	# Compile the kernel part
 	$(MAKE_KMOD) \
 		SUBDIRS="$(PKG_BUILD_DIR)/driver" \
 		MODFLAGS="-DMODULE -mlong-calls" \
+		KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
 		modules
 
 	$(MAKE_KMOD) \
 		SUBDIRS="$(PKG_BUILD_DIR)/driver-mini" \
 		MODFLAGS="-DMODULE -mlong-calls" \
 		BUILD_TYPE="wl_apsta_mini" \
+		KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
 		modules
 
-	# Compile glue driver
-	$(MAKE_KMOD) -C "$(LINUX_DIR)" \
-		SUBDIRS="$(PKG_BUILD_DIR)/glue" \
-		modules                                        
-
 	# Compile libshared
 	$(MAKE) -C $(PKG_BUILD_DIR)/shared \
 		$(TARGET_CONFIGURE_OPTS) \



More information about the lede-commits mailing list