summaryrefslogtreecommitdiff
path: root/package/config/conf.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-08-03 10:07:54 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-08-03 10:07:54 +0200
commitc0727fd3192dd3f126b9534174b4f529eeda2a33 (patch)
tree9599c2f8e43298cb88f1e1bfe894e3ac1bd1dcf7 /package/config/conf.c
parent4840c451d93afb59725900b1d6ca84645113b897 (diff)
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 <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/config/conf.c')
-rw-r--r--package/config/conf.c4
1 files changed, 4 insertions, 0 deletions
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;
}