summaryrefslogtreecommitdiffstats
path: root/core/opal.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-11-19 12:15:07 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-11-19 12:19:30 +1100
commit0b18bd2ae2db1e6fd15e859b00b23bb39886f528 (patch)
treeb6e2c141d55c2d274b152fadea92871a3f08e803 /core/opal.c
parent0265f805be05f224fbcf3913fb4c604fa04da7e0 (diff)
downloadtalos-skiboot-0b18bd2ae2db1e6fd15e859b00b23bb39886f528.tar.gz
talos-skiboot-0b18bd2ae2db1e6fd15e859b00b23bb39886f528.zip
Implement skiboot versioning
We grab a version from git tags (or SKIBOOT_VERSION environment variable), optionally tack on EXTRA_VERSION (if from git) as well as add things to the git version number if we're ahead of the most recent tag or the tree is dirty. Also fix-up makefiles so that we don't have to rebuild version.c every time you run make. fsp attn area needed updating as we can have >40 character version strings. We also export the version string via device tree rather than just the gitid. For buildroot builds, setting SKIBOOT_VERSION environment variable to the tag you grab will do the correct thing. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r--core/opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opal.c b/core/opal.c
index 5e1c742e..deb5affc 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -118,7 +118,7 @@ static void add_opal_firmware_node(void)
dt_add_property_string(firmware, "compatible", "ibm,opal-firmware");
dt_add_property_string(firmware, "name", "firmware");
- dt_add_property_string(firmware, "git-id", gitid);
+ dt_add_property_string(firmware, "version", version);
}
void add_opal_node(void)
OpenPOWER on IntegriCloud