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.
7 # $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
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 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/broadcom-wl
/Default
28 CATEGORY
:=Kernel drivers
29 DEPENDS
:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo
30 SUBMENU
:=Proprietary BCM43xx WiFi driver
31 SUBMENUDEP
:=@LINUX_2_4_BRCM
34 define Package
/kmod-brcm-wl
/Default
35 $(call Package
/broadcom-wl
/Default
)
37 DEPENDS
:=@LINUX_2_4_BRCM
38 TITLE
:=Kernel driver for BCM43xx chipsets
40 This package contains the proprietary wireless driver for the Broadcom
\\\
42 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
)
45 define Package
/kmod-brcm-wl
46 $(call Package
/kmod-brcm-wl
/Default
)
47 TITLE
+= (normal version
)
48 DESCRIPTION
+= (normal version
).
51 define Package
/kmod-brcm-wl-mimo
52 $(call Package
/kmod-brcm-wl
/Default
)
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.
82 MAKEFLAGS_KMOD
:= -C
"$(LINUX_DIR)" \
83 CROSS_COMPILE
="$(TARGET_CROSS)" \
84 ARCH
="$(LINUX_KARCH)" \
85 PATH
="$(TARGET_PATH)" \
86 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
89 $(call Build
/Prepare
/Default
)
90 $(CP
) src
/* $(PKG_BUILD_DIR
)/
94 # Compile the kernel part
95 $(MAKE
) $(MAKEFLAGS_KMOD
) \
97 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
101 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
102 $(TARGET_CONFIGURE_OPTS
) \
103 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
108 $(INSTALL_DIR
) $(1)/etc
/modules.d
109 echo
"wl$(2)" > $(1)/etc
/modules.d
/20-wl
$(2)
110 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
111 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/kmod
/wl
$(2).o
$(PKG_BUILD_DIR
)/kmod
/wl
$(2).o.patch
$(1)/lib
/modules
/$(LINUX_VERSION
)/
114 define Package
/kmod-brcm-wl
/install
115 $(call wl_template
,$(1))
118 define Package
/kmod-brcm-wl-mimo
/install
119 $(call wl_template
,$(1),_mimo
)
122 define Package
/wlc
/install
123 $(CP
) .
/files
/* $(1)/
124 $(INSTALL_DIR
) $(1)/sbin
125 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
128 define Package
/wl
/install
129 $(INSTALL_DIR
) $(1)/usr
/sbin
130 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
133 define Package
/nas
/install
134 $(INSTALL_DIR
) $(1)/usr
/lib
135 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
136 $(INSTALL_DIR
) $(1)/usr
/sbin
137 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
138 ln
-sf nas
$(1)/usr
/sbin
/nas4not
139 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
142 $(eval
$(call BuildPackage
,kmod-brcm-wl
))
143 $(eval
$(call BuildPackage
,kmod-brcm-wl-mimo
))
144 $(eval
$(call BuildPackage
,wlc
))
145 $(eval
$(call BuildPackage
,wl
))
146 $(eval
$(call BuildPackage
,nas
))