From 562baac934c6244fb29543f521b745b37bdaba17 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Sun, 30 Mar 2025 02:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20KernelSU=20KPM=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E9=85=8D=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/Kconfig | 8 ++++++++ kernel/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index d95e4c84..70230587 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -23,4 +23,12 @@ config KSU_HOOK This option enables the KernelSU Hook feature. If enabled, it will override the kernel version check and enable the hook functionality. +config KPM + bool "Enable KernelSU KPM" + default n + help + This option enables the KernelSU KPM feature. If enabled, it will + override the kernel version check and enable the hook functionality. + + endmenu diff --git a/kernel/Makefile b/kernel/Makefile index ca0cc941..dbfbcc79 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -16,7 +16,7 @@ ccflags-y += -I$(objtree)/security/selinux -include $(srctree)/include/uapi/asm- obj-$(CONFIG_KSU) += kernelsu.o -obj-y += kpm/ +obj-$(CONFIG_KPM) += kpm/ # .git is a text file while the module is imported by 'git submodule add'.