[package] mac80211: move txpower to wifi-device section, but remain backwards compatible
[openwrt.git] / package / acx-mac80211 / Makefile
1 #
2 # Copyright (C) 2007-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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=acx-mac80211
13 PKG_REV:=11edba2
14 PKG_VERSION:=20080805
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=git://gitorious.org/acx-mac80211/mainline.git
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE_VERSION:=$(PKG_REV)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define KernelPackage/acx-mac80211
26 SUBMENU:=Wireless Drivers
27 TITLE:=ACX111 Mac80211 driver
28 DEPENDS:=@LINUX_2_6 @PCI_SUPPORT||TARGET_ar7 +kmod-mac80211 @BROKEN
29 FILES:=$(PKG_BUILD_DIR)/acx-mac80211.$(LINUX_KMOD_SUFFIX)
30 AUTOLOAD:=$(call AutoLoad,50,acx-mac80211)
31 endef
32
33 define KernelPackage/acx-mac80211/description
34 Driver for acx111 cards (Mac80211 version)
35 endef
36
37
38 C16_FW:=tiacx111c16
39 C19_FW:=tiacx111c19
40
41 define Download/tiacx111c16
42 FILE:=$(C16_FW)
43 URL:=http://teknoraver.net/software/acx-mac80211/
44 MD5SUM:=7026826460376f6b174f9225bd7781b9
45 endef
46 $(eval $(call Download,tiacx111c16))
47
48 define Download/tiacx111c19
49 FILE:=$(C19_FW)
50 URL:=http://ipkg.k1k2.de/files/
51 MD5SUM:=a1fa9681e297b4e36e257090fc12265a
52 endef
53 $(eval $(call Download,tiacx111c19))
54
55
56 PKG_EXTRA_KCONFIG:= \
57 CONFIG_ACX_MAC80211=m \
58 CONFIG_ACX_MAC80211_PCI=m \
59
60 PKG_EXTRA_CFLAGS:= \
61 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(PKG_EXTRA_KCONFIG)))) \
62 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
63
64 define Build/Compile
65 $(MAKE) -C "$(LINUX_DIR)" \
66 ARCH="$(LINUX_KARCH)" \
67 CROSS_COMPILE="$(TARGET_CROSS)" \
68 SUBDIRS="$(PKG_BUILD_DIR)" \
69 $(PKG_EXTRA_KCONFIG) \
70 EXTRA_CFLAGS="$(PKG_EXTRA_CFLAGS)" \
71 LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/mac80211 -I$(LINUX_DIR)/include \
72 -include linux/autoconf.h" \
73 V="$(V)" \
74 modules
75 endef
76
77 define Build/Configure
78 endef
79
80 define KernelPackage/acx-mac80211/install
81 $(INSTALL_DIR) $(1)/lib/firmware
82 $(INSTALL_DATA) $(DL_DIR)/$(C16_FW) $(1)/lib/firmware/
83 $(INSTALL_DATA) $(DL_DIR)/$(C19_FW) $(1)/lib/firmware/
84 endef
85
86 $(eval $(call KernelPackage,acx-mac80211))
This page took 0.040213 seconds and 5 git commands to generate.