2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=acx-mac80211
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 PKG_SOURCE_URL
:=git
://gitorious.org
/acx-mac80211
/mainline.git
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 include $(INCLUDE_DIR
)/package.mk
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
)
33 define KernelPackage
/acx-mac80211
/description
34 Driver for acx111 cards
(Mac80211 version
)
41 define Download
/tiacx111c16
43 URL
:=http
://teknoraver.net
/software
/acx-mac80211
/
44 MD5SUM
:=7026826460376f6b174f9225bd7781b9
46 $(eval
$(call Download
,tiacx111c16
))
48 define Download
/tiacx111c19
50 URL
:=http
://ipkg.k1k2.de
/files
/
51 MD5SUM
:=a1fa9681e297b4e36e257090fc12265a
53 $(eval
$(call Download
,tiacx111c19
))
57 CONFIG_ACX_MAC80211
=m \
58 CONFIG_ACX_MAC80211_PCI
=m \
61 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(PKG_EXTRA_KCONFIG
)))) \
62 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(PKG_EXTRA_KCONFIG
)))) \
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" \
77 define Build
/Configure
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
/
86 $(eval
$(call KernelPackage
,acx-mac80211
))