diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-07-21 16:23:06 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-10-27 13:06:15 +0200 |
commit | 5cee71904f4792840a1153d8ebbd04c6f93c3c98 (patch) | |
tree | 9152d89509be6da016cb51e5e56e409e06ac492b /package/kernel/broadcom-wl | |
parent | 557e98ebcc26310dfdff4269db6ec2a412011ac0 (diff) | |
download | upstream-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')
-rw-r--r-- | package/kernel/broadcom-wl/Makefile | 12 |
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) \ |