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
|
2008-01-06 19:28:07 +00:00
|
|
|
PKG_VERSION:=4.150.10.5
|
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
|
2008-01-15 02:25:05 +00:00
|
|
|
PKG_MD5SUM:=a86fc00ddd24f9dce568b0b42b9739c5
|
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
|
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-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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2006-06-19 21:11:35 +00:00
|
|
|
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
|
|
|
|
|
2007-11-09 03:20:13 +00:00
|
|
|
define Package/brcm-compat-ldso
|
|
|
|
TITLE:=Broadcom wl/nas binary compatibility libraries
|
2008-01-03 19:33:51 +00:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4
|
2007-11-09 03:20:13 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
endef
|
|
|
|
|
2006-06-19 19:59:53 +00:00
|
|
|
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
|
2008-01-06 19:28:07 +00:00
|
|
|
# DEPENDS+=+brcm-compat-ldso
|
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)
|
2007-11-17 15:50:41 +00:00
|
|
|
DEPENDS+= +nvram
|
2008-01-06 19:28:07 +00:00
|
|
|
# DEPENDS+= +brcm-compat-ldso
|
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-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
|
|
|
|
|
|
|
|
# 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
|
2008-01-06 19:28:07 +00:00
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/nas $(PKG_BUILD_DIR)/nas_exe.o -L$(STAGING_DIR)/usr/lib -lnvram
|
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/wl $(PKG_BUILD_DIR)/wl_exe.o
|
|
|
|
# $(NO_TRACE_MAKE) -C compat-ldso -f build.mk PKG_INSTALL_DIR="$(PKG_BUILD_DIR)"
|
|
|
|
# $(SED) 's,ld-uClibc.so.0,ld-uClibc.brcm,' \
|
|
|
|
# $(PKG_BUILD_DIR)/wl \
|
|
|
|
# $(PKG_BUILD_DIR)/nas
|
2007-11-09 03:20:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/brcm-compat-ldso/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ld-uClibc.brcm $(1)/lib/
|
2006-06-19 19:59:53 +00:00
|
|
|
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/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))
|
2008-01-06 19:28:07 +00:00
|
|
|
#$(eval $(call BuildPackage,brcm-compat-ldso))
|
2007-11-10 19:00:53 +00:00
|
|
|
$(eval $(call KernelPackage,wlcompat))
|
|
|
|
$(eval $(call KernelPackage,wlcompat-debug))
|
2006-06-19 19:59:53 +00:00
|
|
|
$(eval $(call BuildPackage,wlc))
|
|
|
|
$(eval $(call BuildPackage,wl))
|
|
|
|
$(eval $(call BuildPackage,nas))
|