diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-20 11:44:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-20 11:44:14 +0000 |
commit | 58da1d033b406f944a6174f99ee8243381a34bf5 (patch) | |
tree | 2c25348dc60e9617de004d32d58f386a89a737f9 /package/ath9k/Makefile | |
parent | 101c4aa3092cdd9aefb441562f1c5bdf83312fb3 (diff) | |
download | upstream-58da1d033b406f944a6174f99ee8243381a34bf5.tar.gz upstream-58da1d033b406f944a6174f99ee8243381a34bf5.tar.bz2 upstream-58da1d033b406f944a6174f99ee8243381a34bf5.zip |
add the new ath9k driver (loads successfully on an AR9160 card, but still seems to have some rf issues)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11884 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ath9k/Makefile')
-rw-r--r-- | package/ath9k/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/package/ath9k/Makefile b/package/ath9k/Makefile new file mode 100644 index 0000000000..70aa4b7e36 --- /dev/null +++ b/package/ath9k/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=ath9k +PKG_VERSION:=20080720 +PKG_RELEASE:=1 + +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/ath9k + SUBMENU:=Wireless Drivers + TITLE:=Broadcom 43xx wireless support + DEPENDS:=+kmod-mac80211 @!TARGET_brcm47xx + FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath9k/ath9k.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,30,ath9k) +endef + +define KernelPackage/ath9k/description +Kernel module for Atheros AR9xxx and AR5416/AR5418 based cards +endef + +EXTRA_KCONFIG:= \ + CONFIG_ATH9K=m + +EXTRA_CFLAGS:= \ + $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \ + $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \ + +MAKE_OPTS:= \ + ARCH="$(LINUX_KARCH)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + SUBDIRS="$(PKG_BUILD_DIR)/drivers/net/wireless/ath9k" \ + EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ + LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/mac80211 -I$(LINUX_DIR)/include -include linux/autoconf.h" \ + $(EXTRA_KCONFIG) + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR)/ + $(Build/Patch) + $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used) +endef + +define Build/Configure +endef + +define Build/Compile + $(MAKE) -C "$(LINUX_DIR)" \ + $(MAKE_OPTS) \ + modules +endef + +$(eval $(call KernelPackage,ath9k)) |