1 include $(TOPDIR)/rules.mk
9 PKG_SOURCE_URL:=https://github.com/greearb/ath10k-ct.git
11 PKG_SOURCE_DATE:=2017-01-26
12 PKG_SOURCE_VERSION:=d2bc84ff277936c58231f0c2280242eda4199e63
13 PKG_MIRROR_HASH:=6b734b987db00b97b06faca686dcebc56fb23b93093afbb35d5cf534987269bf
15 PKG_MAINTAINER:=Ben Greear <greearb@candelatech.com>
18 STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
20 include $(INCLUDE_DIR)/kernel.mk
21 include $(INCLUDE_DIR)/package.mk
23 define KernelPackage/ath10k-ct
24 SUBMENU:=Wireless Drivers
25 TITLE:=ath10k-ct driver optimized for CT ath10k firmware
26 DEPENDS:=+kmod-mac80211 +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT @PCI_SUPPORT +@KERNEL_RELAY +kmod-hwmon-core
28 $(PKG_BUILD_DIR)/ath10k/ath10k_pci.ko \
29 $(PKG_BUILD_DIR)/ath10k/ath10k_core.ko
30 AUTOLOAD:=$(call AutoLoad,50,mac80211 ath ath10k_core ath10k_pci)
35 -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
36 -I$(STAGING_DIR)/usr/include/mac80211-backport \
37 -I$(STAGING_DIR)/usr/include/mac80211/uapi \
38 -I$(STAGING_DIR)/usr/include/mac80211 \
39 -include backport/autoconf.h \
40 -include backport/backport.h
42 ifdef CONFIG_PACKAGE_MAC80211_MESH
43 NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
46 CT_MAKEDEFS += CONFIG_ATH10K=m CONFIG_ATH10K_PCI=m
47 # No AHB support enabled yet. Could conditionally enable it later.
48 #CT_MAKEDEFS += CONFIG_ATH10K_AHB=y
49 #NOSTDINC_FLAGS += -DCONFIG_ATH10K_AHB
50 NOSTDINC_FLAGS += -DSTANDALONE_CT
52 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
53 CT_MAKEDEFS += CONFIG_ATH10K_DEBUGFS=y CONFIG_MAC80211_DEBUGFS=y
54 NOSTDINC_FLAGS += -DCONFIG_MAC80211_DEBUGFS
55 NOSTDINC_FLAGS += -DCONFIG_ATH10K_DEBUGFS
58 ifdef CONFIG_PACKAGE_ATH_DEBUG
59 NOSTDINC_FLAGS += -DCONFIG_ATH10K_DEBUG
62 ifdef CONFIG_PACKAGE_ATH_DFS
63 NOSTDINC_FLAGS += -DCONFIG_ATH10K_DFS_CERTIFIED
66 define Build/Configure
67 cp $(STAGING_DIR)/usr/include/mac80211/ath/*.h $(PKG_BUILD_DIR)
70 ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
75 +$(MAKE) $(CT_MAKEDEFS) $(PKG_JOBS) -C "$(LINUX_DIR)" \
76 ARCH="$(LINUX_KARCH)" \
77 CROSS_COMPILE="$(TARGET_CROSS)" \
78 SUBDIRS="$(PKG_BUILD_DIR)/ath10k" \
79 NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
83 $(eval $(call KernelPackage,ath10k-ct))