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>
This commit is contained in:
Jonas Gorski 2017-07-21 16:23:06 +02:00
parent 557e98ebcc
commit 5cee71904f

View File

@ -112,21 +112,23 @@ define Build/Prepare
endef endef
define Build/Compile define Build/Compile
# Compile glue driver
$(MAKE_KMOD) -C "$(LINUX_DIR)" \
SUBDIRS="$(PKG_BUILD_DIR)/glue" \
modules
# Compile the kernel part # Compile the kernel part
$(MAKE_KMOD) \ $(MAKE_KMOD) \
SUBDIRS="$(PKG_BUILD_DIR)/driver" \ SUBDIRS="$(PKG_BUILD_DIR)/driver" \
MODFLAGS="-DMODULE -mlong-calls" \ MODFLAGS="-DMODULE -mlong-calls" \
KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
modules modules
$(MAKE_KMOD) \ $(MAKE_KMOD) \
SUBDIRS="$(PKG_BUILD_DIR)/driver-mini" \ SUBDIRS="$(PKG_BUILD_DIR)/driver-mini" \
MODFLAGS="-DMODULE -mlong-calls" \ MODFLAGS="-DMODULE -mlong-calls" \
BUILD_TYPE="wl_apsta_mini" \ BUILD_TYPE="wl_apsta_mini" \
modules KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
# Compile glue driver
$(MAKE_KMOD) -C "$(LINUX_DIR)" \
SUBDIRS="$(PKG_BUILD_DIR)/glue" \
modules modules
# Compile libshared # Compile libshared