From: Ben Greear <gree...@candelatech.com> This lets one use the ath10k-ct driver instead of the built-in ath10k driver from the upstream kernel (or backports).
Signed-off-by: Ben Greear <gree...@candelatech.com> --- This has been lightly tested with ath10k-ct firmware on 9880 hardware. *THIS PATCH BREAKS ath9k* because I am compiling ath10k against my own ath.ko, and so load my own ath.ko. I am not sure the best way to fix this: Compile my own ath* modules to replace upstream, or fix just my ath10k sub-dir to build on it's own and link against standard ath module.... package/firmware/ath10k-firmware/Makefile | 2 +- package/kernel/ath-ct/Makefile | 60 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 package/kernel/ath-ct/Makefile diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile index fcd6167..635aede 100644 --- a/package/firmware/ath10k-firmware/Makefile +++ b/package/firmware/ath10k-firmware/Makefile @@ -28,7 +28,7 @@ define Package/ath10k-firmware-default CATEGORY:=Kernel modules SUBMENU:=$(WMENU) URL:=$(PKG_SOURCE_URL) - DEPENDS:=kmod-ath10k + DEPENDS:= endef define Package/ath10k-firmware-qca988x diff --git a/package/kernel/ath-ct/Makefile b/package/kernel/ath-ct/Makefile new file mode 100644 index 0000000..ded41a7 --- /dev/null +++ b/package/kernel/ath-ct/Makefile @@ -0,0 +1,60 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=ath-ct +PKG_VERSION:=2016-06-21 +PKG_RELEASE=1 + +PKG_LICENSE:=GPLv2 +PKG_LICENSE_FILES:= + +PKG_SOURCE_URL:=https://github.com/greearb/ath-ct.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=7531f0b1798a4af500eb1860f7fd9dcaa727d3fb +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz + +PKG_MAINTAINER:=Ben Greear <gree...@candelatech.com> +PKG_BUILD_PARALLEL:=1 + +STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h + +include $(INCLUDE_DIR)/kernel.mk +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/ath-ct + SUBMENU:=Wireless Drivers + TITLE:=ath10k-ct driver optimized for CT ath10k firmware + DEPENDS:=+kmod-mac80211 +kmod-ath +@DRIVER_11N_SUPPORT @PCI_SUPPORT + FILES:=\ + $(PKG_BUILD_DIR)/ath.ko \ + $(PKG_BUILD_DIR)/ath10k/ath10k_pci.ko \ + $(PKG_BUILD_DIR)/ath10k/ath10k_core.ko + AUTOLOAD:=$(call AutoLoad,50,mac80211 ath ath10k_core ath10k_pci) +endef + +NOSTDINC_FLAGS = \ + -I$(PKG_BUILD_DIR) \ + -I$(PKG_BUILD_DIR)/ath10k \ + -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \ + -I$(STAGING_DIR)/usr/include/mac80211-backport \ + -I$(STAGING_DIR)/usr/include/mac80211/uapi \ + -I$(STAGING_DIR)/usr/include/mac80211 \ + -include backport/autoconf.h \ + -include backport/backport.h + +ifdef CONFIG_PACKAGE_MAC80211_MESH + NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH +endif + +define Build/Compile + +CONFIG_ATH_COMMON=m CONFIG_ATH_DEBUG=m \ + CONFIG_ATH10K=m CONFIG_ATH10K_DEBUGFS=m CONFIG_MAC80211_DEBUGFS=m CONFIG_ATH10K_PCI=m \ + $(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \ + ARCH="$(LINUX_KARCH)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + SUBDIRS="$(PKG_BUILD_DIR)" \ + NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \ + modules +endef + +$(eval $(call KernelPackage,ath-ct)) -- 2.4.3 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev