tweak Makefile
[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:=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&&!LINUX_2_6_AVR32 +wireless-tools
30 DESCRIPTION:=\
31 This package contains a driver for TI ACX1xx 802.11a/b/g chipsets.
32 URL:=http://acx100.sourceforge.net/
33 SUBMENU:=Wireless Drivers
34 FILES:= \
35 $(PKG_BUILD_DIR)/acx.$(LINUX_KMOD_SUFFIX)
36 AUTOLOAD:=$(call AutoLoad,50,acx)
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(LINUX_DIR) \
41 SUBDIRS="$(PKG_BUILD_DIR)" \
42 ARCH="$(LINUX_KARCH)" \
43 CROSS_COMPILE="$(TARGET_CROSS)" \
44 CC="$(TARGET_CC)" \
45 CPP="$(TARGET_CC)" \
46 LD="$(TARGET_CROSS)ld" \
47 KERNELVERSION="$(KERNEL)" \
48 KERNEL_SOURCE="$(LINUX_DIR)" \
49 KDIR="$(LINUX_DIR)" \
50 CONFIG_ACX=m \
51 CONFIG_ACX_PCI=m \
52 modules
53 endef
54
55 $(eval $(call KernelPackage,acx))
This page took 0.047316 seconds and 5 git commands to generate.