kconfig: fix failing to generate auto.conf
authorJing Leng <jleng@ambarella.com>
Fri, 11 Feb 2022 09:27:36 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:01:07 +0000 (12:01 +0100)
commit3680b2b8104b9c0cdbe168d0de4912ad5bff6abd
tree878af20424c622afebcfd22fb005d1d84b0c7d63
parentb6787e284d3dfaa830f8241679abef3fb7e609e5
kconfig: fix failing to generate auto.conf

[ Upstream commit 1b9e740a81f91ae338b29ed70455719804957b80 ]

When the KCONFIG_AUTOCONFIG is specified (e.g. export \
KCONFIG_AUTOCONFIG=output/config/auto.conf), the directory of
include/config/ will not be created, so kconfig can't create deps
files in it and auto.conf can't be generated.

Signed-off-by: Jing Leng <jleng@ambarella.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/kconfig/confdata.c