1 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE_URL
:=https
://github.com
/greearb
/ath10k-ct.git
11 PKG_SOURCE_DATE
:=2019-06-13
12 PKG_SOURCE_VERSION
:=f0aa81302b2286715fa2fa5a2f4ebe2faf17694c
13 PKG_MIRROR_HASH
:=a6d418dfec02842529a53b3c48236e7a375a654a03e199fbc5178bdb269b7d64
15 # Build the 4.19 ath10k-ct driver version. Other options are "-4.16", 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
)
40 define KernelPackage
/ath10k-ct
/config
43 bool
"Enable LED support"
45 depends on PACKAGE_kmod-ath10k-ct
50 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport
/uapi \
51 -I
$(STAGING_DIR
)/usr
/include/mac80211-backport \
52 -I
$(STAGING_DIR
)/usr
/include/mac80211
/uapi \
53 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
54 -include backport
/autoconf.h \
55 -include backport
/backport.h
57 ifdef CONFIG_PACKAGE_MAC80211_MESH
58 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_MESH
61 CT_MAKEDEFS
+= CONFIG_ATH10K
=m CONFIG_ATH10K_PCI
=m CONFIG_ATH10K_CE
=y
63 # This AHB logic is needed for IPQ4019 radios
64 CT_MAKEDEFS
+= CONFIG_ATH10K_AHB
=m
65 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_AHB
67 NOSTDINC_FLAGS
+= -DSTANDALONE_CT
69 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
70 CT_MAKEDEFS
+= CONFIG_ATH10K_DEBUGFS
=y CONFIG_MAC80211_DEBUGFS
=y
71 NOSTDINC_FLAGS
+= -DCONFIG_MAC80211_DEBUGFS
72 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUGFS
75 ifdef CONFIG_PACKAGE_ATH_DEBUG
76 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DEBUG
79 ifdef CONFIG_PACKAGE_ATH_DFS
80 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_DFS_CERTIFIED
83 ifdef CONFIG_PACKAGE_ATH_SPECTRAL
84 CT_MAKEDEFS
+= CONFIG_ATH10K_SPECTRAL
=y
85 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_SPECTRAL
88 ifeq ($(CONFIG_ATH10K-CT_LEDS
),y
)
89 CT_MAKEDEFS
+= CONFIG_ATH10K_LEDS
=y
90 NOSTDINC_FLAGS
+= -DCONFIG_ATH10K_LEDS
93 define Build
/Configure
94 cp
$(STAGING_DIR
)/usr
/include/mac80211
/ath
/*.h
$(PKG_BUILD_DIR
)
97 ifneq ($(findstring c
,$(OPENWRT_VERBOSE
)),)
102 +$(MAKE
) $(CT_MAKEDEFS
) $(PKG_JOBS
) -C
"$(LINUX_DIR)" \
103 $(KERNEL_MAKE_FLAGS
) \
104 SUBDIRS
="$(PKG_BUILD_DIR)/ath10k$(CT_KVER)" \
105 NOSTDINC_FLAGS
="$(NOSTDINC_FLAGS)" \
109 $(eval
$(call KernelPackage
,ath10k-ct
))