You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
kernel: Use CONFIG_KSU=m to compile lkm (#1468)
before: CONFIG_KSU=y CONFIG_KSU_MODULE=y after: CONFIG_KSU=m --------- Signed-off-by: dabao1955 <dabao1955@163.com> Co-authored-by: weishu <twsxtd@gmail.com>
This commit is contained in:
@@ -16,11 +16,7 @@ kernelsu-objs += selinux/rules.o
|
||||
ccflags-y += -I$(srctree)/security/selinux -I$(srctree)/security/selinux/include
|
||||
ccflags-y += -I$(objtree)/security/selinux -include $(srctree)/include/uapi/asm-generic/errno.h
|
||||
|
||||
ifndef KSU_MODULE
|
||||
obj-y += kernelsu.o
|
||||
else
|
||||
obj-m += kernelsu.o
|
||||
endif
|
||||
obj-$(CONFIG_KSU) += kernelsu.o
|
||||
|
||||
# .git is a text file while the module is imported by 'git submodule add'.
|
||||
ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0)
|
||||
|
||||
Reference in New Issue
Block a user