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
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/broadcom-wl
/Default
26 CATEGORY
:=Kernel modules
27 DEPENDS
:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
28 SUBMENU
:=Proprietary BCM43xx WiFi driver
29 SUBMENUDEP
:=@LINUX_2_4_BRCM
32 define KernelPackage
/brcm-wl
/Default
33 $(call Package
/broadcom-wl
/Default
)
35 DEPENDS
:=@LINUX_2_4_BRCM
36 TITLE
:=Kernel driver for BCM43xx chipsets
38 This package contains the proprietary wireless driver for the Broadcom
\\\
40 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
)
41 FILES
:=$(PKG_BUILD_DIR
)/kmod
/wl
$(1).o
42 AUTOLOAD
:=$(call AutoLoad
,30,wl
$(1))
45 define KernelPackage
/brcm-wl
46 $(call KernelPackage
/brcm-wl
/Default
,)
47 TITLE
+= (normal version
)
48 DESCRIPTION
+= (normal version
).
51 define KernelPackage
/brcm-wl-mimo
52 $(call KernelPackage
/brcm-wl
/Default
,_mimo
)
53 TITLE
+= (MIMO version
)
54 DESCRIPTION
+= (MIMO version
).
58 $(call Package
/broadcom-wl
/Default
)
59 TITLE
:=wl driver setup utility
61 This package contains an utility for initializing the proprietary Broadcom
\\\
66 $(call Package
/broadcom-wl
/Default
)
67 TITLE
:=Proprietary Broadcom wl driver config utility
69 This package contains the proprietary utility
(wl
) for configuring the
\\\
70 proprietary Broadcom wl driver.
74 $(call Package
/broadcom-wl
/Default
)
76 TITLE
:=Proprietary Broadcom WPA
/WPA2 authenticator
78 This package contains the proprietary WPA
/WPA2 authenticator
(nas
) for the
\\\
79 proprietary Broadcom wl driver.
83 define install_template
84 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
85 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/kmod
/wl
$(2).o.patch
$(1)/lib
/modules
/$(LINUX_VERSION
)/
88 define KernelPackage
/brcm-wl
/install
89 $(call install_template
,$(1),)
92 define KernelPackage
/brcm-wl_mimo
/install
93 $(call install_template
,$(1),_mimo
)
96 MAKEFLAGS_KMOD
:= -C
"$(LINUX_DIR)" \
97 CROSS_COMPILE
="$(TARGET_CROSS)" \
98 ARCH
="$(LINUX_KARCH)" \
99 PATH
="$(TARGET_PATH)" \
100 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
103 $(call Build
/Prepare
/Default
)
104 $(CP
) src
/* $(PKG_BUILD_DIR
)/
108 # Compile the kernel part
109 $(MAKE
) $(MAKEFLAGS_KMOD
) \
111 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
115 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
116 $(TARGET_CONFIGURE_OPTS
) \
117 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
121 define Package
/wlc
/install
122 $(CP
) .
/files
/* $(1)/
123 $(INSTALL_DIR
) $(1)/sbin
124 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
127 define Package
/wl
/install
128 $(INSTALL_DIR
) $(1)/usr
/sbin
129 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
132 define Package
/nas
/install
133 $(INSTALL_DIR
) $(1)/usr
/lib
134 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
135 $(INSTALL_DIR
) $(1)/usr
/sbin
136 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
137 ln
-sf nas
$(1)/usr
/sbin
/nas4not
138 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
141 $(eval
$(call KernelPackage
,brcm-wl
))
142 $(eval
$(call KernelPackage
,brcm-wl-mimo
))
143 $(eval
$(call BuildPackage
,wlc
))
144 $(eval
$(call BuildPackage
,wl
))
145 $(eval
$(call BuildPackage
,nas
))