1 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE_URL
:=https
://github.com
/greearb
/ath10k-ct.git
11 PKG_SOURCE_DATE
:=2018-08-22
12 PKG_SOURCE_VERSION
:=34954f0f333fa43827b2af67313db2b1e830bb48
13 PKG_MIRROR_HASH
:=aa77f388727ff2201de615c3211ab5c0b2dc5e3c041bd1cde4d6eebde0ca437a
15 # Build the 4.13 ath10k-ct driver version. Other options are "-4.9", or
16 # leave un-defined for 4.7 kernel. Probably this should match as closely as
17 # possible to whatever mac80211 backports version is being used.
20 PKG_MAINTAINER
:=Ben Greear
<greearb@candelatech.com
>
22 PKG_EXTMOD_SUBDIRS
:=ath10k
$(CT_KVER
)
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
+@DRIVER_11W_SUPPORT @PCI_SUPPORT
+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 AutoProbe
,ath10k_pci
)
42 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport
/uapi \
43 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport \
44 -I
$(STAGING_DIR
)/usr
/include/mac80211
/uapi \
45 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
46 -include backport
/autoconf.h \
47 -include backport
/backport.h
49 ifdef CONFIG_PACKAGE_MAC80211_MESH
50 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_MESH
53 CT_MAKEDEFS
+= CONFIG_ATH10K
=m CONFIG_ATH10K_PCI
=m
55 # This AHB logic is needed for IPQ4019 radios
56 CT_MAKEDEFS
+= CONFIG_ATH10K_AHB
=m
57 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_AHB
59 NOSTDINC_FLAGS
+= -DSTANDALONE_CT
61 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
62 CT_MAKEDEFS
+= CONFIG_ATH10K_DEBUGFS
=y CONFIG_MAC80211_DEBUGFS
=y
63 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_DEBUGFS
64 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUGFS
67 ifdef CONFIG_PACKAGE_ATH_DEBUG
68 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUG
71 ifdef CONFIG_PACKAGE_ATH_DFS
72 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DFS_CERTIFIED
75 ifdef CONFIG_PACKAGE_ATH_SPECTRAL
76 CT_MAKEDEFS
+= CONFIG_ATH10K_SPECTRAL
=y
77 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_SPECTRAL
80 define Build
/Configure
81 cp
$(STAGING_DIR
)/usr
/include/mac80211
/ath
/*.h
$(PKG_BUILD_DIR
)
84 ifneq ($(findstring c
,$(OPENWRT_VERBOSE
)),)
89 +$(MAKE
) $(CT_MAKEDEFS
) $(PKG_JOBS
) -C
"$(LINUX_DIR)" \
90 $(KERNEL_MAKE_FLAGS
) \
91 SUBDIRS
="$(PKG_BUILD_DIR)/ath10k$(CT_KVER)" \
92 NOSTDINC_FLAGS
="$(NOSTDINC_FLAGS)" \
96 $(eval
$(call KernelPackage
,ath10k-ct
))