aboutsummaryrefslogtreecommitdiff
path: root/package/config/confdata.c
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-08-03 10:07:54 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-08-03 10:07:54 +0200
commitc0727fd3192dd3f126b9534174b4f529eeda2a33 (patch)
tree9599c2f8e43298cb88f1e1bfe894e3ac1bd1dcf7 /package/config/confdata.c
parent4840c451d93afb59725900b1d6ca84645113b897 (diff)
downloadbuildroot-c0727fd3192dd3f126b9534174b4f529eeda2a33.tar.gz
buildroot-c0727fd3192dd3f126b9534174b4f529eeda2a33.tar.bz2
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/confdata.c')
-rw-r--r--package/config/confdata.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/package/config/confdata.c b/package/config/confdata.c
index 56bcd87695..52199123aa 100644
--- a/package/config/confdata.c
+++ b/package/config/confdata.c
@@ -44,9 +44,7 @@ const char *conf_get_configname(void)
const char *conf_get_autoconfig_name(void)
{
- char *name = getenv("BUILDROOT_AUTOCONFIG");
-
- return name ? name : "$(BR2_DEPENDS_DIR)/config/auto.conf";
+ return getenv("KCONFIG_AUTOCONFIG");
}
static char *conf_expand_value(const char *in)