2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-03-04 04:41:46 +00:00
|
|
|
# $Id$
|
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
|
2006-11-17 03:54:33 +00:00
|
|
|
PKG_VERSION:=4.80.53.0
|
2006-06-19 19:59:53 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
WLC_VERSION:=0.1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
|
2006-11-17 05:24:52 +00:00
|
|
|
PKG_MD5SUM:=a7d8dde3ce474c361143b83e1d9890b1
|
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
|
2006-09-24 20:49:31 +00:00
|
|
|
DEPENDS:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
|
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-09-08 19:55:42 +00:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
2007-01-20 02:01:53 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/kmod/wl$(1).o
|
|
|
|
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
|
|
|
|
|
2007-01-20 02:01:53 +00:00
|
|
|
define KernelPackage/brcm-wl
|
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
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl/description
|
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2007-01-20 02:01:53 +00:00
|
|
|
define KernelPackage/brcm-wl-mimo
|
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
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl-mimo/description
|
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-06-19 21:11:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wlc
|
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
|
|
|
|
|
|
|
|
define Package/wlc/description
|
|
|
|
This package contains an utility for initializing the proprietary Broadcom
|
|
|
|
wl driver.
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wl
|
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
|
|
|
|
|
|
|
|
define Package/wl/description
|
|
|
|
This package contains the proprietary utility (wl) for configuring the
|
|
|
|
proprietary Broadcom wl driver.
|
2006-06-19 19:59:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nas
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call Package/broadcom-wl/Default)
|
|
|
|
DEPENDS+= +nvram
|
2006-09-24 20:49:31 +00:00
|
|
|
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nas/description
|
|
|
|
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-01-27 10:09:53 +00:00
|
|
|
|
|
|
|
define install_template
|
|
|
|
$(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl/install
|
|
|
|
$(call install_template,$(1),)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl_mimo/install
|
|
|
|
$(call install_template,$(1),_mimo)
|
|
|
|
endef
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
MAKEFLAGS_KMOD:= -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
|
|
|
|
$(MAKE) $(MAKEFLAGS_KMOD) \
|
|
|
|
modules
|
|
|
|
$(MAKE) $(MAKEFLAGS_KMOD) MOD_NAME="_mimo" \
|
2006-06-19 19:59:53 +00:00
|
|
|
modules
|
|
|
|
|
|
|
|
# Compile wlc
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wlc/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
|
|
|
|
|
|
|
|
define Package/wl/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
|
|
|
|
|
|
|
|
define Package/nas/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libbcmcrypto.so $(1)/usr/lib/
|
|
|
|
$(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
|
|
|
|
|
2007-01-20 02:01:53 +00:00
|
|
|
$(eval $(call KernelPackage,brcm-wl))
|
|
|
|
$(eval $(call KernelPackage,brcm-wl-mimo))
|
2006-06-19 19:59:53 +00:00
|
|
|
$(eval $(call BuildPackage,wlc))
|
|
|
|
$(eval $(call BuildPackage,wl))
|
|
|
|
$(eval $(call BuildPackage,nas))
|