2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/kernel.mk
14 include $(INCLUDE_DIR
)/package.mk
16 define KernelPackage
/ath9k
17 SUBMENU
:=Wireless Drivers
18 TITLE
:=Atheros AR9xxx and AR5416
/AR5418 wireless support
19 DEPENDS
:=+kmod-mac80211 @PCI_SUPPORT @LINUX_2_6_23||@LINUX_2_6_24||@LINUX_2_6_25||@LINUX_2_6_26 @
!kmod-ath9k-new
20 FILES
:=$(PKG_BUILD_DIR
)/drivers
/net
/wireless
/ath9k
/ath9k.
$(LINUX_KMOD_SUFFIX
)
21 AUTOLOAD
:=$(call AutoLoad
,30,ath9k
)
24 define KernelPackage
/ath9k
/description
25 Kernel module for Atheros AR9xxx and AR5416
/AR5418 based cards
32 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(EXTRA_KCONFIG
)))) \
33 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(EXTRA_KCONFIG
)))) \
36 ARCH
="$(LINUX_KARCH)" \
37 CROSS_COMPILE
="$(TARGET_CROSS)" \
38 SUBDIRS
="$(PKG_BUILD_DIR)/drivers/net/wireless/ath9k" \
39 EXTRA_CFLAGS
="$(EXTRA_CFLAGS)" \
40 LINUXINCLUDE
="-I$(STAGING_DIR)/usr/include/mac80211 -I$(LINUX_DIR)/include -include linux/autoconf.h" \
44 mkdir
-p
$(PKG_BUILD_DIR
)
45 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
47 $(if
$(QUILT
),touch
$(PKG_BUILD_DIR
)/.quilt_used
)
50 define Build
/Configure
54 $(MAKE
) -C
"$(LINUX_DIR)" \
59 $(eval
$(call KernelPackage
,ath9k
))