Root/package/acx/Makefile

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

Archive Download this file



interactive