GPIODEV: Fix open-count race condition.
[openwrt.git] / package / acx / Makefile
1 #
2 # Copyright (C) 2006 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_NAME:=tiacx111c16
21 PKG_FW_URL:=http://teknoraver.campuslife.it/software/acx-mac80211/
22 PKG_FW_MD5SUM:=7026826460376f6b174f9225bd7781b9
23
24 PKG_UNPACK:= \
25 bzcat $(DL_DIR)/$(PKG_SOURCE) | \
26 $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS); \
27 chmod -R u+w $(PKG_BUILD_DIR)
28
29 include $(INCLUDE_DIR)/package.mk
30
31 # XXX: remove @!TARGET_* later when we have PCI support properly detected on all targets
32 define KernelPackage/acx
33 TITLE:=Driver for TI ACX1xx chipset
34 DEPENDS:=@LINUX_2_6 +wireless-tools @!TARGET_atheros @!TARGET_avr32
35 URL:=http://acx100.sourceforge.net/
36 SUBMENU:=Wireless Drivers
37 FILES:= $(PKG_BUILD_DIR)/acx.$(LINUX_KMOD_SUFFIX)
38 AUTOLOAD:=$(call AutoLoad,50,acx)
39 endef
40
41 define KernelPackage/acx/description
42 This package contains a driver for TI ACX1xx 802.11a/b/g chipsets.
43 endef
44
45 $(STAMP_BUILT): $(DL_DIR)/$(PKG_FW_NAME)
46
47 $(DL_DIR)/$(PKG_FW_NAME):
48 $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_FW_NAME)" "$(PKG_FW_MD5SUM)" $(PKG_FW_URL)
49
50 define Build/Compile
51 $(MAKE) -C $(LINUX_DIR) \
52 SUBDIRS="$(PKG_BUILD_DIR)" \
53 ARCH="$(LINUX_KARCH)" \
54 CROSS_COMPILE="$(TARGET_CROSS)" \
55 CC="$(TARGET_CC)" \
56 CPP="$(TARGET_CC)" \
57 LD="$(TARGET_CROSS)ld" \
58 KERNELVERSION="$(KERNEL)" \
59 KERNEL_SOURCE="$(LINUX_DIR)" \
60 KDIR="$(LINUX_DIR)" \
61 CONFIG_ACX=m \
62 CONFIG_ACX_PCI=m \
63 modules
64 endef
65
66 define KernelPackage/acx/install
67 $(INSTALL_DIR) $(1)/lib/firmware
68 $(INSTALL_DATA) $(DL_DIR)/$(PKG_FW_NAME) $(1)/lib/firmware/
69 endef
70
71 $(eval $(call KernelPackage,acx))
This page took 0.042589 seconds and 5 git commands to generate.