From 6c2e67cd506b492a6ff57df075bf090e8aa886dc Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Thu, 17 Apr 2025 20:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Makefile=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=86=85=E6=A0=B8=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=B9=B6=E8=BE=93=E5=87=BA=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/Makefile b/kernel/Makefile index 94c15b83..58f33a9e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -52,7 +52,15 @@ $(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) +ifeq ($(shell test $(VERSION) -ge 5 -a $(PATCHLEVEL) -ge 10; echo $$?),0) +KERNEL_TYPE := GKI 2.0 +else ifeq ($(shell test $(VERSION) -eq 5 -a $(PATCHLEVEL) -eq 4; echo $$?),0) +KERNEL_TYPE := GKI 1.0 +else +KERNEL_TYPE := Non-GKI +endif $(info -- KERNEL_VERSION: $(KERNEL_VERSION)) +$(info -- KERNEL_TYPE:$(KERNEL_TYPE)) ifeq ($(strip $(CONFIG_KSU_HOOK_KPROBES)),y) $(info -- SukiSU: KPROBES hooking enabled!)