[Android Software Development] limited_imagination:
Ha, it is not possible to exclude it from the .config file!

When I start to compile, the first thing that happens is that it re-writes the .config file back, to exactly match the original defconfig file!

Then it throws the same errors again, from before my edit of the .config file.

That must have been happening with the USB serial port drivers, too, when I was using the x_86_64_defconfig as the base, that had no reference to the USB serial port drivers. First thing on compiling, it would re-write the .config file and strip out all the references to the drivers that I had added.

So now when I edit out the .config file line "CONFIG_MFD_CORE=y", and change it to "# CONFIG_MFD_CORE is not set" to avoid the fatal error, as soon as I run the compile, it changes that line back to "CONFIG_MFD_CORE=y" and then throws the same error.

Doesn't matter how I manually change the .config file, when it compiles, it re-writes it to match the defconfig file, as you can see here:

make ARCH=x86_64 CROSS_COMPILE=/home/subaru/android/NDK/android-ndk-r11c/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:error: recursive dependency detected!
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:11:	symbol SENSORS_BMA2X2_ENABLE_INT1 depends on SENSORS_BMA2X2_ENABLE_INT2
drivers/external_drivers/drivers/input/misc/bosch/Kconfig:19:	symbol SENSORS_BMA2X2_ENABLE_INT2 depends on SENSORS_BMA2X2_ENABLE_INT1
#
# configuration written to .config
#
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
PASYMS arch/x86/realmode/rm/pasyms.h
LDS arch/x86/realmode/rm/realmode.lds
LD arch/x86/realmode/rm/realmode.elf
RELOCS arch/x86/realmode/rm/realmode.relocs
OBJCOPY arch/x86/realmode/rm/realmode.bin
AS arch/x86/realmode/rmpiggy.o
LD arch/x86/realmode/built-in.o
VDSOSYM arch/x86/vdso/vdso-syms.lds
VDSOSYM arch/x86/vdso/vdsox32-syms.lds
VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds
VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syms.lds
LD arch/x86/vdso/built-in.o
LD arch/x86/built-in.o
CC drivers/external_drivers/drivers/hsu/mfd_core.o
In file included from drivers/external_drivers/drivers/hsu/mfd_trace.h:197:0,
from drivers/external_drivers/drivers/hsu/mfd.h:251,
from drivers/external_drivers/drivers/hsu/mfd_core.c:43:
include/trace/define_trace.h:79:43: fatal error: ./mfd_trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
scripts/Makefile.build:308: recipe for target 'drivers/external_drivers/drivers/hsu/mfd_core.o' failed
make[4]: *** [drivers/external_drivers/drivers/hsu/mfd_core.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/external_drivers/drivers/hsu' failed
make[3]: *** [drivers/external_drivers/drivers/hsu] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/external_drivers/drivers' failed
make[2]: *** [drivers/external_drivers/drivers] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/external_drivers' failed
make[1]: *** [drivers/external_drivers] Error 2
Makefile:796: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Why would this be happening?