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
24 SUBMENU
:=Proprietary BCM43xx WiFi driver
25 TITLE
:=Kernel driver
(normal version
)
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
)
33 TITLE
:=Kernel driver
(MIMO version
)
34 DESCRIPTION
:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
(MIMO version
)
38 $(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
)
56 TITLE
:=Proprietary WPA
/WPA2 authenticator
57 DESCRIPTION
:=Proprietary WPA
/WPA2 authenticator for the Broadcom wl driver
61 $(call Build
/Prepare
/Default
)
62 $(CP
) src
/* $(PKG_BUILD_DIR
)/
65 MAKEFLAGS_KMOD
= -C
"$(LINUX_DIR)" \
66 CROSS_COMPILE
="$(TARGET_CROSS)" \
67 ARCH
="$(LINUX_KARCH)" \
68 PATH
="$(TARGET_PATH)" \
69 SUBDIRS
="$(PKG_BUILD_DIR)/kmod"
73 # Compile the kernel part
74 $(MAKE
) $(MAKEFLAGS_KMOD
) \
76 $(MAKE
) $(MAKEFLAGS_KMOD
) MOD_NAME
="_mimo" \
80 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
81 $(TARGET_CONFIGURE_OPTS
) \
83 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
88 install -d
-m0755
$(1)/etc
/modules.d
89 echo
"wl$(2)" > $(1)/etc
/modules.d
/20-wl
$(2)
90 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
91 install -m0644
$(PKG_BUILD_DIR
)/kmod
/wl
$(2).o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
94 define Package
/kmod-brcm-wl
/install
95 $(call wl_template
,$(1))
98 define Package
/kmod-brcm-wl-mimo
/install
99 $(call wl_template
,$(1),_mimo
)
102 define Package
/wlc
/install
103 $(CP
) .
/files
/* $(1)/
104 install -d
-m0755
$(1)/sbin
105 install -m0755
$(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
108 define Package
/wl
/install
109 install -d
-m0755
$(1)/usr
/sbin
110 install -m0755
$(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
113 define Package
/nas
/install
114 install -d
-m0755
$(1)/usr
/lib
115 install -m0755
$(PKG_BUILD_DIR
)/libbcmcrypto.so
$(1)/usr
/lib
/
116 install -d
-m0755
$(1)/usr
/sbin
117 install -m0755
$(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
118 ln
-sf nas
$(1)/usr
/sbin
/nas4not
119 ln
-sf nas
$(1)/usr
/sbin
/nas4wds
122 $(eval
$(call BuildPackage
,kmod-brcm-wl
))
123 $(eval
$(call BuildPackage
,kmod-brcm-wl-mimo
))
124 $(eval
$(call BuildPackage
,wlc
))
125 $(eval
$(call BuildPackage
,wl
))
126 $(eval
$(call BuildPackage
,nas
))