1 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE_URL
:=https
://github.com
/greearb
/ath10k-ct.git
11 PKG_SOURCE_DATE
:=2017-06-13
12 PKG_SOURCE_VERSION
:=bded1823912549017d819d1796273b3134c3de20
13 PKG_MIRROR_HASH
:=616174650e12a82edb6b6bd18ac186e2c6a48fdad0082df9d2011ab20940814b
15 PKG_MAINTAINER
:=Ben Greear
<greearb@candelatech.com
>
17 PKG_EXTMOD_SUBDIRS
:=ath10k
19 # Build the 4.13 ath10k-ct driver version. Other options are "-4.9", or
20 # leave un-defined for 4.7 kernel. Probably this should match as closely as
21 # possible to whatever mac80211 backports version is being used.
24 STAMP_CONFIGURED_DEPENDS
:= $(STAGING_DIR
)/usr
/include/mac80211-backport
/backport
/autoconf.h
26 include $(INCLUDE_DIR
)/kernel.mk
27 include $(INCLUDE_DIR
)/package.mk
29 define KernelPackage
/ath10k-ct
30 SUBMENU
:=Wireless Drivers
31 TITLE
:=ath10k-ct driver optimized for CT ath10k firmware
32 DEPENDS
:=+kmod-mac80211
+kmod-ath
+@DRIVER_11N_SUPPORT
+@DRIVER_11AC_SUPPORT @PCI_SUPPORT
+@KERNEL_RELAY
+kmod-hwmon-core
34 $(PKG_BUILD_DIR
)/ath10k
$(CT_KVER
)/ath10k_pci.ko \
35 $(PKG_BUILD_DIR
)/ath10k
$(CT_KVER
)/ath10k_core.ko
36 AUTOLOAD
:=$(call AutoLoad
,50,mac80211 ath ath10k_core ath10k_pci
)
41 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport
/uapi \
42 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport \
43 -I
$(STAGING_DIR
)/usr
/include/mac80211
/uapi \
44 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
45 -include backport
/autoconf.h \
46 -include backport
/backport.h
48 ifdef CONFIG_PACKAGE_MAC80211_MESH
49 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_MESH
52 CT_MAKEDEFS
+= CONFIG_ATH10K
=m CONFIG_ATH10K_PCI
=m
53 # No AHB support enabled yet. Could conditionally enable it later.
54 #CT_MAKEDEFS += CONFIG_ATH10K_AHB=y
55 #NOSTDINC_FLAGS += -DCONFIG_ATH10K_AHB
56 NOSTDINC_FLAGS
+= -DSTANDALONE_CT
58 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
59 CT_MAKEDEFS
+= CONFIG_ATH10K_DEBUGFS
=y CONFIG_MAC80211_DEBUGFS
=y
60 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_DEBUGFS
61 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUGFS
64 ifdef CONFIG_PACKAGE_ATH_DEBUG
65 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUG
68 ifdef CONFIG_PACKAGE_ATH_DFS
69 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DFS_CERTIFIED
72 define Build
/Configure
73 cp
$(STAGING_DIR
)/usr
/include/mac80211
/ath
/*.h
$(PKG_BUILD_DIR
)
76 ifneq ($(findstring c
,$(OPENWRT_VERBOSE
)),)
81 +$(MAKE
) $(CT_MAKEDEFS
) $(PKG_JOBS
) -C
"$(LINUX_DIR)" \
82 ARCH
="$(LINUX_KARCH)" \
83 CROSS_COMPILE
="$(TARGET_CROSS)" \
84 SUBDIRS
="$(PKG_BUILD_DIR)/ath10k$(CT_KVER)" \
85 NOSTDINC_FLAGS
="$(NOSTDINC_FLAGS)" \
89 $(eval
$(call KernelPackage
,ath10k-ct
))