forked from KudProject/kernel_msm-4.9
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Kconfig
23 lines (18 loc) · 810 Bytes
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"
config SRCARCH
string
option env="SRCARCH"
source "arch/$SRCARCH/Kconfig"
source "techpack/Kconfig"
config KSU_STATIC_HOOKS
bool "KernelSU: Force to use static hooks"
default n
help
Say Y here to force KernelSU to use static hooks.
This can avoid bootloop if the kernel has broken Kprobes support.
To use this whenever CONFIG_KPROBES=y, you'll need to execute the following command in KernelSU/kernel directory:
`sed -i 's|#ifdef CONFIG_KPROBES|#if defined(CONFIG_KPROBES) \&\& !defined(CONFIG_KSU_STATIC_HOOKS)|g;s|#ifndef CONFIG_KPROBES|#if !defined(CONFIG_KPROBES) \|\| defined(CONFIG_KSU_STATIC_HOOKS)|g' *.*`