2006-06-27 03:35:46 +03: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 06:41:46 +02:00
|
|
|
# $Id$
|
2006-06-19 22:59:53 +03:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-19 22:59:53 +03:00
|
|
|
|
|
|
|
PKG_NAME:=broadcom-wl
|
2006-11-17 05:54:33 +02:00
|
|
|
PKG_VERSION:=4.80.53.0
|
2006-06-19 22:59:53 +03: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 07:24:52 +02:00
|
|
|
PKG_MD5SUM:=a7d8dde3ce474c361143b83e1d9890b1
|
2006-06-19 22:59:53 +03:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-19 22:59:53 +03:00
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
define Package/broadcom-wl/Default
|
2007-01-20 04:01:53 +02:00
|
|
|
SECTION:=kernel
|
|
|
|
CATEGORY:=Kernel modules
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
|
2006-06-25 19:05:43 +03:00
|
|
|
SUBMENU:=Proprietary BCM43xx WiFi driver
|
2007-09-08 22:55:42 +03:00
|
|
|
SUBMENUDEP:=@TARGET_brcm_2_4
|
2006-09-24 23:49:31 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-20 04:01:53 +02:00
|
|
|
define KernelPackage/brcm-wl/Default
|
2006-09-24 23:49:31 +03:00
|
|
|
$(call Package/broadcom-wl/Default)
|
|
|
|
SECTION:=kernel
|
2007-12-03 02:34:39 +02:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4 +wireless-tools
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
2007-11-10 21:00:53 +02:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/driver/wl$(1).o
|
2007-01-20 04:01:53 +02:00
|
|
|
AUTOLOAD:=$(call AutoLoad,30,wl$(1))
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define KernelPackage/brcm-wl/Default/description
|
|
|
|
This package contains the proprietary wireless driver for the Broadcom
|
|
|
|
BCM43xx chipset.
|
|
|
|
endef
|
|
|
|
|
2007-01-20 04:01:53 +02:00
|
|
|
define KernelPackage/brcm-wl
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call KernelPackage/brcm-wl/Default,)
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE+= (normal version)
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl/description
|
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-09-24 23:49:31 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-20 04:01:53 +02:00
|
|
|
define KernelPackage/brcm-wl-mimo
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call KernelPackage/brcm-wl/Default,_mimo)
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE+= (MIMO version)
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl-mimo/description
|
|
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
2006-06-20 00:11:35 +03:00
|
|
|
endef
|
|
|
|
|
2007-11-10 21:00:53 +02: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-20 00:11:35 +03:00
|
|
|
define Package/wlc
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2006-11-12 07:06:56 +02:00
|
|
|
TITLE:=wl driver setup utility
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wlc/description
|
|
|
|
This package contains an utility for initializing the proprietary Broadcom
|
|
|
|
wl driver.
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
2007-11-09 05:20:13 +02:00
|
|
|
define Package/brcm-compat-ldso
|
|
|
|
TITLE:=Broadcom wl/nas binary compatibility libraries
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
endef
|
|
|
|
|
2006-06-19 22:59:53 +03:00
|
|
|
define Package/wl
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE:=Proprietary Broadcom wl driver config utility
|
2007-11-17 17:50:41 +02:00
|
|
|
# DEPENDS+=+brcm-compat-ldso
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wl/description
|
|
|
|
This package contains the proprietary utility (wl) for configuring the
|
|
|
|
proprietary Broadcom wl driver.
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nas
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/broadcom-wl/Default)
|
2007-11-17 17:50:41 +02:00
|
|
|
DEPENDS+= +nvram
|
|
|
|
# DEPENDS+= +brcm-compat-ldso
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nas/description
|
|
|
|
This package contains the proprietary WPA/WPA2 authenticator (nas) for the
|
|
|
|
proprietary Broadcom wl driver.
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-27 12:09:53 +02:00
|
|
|
|
|
|
|
define install_template
|
|
|
|
$(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
|
2007-11-10 21:00:53 +02:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/driver/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
|
2007-01-27 12:09:53 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl/install
|
|
|
|
$(call install_template,$(1),)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/brcm-wl_mimo/install
|
|
|
|
$(call install_template,$(1),_mimo)
|
|
|
|
endef
|
|
|
|
|
2007-11-10 21:00:53 +02:00
|
|
|
MAKE_KMOD := $(MAKE) -C "$(LINUX_DIR)" \
|
2006-06-19 22:59:53 +03:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
PATH="$(TARGET_PATH)" \
|
2006-06-20 00:11:35 +03:00
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/kmod"
|
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
2007-11-10 21:00:53 +02:00
|
|
|
mv $(PKG_BUILD_DIR)/kmod $(PKG_BUILD_DIR)/driver
|
2006-09-24 23:49:31 +03:00
|
|
|
$(CP) src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
2006-06-20 00:11:35 +03:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
# Compile the kernel part
|
2007-11-10 21:00:53 +02: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" \
|
2006-06-20 00:11:35 +03:00
|
|
|
modules
|
2007-11-10 21:00:53 +02:00
|
|
|
$(MAKE_KMOD) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/wlcompat" \
|
|
|
|
DEBUG=1 \
|
2006-06-19 22:59:53 +03:00
|
|
|
modules
|
|
|
|
|
|
|
|
# Compile wlc
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-11-10 21:00:53 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2006-06-19 22:59:53 +03:00
|
|
|
all
|
2007-11-09 15:20:21 +02:00
|
|
|
# $(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 05:20:13 +02: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 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wlc/install
|
2006-06-25 18:42:53 +03:00
|
|
|
$(CP) ./files/* $(1)/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wlc/wlc $(1)/sbin/
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wl/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nas/install
|
2006-11-23 02:29:07 +02: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 07:48:01 +03:00
|
|
|
ln -sf nas $(1)/usr/sbin/nas4not
|
|
|
|
ln -sf nas $(1)/usr/sbin/nas4wds
|
2006-06-19 22:59:53 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-20 04:01:53 +02:00
|
|
|
$(eval $(call KernelPackage,brcm-wl))
|
|
|
|
$(eval $(call KernelPackage,brcm-wl-mimo))
|
2007-11-09 15:20:21 +02:00
|
|
|
#$(eval $(call BuildPackage,brcm-compat-ldso))
|
2007-11-10 21:00:53 +02:00
|
|
|
$(eval $(call KernelPackage,wlcompat))
|
|
|
|
$(eval $(call KernelPackage,wlcompat-debug))
|
2006-06-19 22:59:53 +03:00
|
|
|
$(eval $(call BuildPackage,wlc))
|
|
|
|
$(eval $(call BuildPackage,wl))
|
|
|
|
$(eval $(call BuildPackage,nas))
|