use the Download/ macro to get ACX firmwares
[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_UNPACK:= \
21 bzcat $(DL_DIR)/$(PKG_SOURCE) | \
22 $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS); \
23 chmod -R u+w $(PKG_BUILD_DIR)
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define KernelPackage/acx
28 TITLE:=Driver for TI ACX1xx chipset
29 DEPENDS:=@LINUX_2_6 @CONFIG_PCI||TARGET_ar7 +wireless-tools
30 URL:=http://acx100.sourceforge.net/
31 SUBMENU:=Wireless Drivers
32 FILES:= $(PKG_BUILD_DIR)/acx.$(LINUX_KMOD_SUFFIX)
33 AUTOLOAD:=$(call AutoLoad,50,acx)
34 endef
35
36 define KernelPackage/acx/description
37 This package contains a driver for TI ACX1xx 802.11a/b/g chipsets.
38 endef
39
40 C16_FW:=tiacx111c16
41 C19_FW:=tiacx111c19
42
43 define Download/tiacx111c16
44 FILE:=$(C16_FW)
45 URL:=http://teknoraver.net/software/acx-mac80211/
46 MD5SUM:=7026826460376f6b174f9225bd7781b9
47 endef
48 $(eval $(call Download,tiacx111c16))
49
50 define Download/tiacx111c19
51 FILE:=$(C19_FW)
52 URL:=http://ipkg.k1k2.de/files/
53 MD5SUM:=a1fa9681e297b4e36e257090fc12265a
54 endef
55 $(eval $(call Download,tiacx111c19))
56
57
58 define Build/Compile
59 $(MAKE) -C $(LINUX_DIR) \
60 SUBDIRS="$(PKG_BUILD_DIR)" \
61 ARCH="$(LINUX_KARCH)" \
62 CROSS_COMPILE="$(TARGET_CROSS)" \
63 CC="$(TARGET_CC)" \
64 CPP="$(TARGET_CC)" \
65 LD="$(TARGET_CROSS)ld" \
66 KERNELVERSION="$(KERNEL)" \
67 KERNEL_SOURCE="$(LINUX_DIR)" \
68 KDIR="$(LINUX_DIR)" \
69 CONFIG_ACX=m \
70 CONFIG_ACX_PCI=m \
71 modules
72 endef
73
74 define KernelPackage/acx/install
75 $(INSTALL_DIR) $(1)/lib/firmware
76 $(INSTALL_DATA) $(DL_DIR)/$(C16_FW) $(1)/lib/firmware/
77 $(INSTALL_DATA) $(DL_DIR)/$(C19_FW) $(1)/lib/firmware/
78 endef
79
80 $(eval $(call KernelPackage,acx))
This page took 0.038295 seconds and 5 git commands to generate.