aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/Makefile
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2017-07-21 16:23:06 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2017-10-27 13:06:15 +0200
commit5cee71904f4792840a1153d8ebbd04c6f93c3c98 (patch)
tree9152d89509be6da016cb51e5e56e409e06ac492b /package/kernel/broadcom-wl/Makefile
parent557e98ebcc26310dfdff4269db6ec2a412011ac0 (diff)
downloadupstream-5cee71904f4792840a1153d8ebbd04c6f93c3c98.tar.gz
upstream-5cee71904f4792840a1153d8ebbd04c6f93c3c98.tar.bz2
upstream-5cee71904f4792840a1153d8ebbd04c6f93c3c98.zip
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@gmail.com>
Diffstat (limited to 'package/kernel/broadcom-wl/Makefile')
-rw-r--r--package/kernel/broadcom-wl/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/package/kernel/broadcom-wl/Makefile b/package/kernel/broadcom-wl/Makefile
index c1741416f3..cca0023282 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) \