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
17 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
19 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
20 PKG_MD5SUM
:=7d9fab2c611369bbe075c3924ea77450
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/kmod-brcm-wl
28 DEPENDS
:=@LINUX_2_4_BRCM
30 SUBMENU
:=Proprietary BCM43xx WiFi driver
31 TITLE
:=Kernel driver
(normal version
)
32 DESCRIPTION
:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
33 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
)
36 define Package
/kmod-brcm-wl-mimo
37 $(call Package
/kmod-brcm-wl
)
39 TITLE
:=Kernel driver
(MIMO version
)
40 DESCRIPTION
:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
(MIMO version
)
44 $(call Package
/kmod-brcm-wl-mimo
)
48 DESCRIPTION
:=Utility for initializing the Broadcom wl driver
49 VERSION
:=$(WLC_VERSION
)-$(PKG_RELEASE
)
54 TITLE
:=Utility for changing the driver
's parameters
55 DESCRIPTION:=Utility for changing the Broadcom wl driver's parameters
56 VERSION
:=$(PKG_VERSION
)-$(PKG_RELEASE
)
63 TITLE
:=Proprietary WPA
/WPA2 authenticator
64 DESCRIPTION
:=Proprietary WPA
/WPA2 authenticator for the Broadcom wl driver
68 $(call Build
/Prepare
/Default
)
69 $(CP
) src
/* $(PKG_BUILD_DIR
)/
72 MAKEFLAGS_KMOD
= -C
"$(LINUX_DIR)" \
73 CROSS_COMPILE
="$(TARGET_CROSS)" \
74 ARCH
="$(LINUX_KARCH)" \
75 PATH
="$(TARGET_PATH)" \
76 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
80 # Compile the kernel part
81 $(MAKE
) $(MAKEFLAGS_KMOD
) \
83 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
87 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
88 $(TARGET_CONFIGURE_OPTS
) \
90 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
95 install -d
-m0755
$(1)/etc
/modules.d
96 echo
"wl$(2)" > $(1)/etc
/modules.d
/20-wl
$(2)
97 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
98 install -m0644
$(PKG_BUILD_DIR
)/kmod
/wl
$(2).o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
101 define Package
/kmod-brcm-wl
/install
102 $(call wl_template
,$(1))
105 define Package
/kmod-brcm-wl-mimo
/install
106 $(call wl_template
,$(1),_mimo
)
109 define Package
/wlc
/install
110 $(CP
) .
/files
/* $(1)/
111 install -d
-m0755
$(1)/sbin
112 install -m0755
$(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
115 define Package
/wl
/install
116 install -d
-m0755
$(1)/usr
/sbin
117 install -m0755
$(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
120 define Package
/nas
/install
121 install -d
-m0755
$(1)/usr
/lib
122 install -m0755
$(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
123 install -d
-m0755
$(1)/usr
/sbin
124 install -m0755
$(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
125 ln
-sf nas
$(1)/usr
/sbin
/nas4not
126 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
129 $(eval
$(call BuildPackage
,kmod-brcm-wl
))
130 $(eval
$(call BuildPackage
,kmod-brcm-wl-mimo
))
131 $(eval
$(call BuildPackage
,wlc
))
132 $(eval
$(call BuildPackage
,wl
))
133 $(eval
$(call BuildPackage
,nas
))