Fix conditional statements in the KSU compatibility Makefile to ensure that the KSU_UMOUNT flag is handled correctly

This commit is contained in:
ShirkNeko
2025-04-11 03:20:50 +08:00
parent 204eba4cc1
commit dd5875bf48

View File

@@ -130,8 +130,8 @@ endif
# 处理自动backport
ifeq ($(IS_GKI),FALSE)
ccflags-y += -DKSU_COMPAT_GET_CRED_RCU
ccflags-y += -DKSU_UMOUNT
endif
ifeq ($(shell grep -q "atomic_inc_not_zero" $(srctree)/kernel/cred.c; echo $$?),0)
ATOMIC_INC_FUNC = atomic_inc_not_zero
@@ -261,7 +261,6 @@ ifneq ($(shell grep -Eq "^int path_umount" $(srctree)/fs/internal.h; echo $$?),0
$(shell sed -i '/^extern void __init mnt_init/a int path_umount(struct path *path, int flags);' $(srctree)/fs/internal.h;)
$(info -- KSU_SUSFS: adding 'int path_umount(struct path *path, int flags);' to $(srctree)/fs/internal.h)
endif
endif
## For susfs stuff ##
ifeq ($(shell test -e $(srctree)/fs/susfs.c; echo $$?),0)