2022-08-20 10:30:50 +00:00
|
|
|
From 0c509f8d8e5a6a03933a112d4487fd1c005442d6 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
|
|
Date: Fri, 24 Dec 2021 19:39:02 +0100
|
|
|
|
Subject: [PATCH 05/11] SSDK: config: add kernel 5.15
|
|
|
|
|
|
|
|
This is purely to identify it and be able to set
|
|
|
|
flags correctly.
|
|
|
|
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
|
|
---
|
|
|
|
config | 6 +++++-
|
|
|
|
make/linux_opt.mk | 4 ++--
|
|
|
|
2 files changed, 7 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
--- a/config
|
|
|
|
+++ b/config
|
2023-05-04 19:38:25 +00:00
|
|
|
@@ -24,6 +24,10 @@ ifeq ($(KVER),$(filter 5.4%,$(KVER)))
|
|
|
|
OS_VER=5_4
|
2022-08-20 10:30:50 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
+ifeq ($(KVER),$(filter 5.15%,$(KVER)))
|
|
|
|
+OS_VER=5_15
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
ifeq ($(KVER), 3.4.0)
|
|
|
|
OS_VER=3_4
|
|
|
|
endif
|
2023-05-04 19:38:25 +00:00
|
|
|
@@ -132,7 +136,7 @@ ifeq ($(ARCH), arm)
|
2022-08-20 10:30:50 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH), arm64)
|
2023-05-04 19:38:25 +00:00
|
|
|
- ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4%,$(KVER)))
|
|
|
|
+ ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4% 5.15%,$(KVER)))
|
2022-08-20 10:30:50 +00:00
|
|
|
CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -Werror -fno-common -Wno-format-security -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-error=unused-result -mcmodel=large
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
--- a/make/linux_opt.mk
|
|
|
|
+++ b/make/linux_opt.mk
|
|
|
|
@@ -437,7 +437,7 @@ ifeq (KSLIB, $(MODULE_TYPE))
|
|
|
|
KASAN_SHADOW_SCALE_SHIFT := 3
|
|
|
|
endif
|
|
|
|
|
2023-05-04 19:38:25 +00:00
|
|
|
- ifeq (5_4, $(OS_VER))
|
|
|
|
+ ifeq (5_4 5_15, $(OS_VER))
|
2022-08-20 10:30:50 +00:00
|
|
|
ifeq ($(ARCH), arm64)
|
|
|
|
KASAN_OPTION += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
|
|
|
|
endif
|
|
|
|
@@ -468,7 +468,7 @@ ifeq (KSLIB, $(MODULE_TYPE))
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2023-05-04 19:38:25 +00:00
|
|
|
- ifeq ($(OS_VER),$(filter 4_4 5_4, $(OS_VER)))
|
|
|
|
+ ifeq ($(OS_VER),$(filter 4_4 5_4 5_15, $(OS_VER)))
|
2022-08-20 10:30:50 +00:00
|
|
|
MODULE_CFLAG += -DKVER34
|
|
|
|
MODULE_CFLAG += -DKVER32
|
|
|
|
MODULE_CFLAG += -DLNX26_22
|