Potential, but ugly, fix for Mi8937

Reported boot issues
Notably this device went from 3.18 to 4.9 and likely has rough edges

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2023-04-23 23:29:34 -04:00
parent 47136145e5
commit dfb376a4fc
No known key found for this signature in database
GPG Key ID: B286E9F57A07424B

View File

@ -984,7 +984,7 @@ hardenDefconfig() {
do
#If the option is disabled, enable it
sed -i 's/# CONFIG_'"$option"' is not set/CONFIG_'"$option"'=y/' $defconfigPath &>/dev/null || true;
if [[ "$1" != *"kernel/oneplus/msm8996"* ]]; then
if [[ "$1" != *"kernel/oneplus/msm8996"* ]] && [[ "$1" != *"kernel/xiaomi/msm8937"* ]]; then
#If the option isn't present, add it enabled
sed -zi '/CONFIG_'"$option"'=y/!s/$/\nCONFIG_'"$option"'=y/' $defconfigPath &>/dev/null || true;
fi;