madwifi: napi polling fix
[openwrt.git] / package / acx / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=acx
13 PKG_VERSION:=20080210
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=@SF/acx100
18 PKG_MD5SUM:=7d5ce3215708e4e9f95cf567a9ee3a12
19
20 PKG_FW_C16_NAME:=tiacx111c16
21 PKG_FW_C16_URL:=http://teknoraver.net/software/acx-mac80211/
22 PKG_FW_C16_MD5SUM:=7026826460376f6b174f9225bd7781b9
23
24 PKG_FW_C19_NAME:=tiacx111c19
25 PKG_FW_C19_URL:=http://ipkg.k1k2.de/files/
26 PKG_FW_C19_MD5SUM:=a1fa9681e297b4e36e257090fc12265a
27
28 PKG_UNPACK:= \
29 bzcat $(DL_DIR)/$(PKG_SOURCE) | \
30 $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS); \
31 chmod -R u+w $(PKG_BUILD_DIR)
32
33 include $(INCLUDE_DIR)/package.mk
34
35 define KernelPackage/acx
36 TITLE:=Driver for TI ACX1xx chipset
37 DEPENDS:=@LINUX_2_6 @CONFIG_PCI||TARGET_ar7 +wireless-tools
38 URL:=http://acx100.sourceforge.net/
39 SUBMENU:=Wireless Drivers
40 FILES:= $(PKG_BUILD_DIR)/acx.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,50,acx)
42 endef
43
44 define KernelPackage/acx/description
45 This package contains a driver for TI ACX1xx 802.11a/b/g chipsets.
46 endef
47
48 $(STAMP_BUILT): $(DL_DIR)/$(PKG_FW_C16_NAME) $(DL_DIR)/$(PKG_FW_C19_NAME)
49
50 $(DL_DIR)/$(PKG_FW_C16_NAME):
51 $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_FW_C16_NAME)" "$(PKG_FW_C16_MD5SUM)" $(PKG_FW_C16_URL)
52
53 $(DL_DIR)/$(PKG_FW_C19_NAME):
54 $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_FW_C19_NAME)" "$(PKG_FW_C19_MD5SUM)" $(PKG_FW_C19_URL)
55
56 define Build/Compile
57 $(MAKE) -C $(LINUX_DIR) \
58 SUBDIRS="$(PKG_BUILD_DIR)" \
59 ARCH="$(LINUX_KARCH)" \
60 CROSS_COMPILE="$(TARGET_CROSS)" \
61 CC="$(TARGET_CC)" \
62 CPP="$(TARGET_CC)" \
63 LD="$(TARGET_CROSS)ld" \
64 KERNELVERSION="$(KERNEL)" \
65 KERNEL_SOURCE="$(LINUX_DIR)" \
66 KDIR="$(LINUX_DIR)" \
67 CONFIG_ACX=m \
68 CONFIG_ACX_PCI=m \
69 modules
70 endef
71
72 define KernelPackage/acx/install
73 $(INSTALL_DIR) $(1)/lib/firmware
74 $(INSTALL_DATA) $(DL_DIR)/$(PKG_FW_C16_NAME) $(1)/lib/firmware/
75 $(INSTALL_DATA) $(DL_DIR)/$(PKG_FW_C19_NAME) $(1)/lib/firmware/
76 endef
77
78 $(eval $(call KernelPackage,acx))
This page took 0.053554 seconds and 5 git commands to generate.