[qca-ssdk]: support kernel 4.9
Change-Id: Ia3ff205e74dfc715b39d546f493129ffb4ddab82
Signed-off-by: Luo Jie <luoj@codeaurora.org>
diff --git a/config b/config
index eae540a..154686d 100755
--- a/config
+++ b/config
@@ -14,6 +14,10 @@
OS_VER=4_1
endif
+ifeq ($(KVER),$(filter 4.9%,$(KVER)))
+OS_VER=4_9
+endif
+
ifeq ($(KVER), 3.4.0)
OS_VER=3_4
endif
@@ -118,7 +122,7 @@
ifeq ($(KVER),$(filter 4.4%,$(KVER)))
CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fhonour-copts -fno-common -Wno-error=unused-but-set-variable -Wno-error=unused-result -mcmodel=large
endif
-ifeq ($(KVER),$(filter 4.1%,$(KVER)))
+ifeq ($(KVER),$(filter 4.1% 4.9%, $(KVER)))
CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-common -Wno-error=unused-but-set-variable -Wno-error=unused-result -mcmodel=large
endif
endif