77ec91b121d640dbdc126498a4b58be43b9680f9
[openwrt/svn-archive/archive.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:=20070101
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=@openwrt/
18 PKG_MD5SUM:=ec6322b9c82781897a9433ef0cefda6f
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 @!TARGET_avr32 +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 define Build/Compile
41 $(MAKE) -C $(LINUX_DIR) \
42 SUBDIRS="$(PKG_BUILD_DIR)" \
43 ARCH="$(LINUX_KARCH)" \
44 CROSS_COMPILE="$(TARGET_CROSS)" \
45 CC="$(TARGET_CC)" \
46 CPP="$(TARGET_CC)" \
47 LD="$(TARGET_CROSS)ld" \
48 KERNELVERSION="$(KERNEL)" \
49 KERNEL_SOURCE="$(LINUX_DIR)" \
50 KDIR="$(LINUX_DIR)" \
51 CONFIG_ACX=m \
52 CONFIG_ACX_PCI=m \
53 modules
54 endef
55
56 $(eval $(call KernelPackage,acx))