diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-19 21:11:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-19 21:11:35 +0000 |
commit | 1e5f02e9d06a817352c4ce20338274b03f281b82 (patch) | |
tree | 657a44eae87306b640f5edf108e9a9fc226ae23d | |
parent | 5ddbc45eda82dffeeda3b2ed6d419d874f47cd2e (diff) | |
download | mtk-20170518-1e5f02e9d06a817352c4ce20338274b03f281b82.zip mtk-20170518-1e5f02e9d06a817352c4ce20338274b03f281b82.tar.gz mtk-20170518-1e5f02e9d06a817352c4ce20338274b03f281b82.tar.bz2 |
build mimo version of the broadcom wl driver as well
SVN-Revision: 4013
-rw-r--r-- | openwrt/package/broadcom-wl/Makefile | 38 | ||||
-rw-r--r-- | openwrt/package/broadcom-wl/src/kmod/Makefile | 12 |
2 files changed, 36 insertions, 14 deletions
diff --git a/openwrt/package/broadcom-wl/Makefile b/openwrt/package/broadcom-wl/Makefile index 497f392..5c9d8ce 100644 --- a/openwrt/package/broadcom-wl/Makefile +++ b/openwrt/package/broadcom-wl/Makefile @@ -27,8 +27,16 @@ define Package/kmod-brcm-wl VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE) endef -define Package/wlc +define Package/kmod-brcm-wl-mimo $(call Package/kmod-brcm-wl) + DEFAULT:=m if ALL + MENU:= + TITLE:=Proprietary BCM43xx WiFi driver (MIMO version) + DESCRIPTION:=Proprietary Wireless driver for the Broadcom BCM43xx chipset (MIMO version) +endef + +define Package/wlc + $(call Package/kmod-brcm-wl-mimo) DEPENDS:=kmod-brcm-wl TITLE:=Setup utility DESCRIPTION:=Utility for initializing the Broadcom wl driver @@ -53,13 +61,18 @@ define Build/Prepare $(CP) src/* $(PKG_BUILD_DIR)/ endef -define Build/Compile - # Compile the kernel part - $(MAKE) -C "$(LINUX_DIR)" \ +MAKEFLAGS_KMOD = -C "$(LINUX_DIR)" \ CROSS_COMPILE="$(TARGET_CROSS)" \ ARCH="$(LINUX_KARCH)" \ PATH="$(TARGET_PATH)" \ - SUBDIRS="$(PKG_BUILD_DIR)/kmod" \ + SUBDIRS="$(PKG_BUILD_DIR)/kmod" + + +define Build/Compile + # Compile the kernel part + $(MAKE) $(MAKEFLAGS_KMOD) \ + modules + $(MAKE) $(MAKEFLAGS_KMOD) MOD_NAME="_mimo" \ modules # Compile wlc @@ -70,11 +83,19 @@ define Build/Compile all endef -define Package/kmod-brcm-wl/install +define wl_template install -d -m0755 $(1)/etc/modules.d - echo "wl" > $(1)/etc/modules.d/20-wl + echo "wl$(2)" > $(1)/etc/modules.d/20-wl$(2) install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION) - install -m0644 $(PKG_BUILD_DIR)/kmod/wl.o $(1)/lib/modules/$(LINUX_VERSION)/ + install -m0644 $(PKG_BUILD_DIR)/kmod/wl$(2).o $(1)/lib/modules/$(LINUX_VERSION)/ +endef + +define Package/kmod-brcm-wl/install + $(call wl_template,$(1)) +endef + +define Package/kmod-brcm-wl-mimo/install + $(call wl_template,$(1),_mimo) endef define Package/wlc/install @@ -93,6 +114,7 @@ define Package/nas/install endef $(eval $(call BuildPackage,kmod-brcm-wl)) +$(eval $(call BuildPackage,kmod-brcm-wl-mimo)) $(eval $(call BuildPackage,wlc)) $(eval $(call BuildPackage,wl)) $(eval $(call BuildPackage,nas)) diff --git a/openwrt/package/broadcom-wl/src/kmod/Makefile b/openwrt/package/broadcom-wl/src/kmod/Makefile index 6723840..9a7cb89 100644 --- a/openwrt/package/broadcom-wl/src/kmod/Makefile +++ b/openwrt/package/broadcom-wl/src/kmod/Makefile @@ -13,20 +13,20 @@ EXTRA_CFLAGS += -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER -O_TARGET := wl_link.o +O_TARGET := wl_link$(MOD_NAME).o -obj-y := wl_mod.o +obj-y := wl_mod$(MOD_NAME).o obj-y += bcmutils.o hnddma.o linux_osl.o obj-m := $(O_TARGET) -wl_mod.o: wl_apsta.o +wl_mod$(MOD_NAME).o: wl_apsta$(MOD_NAME).o sed -e 's,eth%d,wl%d\x00,g' < $< > $@ -wl.o: wl_link.o +wl$(MOD_NAME).o: wl_link$(MOD_NAME).o $(OBJDUMP) -d $< | perl patchtable.pl > patchtable.bin - cat wl_link.o patchtable.bin > $@ + cat wl_link$(MOD_NAME).o patchtable.bin > $@ -modules: wl.o +modules: wl$(MOD_NAME).o include $(TOPDIR)/Rules.make |