mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
feab4a804e
There is no need for SSDK to support 5.15 anymore since the only user and possible future ones are on 6.1. Signed-off-by: Robert Marko <robimarko@gmail.com>
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
From 05aba6d6dfd49fe10b33cf221b7e81250a67033c Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 29 Sep 2022 09:59:20 +0200
|
|
Subject: [PATCH] SSDK: config: add kernel 6.1
|
|
|
|
Allow kernel 6.1 to be recognized and compiled under it.
|
|
|
|
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
|
|
@@ -24,6 +24,10 @@ ifeq ($(KVER),$(filter 5.4%,$(KVER)))
|
|
OS_VER=5_4
|
|
endif
|
|
|
|
+ifeq ($(KVER),$(filter 6.1%,$(KVER)))
|
|
+ OS_VER=6_1
|
|
+endif
|
|
+
|
|
ifeq ($(KVER), 3.4.0)
|
|
OS_VER=3_4
|
|
endif
|
|
@@ -132,7 +136,7 @@ ifeq ($(ARCH), arm)
|
|
endif
|
|
|
|
ifeq ($(ARCH), arm64)
|
|
- ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4%,$(KVER)))
|
|
+ ifeq ($(KVER),$(filter 4.1% 4.4% 4.9% 5.4% 6.1%,$(KVER)))
|
|
CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-strict-aliasing -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
|
|
|
|
- ifeq (5_4, $(OS_VER))
|
|
+ ifeq (5_4 6_1, $(OS_VER))
|
|
ifeq ($(ARCH), arm64)
|
|
KASAN_OPTION += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
|
|
endif
|
|
@@ -468,7 +468,7 @@ ifeq (KSLIB, $(MODULE_TYPE))
|
|
|
|
endif
|
|
|
|
- ifeq ($(OS_VER),$(filter 4_4 5_4, $(OS_VER)))
|
|
+ ifeq ($(OS_VER),$(filter 4_4 5_4 6_1, $(OS_VER)))
|
|
MODULE_CFLAG += -DKVER34
|
|
MODULE_CFLAG += -DKVER32
|
|
MODULE_CFLAG += -DLNX26_22
|