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-09-08 22:55:42 +03:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4
|
2006-09-24 23:49:31 +03:00
|
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
2007-01-20 04:01:53 +02:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/kmod/wl$(1).o
|
|
|
|
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
|
|
|
|
|
|
|
|
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-09 05:20:13 +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-09 05:20:13 +02:00
|
|
|
DEPENDS+= +nvram +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)
|
|
|
|
$(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 23:49:31 +03:00
|
|
|
MAKEFLAGS_KMOD:= -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)
|
|
|
|
$(CP) src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
2006-06-20 00:11:35 +03:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
# Compile the kernel part
|
|
|
|
$(MAKE) $(MAKEFLAGS_KMOD) \
|
|
|
|
modules
|
|
|
|
$(MAKE) $(MAKEFLAGS_KMOD) MOD_NAME="_mimo" \
|
2006-06-19 22:59:53 +03:00
|
|
|
modules
|
|
|
|
|
|
|
|
# Compile wlc
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
|
|
|
|
all
|
2007-11-09 05:20:13 +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
|
|
|
|
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 05:20:13 +02:00
|
|
|
$(eval $(call BuildPackage,brcm-compat-ldso))
|
2006-06-19 22:59:53 +03:00
|
|
|
$(eval $(call BuildPackage,wlc))
|
|
|
|
$(eval $(call BuildPackage,wl))
|
|
|
|
$(eval $(call BuildPackage,nas))
|