aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/Makefile
diff options
context:
space:
mode:
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) \