kconfig: fix oldconfig to generate .config.cmd
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 3 Aug 2009 08:07:54 +0000 (10:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 3 Aug 2009 08:07:54 +0000 (10:07 +0200)
commitc0727fd3192dd3f126b9534174b4f529eeda2a33
tree9599c2f8e43298cb88f1e1bfe894e3ac1bd1dcf7
parent4840c451d93afb59725900b1d6ca84645113b897
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>
package/config/conf.c
package/config/confdata.c
package/config/kconfig-to-buildroot2.patch