-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig.plexi
More file actions
221 lines (184 loc) · 5.42 KB
/
Kconfig.plexi
File metadata and controls
221 lines (184 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
menu "PlexiConfig"
config PLEXI
bool "Enable plexicore custom kernel patches"
default y
help
Enables the use of plexi-cores custom patches.
you should choose Y here. This exists for troubleshooting
and developer debugging. If you add your own custom patchrs
and experience ptoblems building or booting your kernel,
you can toggle this option off and recompile to verify
whether plexicore's code is conflicting with your code.
if PLEXI
config PLEXI_KVER
bool "Customize Kernel Version data"
default n
if PLEXI_KVER
config PLEXI_KVER_VERSION
string "Kernel version"
default "6.1.145"
config PLEXI_KVER_KMI
int "KMI Generation"
default 11
config PLEXI_KVER_ANDROID
int "Android Release"
default 14
config PLEXI_KVER_COMMIT
string "Commit build suffix"
default "gc1de4747ac59-ab14219743"
config PLEXI_KVER_DATE
string "Build date and time"
default "Mon Oct 6 12:00:00 UTC 2025"
config PLEXI_KVER_SUFFIX
string "Kernel version suffix"
default "#1 SMP PREEMPT aarch64 Android"
endif
# if PLEXI_KVER
#config PLEXI_TEST
# bool "Test option"
# depends on PLEXI && 64BIT
# depends on KSU != m
# select PLEXI_TESTT
# default n
# help
# This is a test. This is only a test.
#
#
#menu "Plexi Test"
# depends on PLEXI_TESTT
#
#endmenu
#comment "-----"
#config PLEXI_SUKI_COMPAT
# bool "SukiSU patch for manager compatibility"
# default n
# depends on KSU
# help
# A compatibility patch to set kernelsu version from 13000 to 13500
# for compatibility with current manager.
config PLEXI_IOSTAT_DISABLE
bool "Disable iostat"
default y
depends on KSU
help
Enable this to disable IOSTAT completely
config PLEXI_STACK_GUARD_FIX
bool "Use fix for undefined symbol '__stack_chk_guard'"
default n
help
This changes the default behavior of Kconfig to use global stack protection
instead of sysreg and per_task. This should only be enabled if you get
the error:
Undefined symbol '__stack_chk_guard':
during linking of vmlinux.o.
if MODULES
menu "Modules"
config PLEXI_BYPASS_CRC
bool "Bypass CRC checksum verification for kernel modules"
depends on MODVERSIONS && !TRIM_UNUSED_KSYMS
default y
help
By default, the Linux (and Android) kernels are designed to
check module checksums when trying too load kernel modules.
Due to the way the Android GKI kernel is designed, this
can cause problems when trying to boot a GKI kernel boot
image. A warning is still fiven and written to dmesg, but
selecting this option forces a return(0);
If unsure, choose N here. If you encounter issues with
the kernel boot image not loading vendor modules from
your stock vendor dlkm image, you can choose Y here.
if PLEXI_BYPASS_CRC
config PLEXI_BYPASS_CRC_SILENT
bool "Hide version mismatch messages"
default y
help
When a version mismatch is found between a kernel module and
the kernel version, a warning is normally displayed. In our
CRC checksum bypass, we instruct the kernel to load the module
anyway. However, we still display a warning. Choosing Y here
will silence these warnings so they won't appear in the log.
This has no impact on actual kernel module loading.
Unless you are debugging a module loading problem or
enjoy debug warning messages, you can safely choose Y here.
Note: this option currently defaults to N because we don't
want to hide warning for users automatically. Once the user
is aware of the warnings and understands their cause, they
can decide for themselves whether they want to continue
seeing them or not.
endif
# if PLEXI_BYPASS_CRC
# files affected: drivers/mmc/core/core.c; kernel/module/version.c
comment "--Kernel module CRC checksum bypass unavailable--"
depends on !MODVERSIONS || TRIM_UNUSED_KSYMS
# help
# CRC checksum bypassing for kernel modules requires kernel
# modules and module versions to be enabled. The bypass is
# not available if module signatures or trimming of unused
# symbols from kernel modules options are enabled.
#config PLEXI_DISABLE_DIRTY
# bool "Disable '-dirty' kernel version tagging"
# depends on PLEXI
# default y
# help
# Android kernel, like Linux kernel, performs a check during
# build time against the source git repository. If the wotking tree
# has been modified and 'git status' shows any changes exist,
# the kernel is normally built with '-dirty' appended to
# the kernel version.
#
# Choosing Y disables that functionality.
#config PLEXI_USE_EXT
# def_bool n
#
#if PLEXI_USE_EXT
#
#config PLEXI_RAVIOLE_EXT
# bool "Use raviole-specific external modules"
# default n
# help
# This allows for building in the external modules included in the
# KERNEL_HOME\/private\/devices\/google\/raviole dir.
#
# NOTE: DO NOT SELECT THIS IF YOU DO NOT HAVE THE PRIVATE DIR
#
# If unsure, select N
#
#config PLEXI_GS101_EXT
# bool "Use gs101-specific external modules"
# default n
# help
# This allows for building in the external modules included in the
# KERNEL_HOME\/private\/devices\/google\/gs101 dir.
#
# NOTE: DO NOT SELECT THIS IF YOU DO NOT HAVE THE PRIVATE DIR
#
# If unsure, select N
#
#
#if PLEXI_RAVIOLE_EXT
#
#menu "External raviole modules"
#
#source "drivers/private/devices/google/raviole/Kconfig.ext.raviole"
#
#endmenu
#
#endif
#
#if PLEXI_GS101_EXT
#
#menu "External gs101 modules"
#
#source "drivers/private/devices/google/gs101/Kconfig.ext.gs101"
#
#endmenu
#
#endif
#
#endif
endmenu
endif
endif
source "drivers/kernelsu/Kconfig"
source "security/baseband-guard/Kconfig"
endmenu