config BR2_VERSION
string
- default "2010.11-git"
+ option env="BR2_VERSION"
source "target/Config.in.arch"
source "target/device/Config.in"
# You shouldn't need to mess with anything beyond this point...
#--------------------------------------------------------------
+# Set and export the version string
+export BR2_VERSION:=2010.11-git
+
# This top-level Makefile can *not* be executed in parallel
.NOTPARALLEL:
@echo 'See docs/README and docs/buildroot.html for further details'
@echo
-release:
- OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
- git archive --format=tar --prefix=$$OUT/ master|gzip -9 >$$OUT.tar.gz
+release: OUT=buildroot-$(BR2_VERSION)
+ git archive --format=tar --prefix=$(OUT)/ master|gzip -9 >$(OUT).tar.gz
.PHONY: $(noconfig_targets)
fprintf(out, _("#\n"
"# Automatically generated make config: don't edit\n"
+ "# Buildroot version: %s\n"
"%s%s"
"#\n"),
+ sym_get_string_value(sym),
use_timestamp ? "# " : "",
use_timestamp ? ctime(&now) : "");
time(&now);
fprintf(out, "#\n"
"# Automatically generated make config: don't edit\n"
+ "# Buildroot version: %s\n"
"# %s"
"#\n",
+ sym_get_string_value(sym),
ctime(&now));
fprintf(tristate, "#\n"
"# Automatically generated - do not edit\n"
sym_calc_value(sym);
time(&now);
env = getenv("KCONFIG_NOTIMESTAMP");
-@@ -588,10 +588,8 @@
+@@ -588,7 +588,7 @@
fprintf(out, _("#\n"
"# Automatically generated make config: don't edit\n"
- "# Linux kernel version: %s\n"
++ "# Buildroot version: %s\n"
"%s%s"
"#\n"),
-- sym_get_string_value(sym),
- use_timestamp ? "# " : "",
- use_timestamp ? ctime(&now) : "");
-
-@@ -802,25 +800,23 @@
+ sym_get_string_value(sym),
+@@ -802,25 +802,25 @@
return 1;
}
fprintf(out, "#\n"
"# Automatically generated make config: don't edit\n"
- "# Linux kernel version: %s\n"
++ "# Buildroot version: %s\n"
"# %s"
"#\n",
- sym_get_string_value(sym), ctime(&now));
++ sym_get_string_value(sym),
+ ctime(&now));
fprintf(tristate, "#\n"
"# Automatically generated - do not edit\n"