2009-01-31 16:08:19 +00:00
|
|
|
#
|
2010-05-16 13:46:57 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-19 19:59:53 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-19 19:59:53 +00:00
|
|
|
|
|
|
|
PKG_NAME:=broadcom-wl
|
2009-01-07 04:26:14 +00:00
|
|
|
PKG_VERSION:=4.150.10.5.3
|
2010-05-23 21:55:40 +00:00
|
|
|
PKG_RELEASE:=8
|
2009-08-06 12:02:50 +00:00
|
|
|
WLC_VERSION:=0.2
|
2006-06-19 19:59:53 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
|
2009-01-07 04:26:14 +00:00
|
|
|
PKG_MD5SUM:=cc615fd49719eea8bce5b2a8813783f3
|
2008-01-06 19:28:07 +00:00
|
|
|
|
|
|
|
WL_WEXT=1
|
2006-06-19 19:59:53 +00:00
|
|
|
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-19 19:59:53 +00:00
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
define Package/broadcom-wl/Default
|
2007-01-20 02:01:53 +00:00
|
|
|
SECTION:=kernel
|
|
|
|
CATEGORY:=Kernel modules
|
2010-06-14 11:00:30 +00:00
|
|
|
DEPENDS:=@PACKAGE_kmod-brcm-wl-old||PACKAGE_kmod-brcm-wl-mimo-old
|
2006-06-25 16:05:43 +00:00
|
|
|
SUBMENU:=Proprietary BCM43xx WiFi driver
|
2007-09-08 19:55:42 +00:00
|
|
|
SUBMENUDEP:=@TARGET_brcm_2_4
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2007-01-20 02:01:53 +00:00
|
|
|
define KernelPackage/brcm-wl/Default
|
2006-09-24 20:49:31 +00:00
|
|
|
$(call Package/broadcom-wl/Default)
|
|
|
|
SECTION:=kernel
|
2007-12-03 00:34:39 +00:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4 +wireless-tools
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
2007-11-10 19:00:53 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/driver/wl$(1).o
|
2007-01-20 02:01:53 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,30,wl$(1))
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-07 08:34:51 +00:00
|
|
|
define KernelPackage/brcm-wl/Default/description
|
|
|
|
This package contains the proprietary wireless driver for the Broadcom
|
|
|
|
BCM43xx chipset.
|
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define KernelPackage/brcm-wl-old
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call KernelPackage/brcm-wl/Default,)
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE+= (normal version)
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define KernelPackage/brcm-wl-old/description
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define KernelPackage/brcm-wl-mimo-old
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call KernelPackage/brcm-wl/Default,_mimo)
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE+= (MIMO version)
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define KernelPackage/brcm-wl-mimo-old/description
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-06-19 21:11:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-11-10 19:00:53 +00:00
|
|
|
define KernelPackage/wlcompat/Default
|
|
|
|
$(call KernelPackage/brcm-wl/Default,)
|
|
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/wlcompat/wlcompat$(1).o
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/wlcompat
|
|
|
|
$(call KernelPackage/wlcompat/Default,)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,wlcompat)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/wlcompat/description
|
|
|
|
This package contains a wrapper module, that provides Wireless Extension
|
|
|
|
support for the proprietary Broadcom wl module.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/wlcompat-debug
|
|
|
|
$(call KernelPackage/wlcompat/Default,-debug)
|
|
|
|
TITLE+= (debug)
|
|
|
|
AUTOLOAD:=
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/wlcompat-debug/description
|
|
|
|
$(call KernelPackage/wlcompat/description)
|
|
|
|
This is the debugging version.
|
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wlc-old
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2006-11-12 05:06:56 +00:00
|
|
|
TITLE:=wl driver setup utility
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wlc-old/description
|
2007-09-07 08:34:51 +00:00
|
|
|
This package contains an utility for initializing the proprietary Broadcom
|
|
|
|
wl driver.
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wl-old
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE:=Proprietary Broadcom wl driver config utility
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wl-old/description
|
2007-09-07 08:34:51 +00:00
|
|
|
This package contains the proprietary utility (wl) for configuring the
|
|
|
|
proprietary Broadcom wl driver.
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/nas-old
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/nas-old/description
|
2007-09-07 08:34:51 +00:00
|
|
|
This package contains the proprietary WPA/WPA2 authenticator (nas) for the
|
|
|
|
proprietary Broadcom wl driver.
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-11-10 19:00:53 +00:00
|
|
|
MAKE_KMOD := $(MAKE) -C "$(LINUX_DIR)" \
|
2006-06-19 19:59:53 +00:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
PATH="$(TARGET_PATH)" \
|
2006-06-19 21:11:35 +00:00
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/kmod"
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
$(CP) src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
2006-06-19 21:11:35 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
# Compile the kernel part
|
2007-11-10 19:00:53 +00:00
|
|
|
$(MAKE_KMOD) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/driver" \
|
|
|
|
modules
|
|
|
|
$(MAKE_KMOD) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/driver" \
|
|
|
|
MOD_NAME="_mimo" \
|
|
|
|
modules
|
|
|
|
$(MAKE_KMOD) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/wlcompat" \
|
2008-01-06 19:28:07 +00:00
|
|
|
$(if $(WL_WEXT),WL_WEXT=1) \
|
2006-06-19 21:11:35 +00:00
|
|
|
modules
|
2007-11-10 19:00:53 +00:00
|
|
|
$(MAKE_KMOD) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/wlcompat" \
|
|
|
|
DEBUG=1 \
|
2008-01-06 19:28:07 +00:00
|
|
|
$(if $(WL_WEXT),WL_WEXT=1) \
|
2006-06-19 19:59:53 +00:00
|
|
|
modules
|
|
|
|
|
2009-04-27 14:18:34 +00:00
|
|
|
# NVRAM stub
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $(PKG_BUILD_DIR)/nvram/nvram_stub.o $(PKG_BUILD_DIR)/nvram/nvram_stub.c
|
|
|
|
|
2006-06-19 19:59:53 +00:00
|
|
|
# Compile wlc
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-11-10 19:00:53 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2006-06-19 19:59:53 +00:00
|
|
|
all
|
2009-04-27 14:18:34 +00:00
|
|
|
|
2008-04-07 00:24:19 +00:00
|
|
|
# Compile libshared
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/router/shared \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I. -I$(PKG_BUILD_DIR)/include -Dlinux=1" \
|
|
|
|
all
|
2009-04-27 14:18:34 +00:00
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/nas \
|
|
|
|
$(PKG_BUILD_DIR)/nas_exe.o \
|
|
|
|
$(PKG_BUILD_DIR)/nvram/nvram_stub.o \
|
|
|
|
$(TARGET_LDFLAGS) \
|
|
|
|
$(PKG_BUILD_DIR)/router/shared/libshared.a
|
2008-01-06 19:28:07 +00:00
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/wl $(PKG_BUILD_DIR)/wl_exe.o
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-05 22:32:26 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/router/shared/libshared.a $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wlc-old/install
|
2006-06-25 15:42:53 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wlc/wlc $(1)/sbin/
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/wl-old/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
define Package/nas-old/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nas $(1)/usr/sbin/
|
2006-06-20 04:48:01 +00:00
|
|
|
ln -sf nas $(1)/usr/sbin/nas4not
|
|
|
|
ln -sf nas $(1)/usr/sbin/nas4wds
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-14 11:00:30 +00:00
|
|
|
$(eval $(call KernelPackage,brcm-wl-old))
|
|
|
|
$(eval $(call KernelPackage,brcm-wl-mimo-old))
|
2007-11-10 19:00:53 +00:00
|
|
|
$(eval $(call KernelPackage,wlcompat))
|
|
|
|
$(eval $(call KernelPackage,wlcompat-debug))
|
2010-06-14 11:00:30 +00:00
|
|
|
$(eval $(call BuildPackage,wlc-old))
|
|
|
|
$(eval $(call BuildPackage,wl-old))
|
|
|
|
$(eval $(call BuildPackage,nas-old))
|