2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
13 PKG_VERSION
:=4.80.53.0
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
19 PKG_MD5SUM
:=a7d8dde3ce474c361143b83e1d9890b1
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/broadcom-wl
/Default
25 CATEGORY
:=Kernel modules
26 DEPENDS
:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
27 SUBMENU
:=Proprietary BCM43xx WiFi driver
28 SUBMENUDEP
:=@LINUX_2_4_BRCM
31 define KernelPackage
/brcm-wl
/Default
32 $(call Package
/broadcom-wl
/Default
)
34 DEPENDS
:=@LINUX_2_4_BRCM
35 TITLE
:=Kernel driver for BCM43xx chipsets
37 This package contains the proprietary wireless driver for the Broadcom
\\\
39 FILES
:=$(PKG_BUILD_DIR
)/kmod
/wl
$(1).o
40 AUTOLOAD
:=$(call AutoLoad
,30,wl
$(1))
43 define KernelPackage
/brcm-wl
44 $(call KernelPackage
/brcm-wl
/Default
,)
45 TITLE
+= (normal version
)
46 DESCRIPTION
+= (normal version
).
49 define KernelPackage
/brcm-wl-mimo
50 $(call KernelPackage
/brcm-wl
/Default
,_mimo
)
51 TITLE
+= (MIMO version
)
52 DESCRIPTION
+= (MIMO version
).
56 $(call Package
/broadcom-wl
/Default
)
57 TITLE
:=wl driver setup utility
59 This package contains an utility for initializing the proprietary Broadcom
\\\
64 $(call Package
/broadcom-wl
/Default
)
65 TITLE
:=Proprietary Broadcom wl driver config utility
67 This package contains the proprietary utility
(wl
) for configuring the
\\\
68 proprietary Broadcom wl driver.
72 $(call Package
/broadcom-wl
/Default
)
74 TITLE
:=Proprietary Broadcom WPA
/WPA2 authenticator
76 This package contains the proprietary WPA
/WPA2 authenticator
(nas
) for the
\\\
77 proprietary Broadcom wl driver.
81 define install_template
82 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
83 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/kmod
/wl
$(2).o.patch
$(1)/lib
/modules
/$(LINUX_VERSION
)/
86 define KernelPackage
/brcm-wl
/install
87 $(call install_template
,$(1),)
90 define KernelPackage
/brcm-wl_mimo
/install
91 $(call install_template
,$(1),_mimo
)
94 MAKEFLAGS_KMOD
:= -C
"$(LINUX_DIR)" \
95 CROSS_COMPILE
="$(TARGET_CROSS)" \
96 ARCH
="$(LINUX_KARCH)" \
97 PATH
="$(TARGET_PATH)" \
98 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
101 $(call Build
/Prepare
/Default
)
102 $(CP
) src
/* $(PKG_BUILD_DIR
)/
106 # Compile the kernel part
107 $(MAKE
) $(MAKEFLAGS_KMOD
) \
109 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
113 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
114 $(TARGET_CONFIGURE_OPTS
) \
115 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
119 define Package
/wlc
/install
120 $(CP
) .
/files
/* $(1)/
121 $(INSTALL_DIR
) $(1)/sbin
122 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
125 define Package
/wl
/install
126 $(INSTALL_DIR
) $(1)/usr
/sbin
127 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
130 define Package
/nas
/install
131 $(INSTALL_DIR
) $(1)/usr
/lib
132 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
133 $(INSTALL_DIR
) $(1)/usr
/sbin
134 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
135 ln
-sf nas
$(1)/usr
/sbin
/nas4not
136 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
139 $(eval
$(call KernelPackage
,brcm-wl
))
140 $(eval
$(call KernelPackage
,brcm-wl-mimo
))
141 $(eval
$(call BuildPackage
,wlc
))
142 $(eval
$(call BuildPackage
,wl
))
143 $(eval
$(call BuildPackage
,nas
))