Unfortunately, Android userspace is very dependent on debugfs for several unrelated things; however, it definitely doesn't require *everything* that is included in the kernel when CONFIG_DEBUG_FS is enabled. Therefore, in order to be able to selectively whitelist drivers that Android needs debugfs for (by passing -DCONFIG_DEBUG_FS to every object that's desired to be whitelisted), always compile the core debugfs drivers even when CONFIG_DEBUG_FS is disabled so that debugfs can still be used where it's necessary. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
4 lines
82 B
Makefile
4 lines
82 B
Makefile
debugfs-objs := inode.o file.o
|
|
ccflags-y := -DCONFIG_DEBUG_FS
|
|
obj-y += debugfs.o
|