Log pretty name of op-build driver into VERSION
The environment variable OPBUILD_BUILDNAME will be added to the
VERSION partition with the op-build-buildname label. For example,
op-build-buildname-MYSPECIALBUILDNAME
The entry will be omitted if the variable is not set.
Signed-off-by: Daniel Crowell <dcrowell@us.ibm.com>
diff --git a/openpower/package/pkg-versions.mk b/openpower/package/pkg-versions.mk
index 3d967bf..032e864 100644
--- a/openpower/package/pkg-versions.mk
+++ b/openpower/package/pkg-versions.mk
@@ -137,7 +137,7 @@
####
# $(1) is the lowercase package version
-# $(2) is the uppercase pacakge version
+# $(2) is the uppercase package version
####
define INNER_OPENPOWER_VERSION
@@ -206,6 +206,11 @@
| xargs echo \
>> $$($(2)_VERSION_FILE); \
+# Include the named pnor build name if there is one
+if [ -n "$$(OPBUILD_BUILDNAME)" ]; then \
+ echo -n " op-build-buildname-" >> $$($(2)_VERSION_FILE); \
+ echo $$(OPBUILD_BUILDNAME) >> $$($(2)_VERSION_FILE); \
+fi
# Combing subpackage version files into $$($(2)_VERSION_FILE)
$$(foreach verFile,$$(ALL_SUBPACKAGE_VERSIONS),