From c0727fd3192dd3f126b9534174b4f529eeda2a33 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 3 Aug 2009 10:07:54 +0200 Subject: kconfig: fix oldconfig to generate .config.cmd Since the recent update of Kconfig to the Kconfig infrastructure found in 2.6.30 kernels, make oldconfig was broken because it didn't generate the .config.cmd file. This is done by a call to the conf_write_autoconf() function. Moreover, this process was also broken because the conf_get_autoconfig_name() function was reading the environment variable BUILDROOT_AUTOCONF while the main Makefile is passing it as KCONFIG_AUTOCONFIG. We also remove the fallback on "$(BR2_DEPENDS_DIR)/config/auto.conf" since we are not able to expand BR2_DEPENDS_DIR at this point. Therefore, the KCONFIG_AUTOCONFIG envionment variable *must* be set. Signed-off-by: Thomas Petazzoni --- package/config/conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/config/conf.c') diff --git a/package/config/conf.c b/package/config/conf.c index c824805cd..2485dcd5e 100644 --- a/package/config/conf.c +++ b/package/config/conf.c @@ -611,6 +611,10 @@ int main(int ac, char **av) fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n")); exit(1); } + if (conf_write_autoconf()) { + fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n")); + return 1; + } } return 0; } -- cgit v1.2.3