1 # $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
13 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
14 PKG_MD5SUM
:=7d9fab2c611369bbe075c3924ea77450
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/kmod-brcm-wl
22 DEPENDS
:=@LINUX_2_4_BRCM
25 TITLE
:=Proprietary BCM43xx WiFi driver
26 DESCRIPTION
:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
27 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
)
30 define Package
/kmod-brcm-wl-mimo
31 $(call Package
/kmod-brcm-wl
)
34 TITLE
:=Proprietary BCM43xx WiFi driver
(MIMO version
)
35 DESCRIPTION
:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
(MIMO version
)
39 $(call Package
/kmod-brcm-wl-mimo
)
42 DESCRIPTION
:=Utility for initializing the Broadcom wl driver
43 VERSION
:=$(WLC_VERSION
)-$(PKG_RELEASE
)
48 TITLE
:=Utility for changing the driver
's parameters
49 DESCRIPTION:=Utility for changing the Broadcom wl driver's parameters
50 VERSION
:=$(PKG_VERSION
)-$(PKG_RELEASE
)
55 TITLE
:=Proprietary WPA
/WPA2 authenticator
56 DESCRIPTION
:=Proprietary WPA
/WPA2 authenticator for the Broadcom wl driver
60 $(call Build
/Prepare
/Default
)
61 $(CP
) src
/* $(PKG_BUILD_DIR
)/
64 MAKEFLAGS_KMOD
= -C
"$(LINUX_DIR)" \
65 CROSS_COMPILE
="$(TARGET_CROSS)" \
66 ARCH
="$(LINUX_KARCH)" \
67 PATH
="$(TARGET_PATH)" \
68 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
72 # Compile the kernel part
73 $(MAKE
) $(MAKEFLAGS_KMOD
) \
75 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
79 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
80 $(TARGET_CONFIGURE_OPTS
) \
82 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
87 install -d
-m0755
$(1)/etc
/modules.d
88 echo
"wl$(2)" > $(1)/etc
/modules.d
/20-wl
$(2)
89 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
90 install -m0644
$(PKG_BUILD_DIR
)/kmod
/wl
$(2).o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
93 define Package
/kmod-brcm-wl
/install
94 $(call wl_template
,$(1))
97 define Package
/kmod-brcm-wl-mimo
/install
98 $(call wl_template
,$(1),_mimo
)
101 define Package
/wlc
/install
102 install -d
-m0755
$(1)/sbin
103 install -m0755
$(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
106 define Package
/wl
/install
107 install -d
-m0755
$(1)/usr
/sbin
108 install -m0755
$(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
111 define Package
/nas
/install
112 install -d
-m0755
$(1)/usr
/lib
113 install -m0755
$(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
114 install -d
-m0755
$(1)/usr
/sbin
115 install -m0755
$(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
116 ln
-sf nas
$(1)/usr
/sbin
/nas4not
117 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
120 $(eval
$(call BuildPackage
,kmod-brcm-wl
))
121 $(eval
$(call BuildPackage
,kmod-brcm-wl-mimo
))
122 $(eval
$(call BuildPackage
,wlc
))
123 $(eval
$(call BuildPackage
,wl
))
124 $(eval
$(call BuildPackage
,nas
))