1 # $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
3 include $(TOPDIR
)/rules.mk
4 include $(TOPDIR
)/package
/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
:=8ff7481425e0b04fc66f2bf950474cbc
17 include $(TOPDIR
)/package
/rules.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
)
31 $(call Package
/kmod-brcm-wl
)
34 DESCRIPTION
:=Utility for initializing the Broadcom wl driver
35 VERSION
:=$(WLC_VERSION
)-$(PKG_RELEASE
)
40 TITLE
:=Utility for changing the driver
's parameters
41 DESCRIPTION:=Utility for changing the Broadcom wl driver's parameters
42 VERSION
:=$(PKG_VERSION
)-$(PKG_RELEASE
)
47 TITLE
:=Proprietary WPA
/WPA2 authenticator
48 DESCRIPTION
:=Proprietary WPA
/WPA2 authenticator for the Broadcom wl driver
52 $(call Build
/Prepare
/Default
)
53 $(CP
) src
/* $(PKG_BUILD_DIR
)/
57 # Compile the kernel part
58 $(MAKE
) -C
"$(LINUX_DIR)" \
59 CROSS_COMPILE
="$(TARGET_CROSS)" \
60 ARCH
="$(LINUX_KARCH)" \
61 PATH
="$(TARGET_PATH)" \
62 SUBDIRS
="$(PKG_BUILD_DIR)/kmod" \
66 $(MAKE
) -C
$(PKG_BUILD_DIR
)/wlc \
67 $(TARGET_CONFIGURE_OPTS
) \
69 CFLAGS
="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
73 define Package
/kmod-brcm-wl
/install
74 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
75 install -m0644
$(PKG_BUILD_DIR
)/kmod
/wl.o
$(1)/lib
/modules
/$(LINUX_VERSION
)/
78 define Package
/wlc
/install
79 install -d
-m0755
$(1)/sbin
80 install -m0755
$(PKG_BUILD_DIR
)/wlc
/wlc
$(1)/sbin
/
83 define Package
/wl
/install
84 install -d
-m0755
$(1)/usr
/sbin
85 install -m0755
$(PKG_BUILD_DIR
)/wl
$(1)/usr
/sbin
/
88 define Package
/nas
/install
89 install -d
-m0755
$(1)/usr
/sbin
90 install -m0755
$(PKG_BUILD_DIR
)/nas
$(1)/usr
/sbin
/
93 $(eval
$(call BuildPackage
,kmod-brcm-wl
))
94 $(eval
$(call BuildPackage
,wlc
))
95 $(eval
$(call BuildPackage
,wl
))
96 $(eval
$(call BuildPackage
,nas
))