Skip to contentSkip to conversation

svn commit: trunk/buildroot: package/config

Buildroot aldot at uclibc.org 1 participant 1 message Sep 25, 2007

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2007-09-25 04:37:31 -0700 (Tue, 25 Sep 2007) New Revision: 20006

Log:
- add a version and display it in the configuration

Modified:
trunk/buildroot/Config.in
trunk/buildroot/TODO trunk/buildroot/package/config/confdata.c trunk/buildroot/package/config/gconf.c trunk/buildroot/package/config/kconfig-to-buildroot2.patch trunk/buildroot/package/config/mconf.c trunk/buildroot/package/config/symbol.c

Changeset:
Modified: trunk/buildroot/Config.in
===================================================================

buildroot/Config.in +4 -0
@@ -6,6 +6,10 @@
 	bool
 	default y
 
+config BR2_VERSION
+	string
+	default "0.10.0-svn"
+
 source "target/arch.in"
 
 menu "Build options"

Modified: trunk/buildroot/TODO
===================================================================

buildroot/TODO +2 -0
@@ -1,5 +1,7 @@
 Buildroot3 TODOs
 
+- stabilize for a 0.10.0 release
+
 - fix packages/Makefile.autotools.in to use a package-imposed patchdir
 - convert all packages that use autoconf to use the infrastructure of
   packages/Makefile.autotools.in

Modified: trunk/buildroot/package/config/confdata.c
===================================================================

buildroot/package/config/confdata.c +2 -2
@@ -413,7 +413,7 @@
 	if (!out)
 		return 1;
 
-	sym = sym_lookup("VERSION", 0);
+	sym = sym_lookup("BR2_VERSION", 0);
 	sym_calc_value(sym);
 	time(&now);
 	env = getenv("KCONFIG_NOTIMESTAMP");
@@ -681,7 +681,7 @@
 		return 1;
 	}
 
-	sym = sym_lookup("VERSION", 0);
+	sym = sym_lookup("BR2_VERSION", 0);
 	sym_calc_value(sym);
 	time(&now);
 	fprintf(out, "#\n"

Modified: trunk/buildroot/package/config/gconf.c
===================================================================

buildroot/package/config/gconf.c +1 -1
@@ -272,7 +272,7 @@
 					  NULL);
 
 	sprintf(title, _("Buildroot v%s Configuration"),
-		getenv("VERSION"));
+		getenv("BR2_VERSION"));
 	gtk_window_set_title(GTK_WINDOW(main_wnd), title);
 
 	gtk_widget_show(main_wnd);

Modified: trunk/buildroot/package/config/kconfig-to-buildroot2.patch
===================================================================

buildroot/package/config/kconfig-to-buildroot2.patch +6 -545

590 lines not on this page · raw message

Modified: trunk/buildroot/package/config/mconf.c
===================================================================

buildroot/package/config/mconf.c +1 -1
@@ -398,7 +398,7 @@
 	int size;
 	struct symbol *sym;
 
-	sym = sym_lookup("VERSION", 0);
+	sym = sym_lookup("BR2_VERSION", 0);
 	sym_calc_value(sym);
 	size = snprintf(menu_backtitle, sizeof(menu_backtitle),
 	                _("%s - buildroot v%s Configuration"),

Modified: trunk/buildroot/package/config/symbol.c
===================================================================

buildroot/package/config/symbol.c +2 -2
@@ -61,10 +61,10 @@
 	if (p)
 		sym_add_default(sym, p);
 
-	sym = sym_lookup("VERSION", 0);
+	sym = sym_lookup("BR2_VERSION", 0);
 	sym->type = S_STRING;
 	sym->flags |= SYMBOL_AUTO;
-	p = getenv("VERSION");
+	p = getenv("BR2_VERSION");
 	if (p)
 		sym_add_default(sym, p);