From b72ab79e064c5b1c30231931c48b0147d8440ee2 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Thu, 17 Apr 2025 19:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96Makefile=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E7=89=88=E6=9C=AC=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/Makefile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 3dc88482..94f3bc64 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -62,25 +62,7 @@ $(info -- SukiSU Manager signature size: $(KSU_EXPECTED_SIZE)) $(info -- SukiSU Manager signature hash: $(KSU_EXPECTED_HASH)) $(info -- Supported Unofficial Manager: 5ec1cff (GKI) rsuntk (Non-GKI) ShirkNeko udochina (GKI and non-GKI and KPM)) KERNEL_VERSION := $(VERSION).$(PATCHLEVEL) -KERNEL_MAJOR_VERSION := $(word 1, $(subst ., , $(KERNEL_VERSION))) -KERNEL_MINOR_VERSION := $(word 2, $(subst ., , $(KERNEL_VERSION))) -ifeq ($(KERNEL_MAJOR_VERSION),5) - ifeq ($(KERNEL_MINOR_VERSION),4) - KSU_KERNEL_TYPE := GKI 1.0 - else ifeq ($(findstring $(KERNEL_MINOR_VERSION),$(filter $(KERNEL_MINOR_VERSION),10 11 12 13 14 15 16 17 18 19 20)),1) - KSU_KERNEL_TYPE := GKI 2.0 - else - KSU_KERNEL_TYPE := Non-GKI - endif -else ifeq ($(KERNEL_MAJOR_VERSION),4) - KSU_KERNEL_TYPE := Non-GKI -else ifeq ($(KERNEL_MAJOR_VERSION),6) - KSU_KERNEL_TYPE := GKI 2.0 -else - KSU_KERNEL_TYPE := Non-GKI -endif $(info -- KERNEL_VERSION: $(KERNEL_VERSION)) -$(info -- KERNEL_TYPE: $(KSU_KERNEL_TYPE)) # Check if KPM is enabled ifeq ($(CONFIG_KPM),y)