qcacld-3.0: Align Kbuild with Linux guidelines
Fix the following issues in Kbuild:
- 'Managment' may be misspelled - perhaps 'Management'?
- 'Endianess' may be misspelled - perhaps 'Endianness'?
- Use of EXTRA_CFLAGS is deprecated, please use `ccflags-y instead.
Change-Id: Ie2d2940bbf5b143b2185bf88bc8fd33abb16817a
CRs-Fixed: 2220923
diff --git a/Kbuild b/Kbuild
index 5834eeb..49d81e7 100644
--- a/Kbuild
+++ b/Kbuild
@@ -124,7 +124,7 @@
CONFIG_WLAN_FEATURE_FILS := y
ifneq ($(CONFIG_QCA_CLD_WLAN),)
ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
- #Flag to enable Protected Managment Frames (11w) feature
+ #Flag to enable Protected Management Frames (11w) feature
CONFIG_WLAN_FEATURE_11W := y
#Flag to enable LTE CoEx feature
CONFIG_QCOM_LTE_COEX := y
@@ -135,7 +135,7 @@
endif
endif
- #Flag to enable Protected Managment Frames (11w) feature
+ #Flag to enable Protected Management Frames (11w) feature
ifeq ($(CONFIG_ROME_IF),usb)
CONFIG_WLAN_FEATURE_11W := y
endif
@@ -364,7 +364,7 @@
#Enable WDI Event support
CONFIG_WDI_EVENT_ENABLE := y
-#Endianess selection
+#Endianness selection
CONFIG_LITTLE_ENDIAN := y
#Enable TX reclaim support
@@ -1837,7 +1837,7 @@
OBJS += $(DP_OBJS)
endif
-EXTRA_CFLAGS += $(INCS)
+ccflags-y += $(INCS)
CDEFINES := -DANI_OS_TYPE_ANDROID=6 \
-DPTT_SOCK_SVC_ENABLE \
@@ -2236,7 +2236,7 @@
CDEFINES += -DWDI_EVENT_ENABLE
endif
-#Endianess selection
+#Endianness selection
ifeq ($(CONFIG_LITTLE_ENDIAN), y)
CDEFINES += -DANI_LITTLE_BYTE_ENDIAN
CDEFINES += -DANI_LITTLE_BIT_ENDIAN
@@ -2555,18 +2555,18 @@
# Currently, for versions of gcc which support it, the kernel Makefile
# is disabling the maybe-uninitialized warning. Re-enable it for the
-# WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
+# WLAN driver. Note that we must use ccflags-y here so that it
# will override the kernel settings.
ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
-EXTRA_CFLAGS += -Wmaybe-uninitialized
+ccflags-y += -Wmaybe-uninitialized
ifneq (y,$(CONFIG_ARCH_MSM))
-EXTRA_CFLAGS += -Wframe-larger-than=4096
+ccflags-y += -Wframe-larger-than=4096
endif
endif
-EXTRA_CFLAGS += -Wmissing-prototypes
+ccflags-y += -Wmissing-prototypes
ifeq ($(call cc-option-yn, -Wheader-guard), y)
-EXTRA_CFLAGS += -Wheader-guard
+ccflags-y += -Wheader-guard
endif
# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to