add modules.d file for wl
[openwrt.git] / package / broadcom-wl / Makefile
1 # $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
2
3 include $(TOPDIR)/rules.mk
4 include $(TOPDIR)/package/kernel.mk
5
6 PKG_NAME:=broadcom-wl
7 PKG_VERSION:=4.80.9.2
8 PKG_RELEASE:=1
9 WLC_VERSION:=0.1
10
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
15 PKG_CAT:=bzcat
16
17 include $(TOPDIR)/package/rules.mk
18
19 define Package/kmod-brcm-wl
20 SECTION:=drivers
21 CATEGORY:=Drivers
22 DEPENDS:=@LINUX_2_4_BRCM
23 DEFAULT:=y
24 MENU:=1
25 TITLE:=Proprietary BCM43xx WiFi driver
26 DESCRIPTION:=Proprietary Wireless driver for the Broadcom BCM43xx chipset
27 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE)
28 endef
29
30 define Package/wlc
31 $(call Package/kmod-brcm-wl)
32 DEPENDS:=kmod-brcm-wl
33 TITLE:=Setup utility
34 DESCRIPTION:=Utility for initializing the Broadcom wl driver
35 VERSION:=$(WLC_VERSION)-$(PKG_RELEASE)
36 endef
37
38 define Package/wl
39 $(call Package/wlc)
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)
43 endef
44
45 define Package/nas
46 $(call Package/wl)
47 TITLE:=Proprietary WPA/WPA2 authenticator
48 DESCRIPTION:=Proprietary WPA/WPA2 authenticator for the Broadcom wl driver
49 endef
50
51 define Build/Prepare
52 $(call Build/Prepare/Default)
53 $(CP) src/* $(PKG_BUILD_DIR)/
54 endef
55
56 define Build/Compile
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" \
63 modules
64
65 # Compile wlc
66 $(MAKE) -C $(PKG_BUILD_DIR)/wlc \
67 $(TARGET_CONFIGURE_OPTS) \
68 CC="$(TARGET_CC)" \
69 CFLAGS="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
70 all
71 endef
72
73 define Package/kmod-brcm-wl/install
74 install -d -m0755 $(1)/etc/modules.d
75 echo "wl" > $(1)/etc/modules.d/20-wl
76 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
77 install -m0644 $(PKG_BUILD_DIR)/kmod/wl.o $(1)/lib/modules/$(LINUX_VERSION)/
78 endef
79
80 define Package/wlc/install
81 install -d -m0755 $(1)/sbin
82 install -m0755 $(PKG_BUILD_DIR)/wlc/wlc $(1)/sbin/
83 endef
84
85 define Package/wl/install
86 install -d -m0755 $(1)/usr/sbin
87 install -m0755 $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
88 endef
89
90 define Package/nas/install
91 install -d -m0755 $(1)/usr/sbin
92 install -m0755 $(PKG_BUILD_DIR)/nas $(1)/usr/sbin/
93 endef
94
95 $(eval $(call BuildPackage,kmod-brcm-wl))
96 $(eval $(call BuildPackage,wlc))
97 $(eval $(call BuildPackage,wl))
98 $(eval $(call BuildPackage,nas))
This page took 0.05224 seconds and 5 git commands to generate.