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'.