Makefile:611: include/config/auto.conf: No such file or directory

From: Mathieu Malaterre
Date: Wed Nov 07 2018 - 14:47:19 EST


Hi Yamada-san,

Since commit:

80463f1b7bf9 kbuild: add --include-dir flag only for out-of-tree build

I can no longer run the bindeb-pkg rule. For example:

$ make O=wii ARCH=powerpc wii_defconfig
$ make -j8 O=wii ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- bindeb-pkg
...
WRAP arch/powerpc/boot/dtbImage.wii
INFO: Uncompressed kernel (size 0x89aa8c) overlaps the address of the
wrapper(0x600000)
INFO: Fixing the link_address of wrapper to (0x900000)
rm arch/powerpc/boot/wii.dtb
fakeroot -u debian/rules binary
make KERNELRELEASE=4.19.0-rc3-wii+ ARCH=powerpc KBUILD_SRC= intdeb-pkg
/bin/bash ../scripts/package/builddeb
Makefile:611: include/config/auto.conf: No such file or directory
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[11]: *** [syncconfig] Error 1
make[10]: *** [syncconfig] Error 2
make[9]: *** [include/config/auto.conf] Error 2
make[8]: *** [__sub-make] Error 2
cp: cannot stat '/tmp/linux/scripts/kconfig/Makefile:69: recipe for
target '\''syncconfig'\'' failed'$'\n''/tmp/linux/Makefile:555: recipe
for target '\''syncconfig'\'' failed'$'\n''Makefile:646: recipe for
target '\''include/config/auto.conf'\'' failed'$'\n''Makefile:24:
recipe for target '\''__sub-make'\'' failed': No such file or
directory

Would you be able to provide a patch to fix this ?

Thanks much,