Skip to contentSkip to conversation

Pull request for branch oldconfig-fix

GIT PULL New Thomas Petazzoni 2 participants 3 messages Aug 3, 2009

lore
Share & tools
lore
#0 lore raw

The following changes since commit 4840c451d93afb59725900b1d6ca84645113b897:
Peter Korsgaard (1):
Merge branch 'lvm-bump' of git://git.busybox.net/~tpetazzoni/git/buildroot

are available in the git repository at:

git://git.busybox.net/~tpetazzoni/git/buildroot oldconfig-fix

Thomas Petazzoni (1):
kconfig: fix oldconfig to generate .config.cmd

 package/config/conf.c                      |    4 ++
 package/config/confdata.c                  |    4 +--
 package/config/kconfig-to-buildroot2.patch |   47 +++++++++++++++------------
 3 files changed, 31 insertions(+), 24 deletions(-)

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/1 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.

---
 package/config/conf.c                      |    4 ++
 package/config/confdata.c                  |    4 +--
 package/config/kconfig-to-buildroot2.patch |   47 +++++++++++++++------------
 3 files changed, 31 insertions(+), 24 deletions(-)
package/config/conf.c +4 -0
index c824805..2485dcd 100644
@@ -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;
 }
package/config/confdata.c +1 -3
index 56bcd87..5219912 100644
@@ -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)
package/config/kconfig-to-buildroot2.patch +26 -21

166 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#2 lore raw
In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> The following changes since commit 4840c451d93afb59725900b1d6ca84645113b897:
Thomas> Peter Korsgaard (1):
Thomas> Merge branch 'lvm-bump' of git://git.busybox.net/~tpetazzoni/git/buildroot

Thomas> are available in the git repository at:

Thomas> git://git.busybox.net/~tpetazzoni/git/buildroot oldconfig-fix

Thomas> Thomas Petazzoni (1):
Thomas> kconfig: fix oldconfig to generate .config.cmd

Thanks, pulled and pushed!

Signature · 1 line
Bye, Peter Korsgaard