[kernel] fix kexec for mips, patch from Adrian Byszuk (#7115)
[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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=acx
12 PKG_VERSION:=20080210
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/acx100
17 PKG_MD5SUM:=7d5ce3215708e4e9f95cf567a9ee3a12
18
19 PKG_UNPACK:= \
20 bzcat $(DL_DIR)/$(PKG_SOURCE) | \
21 $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS); \
22 chmod -R u+w $(PKG_BUILD_DIR)
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define KernelPackage/acx
27 TITLE:=Driver for TI ACX1xx chipset
28 DEPENDS:=@LINUX_2_6 @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)
33 endef
34
35 define KernelPackage/acx/description
36 This package contains a driver for TI ACX1xx 802.11a/b/g chipsets.
37 endef
38
39 C16_FW:=tiacx111c16
40 C19_FW:=tiacx111c19
41
42 define Download/tiacx111c16
43 FILE:=$(C16_FW)
44 URL:=http://teknoraver.net/software/acx-mac80211/
45 MD5SUM:=7026826460376f6b174f9225bd7781b9
46 endef
47 $(eval $(call Download,tiacx111c16))
48
49 define Download/tiacx111c19
50 FILE:=$(C19_FW)
51 URL:=http://ipkg.k1k2.de/files/
52 MD5SUM:=a1fa9681e297b4e36e257090fc12265a
53 endef
54 $(eval $(call Download,tiacx111c19))
55
56
57 define 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
71 endef
72
73 define 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/
79 endef
80
81 $(eval $(call KernelPackage,acx))
This page took 0.051352 seconds and 5 git commands to generate.