summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb')
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb b/meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb
index af30a17d..765d35e8 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb
+++ b/meta-xilinx-core/recipes-bsp/bootbin/bootbin-version-string.bb
@@ -15,9 +15,14 @@ BOOTBIN_VER_FILE = "bootbin-version-string.txt"
15 15
16inherit deploy image-artifact-names 16inherit deploy image-artifact-names
17 17
18IMAGE_NAME_SUFFIX = ""
19
18python do_configure() { 20python do_configure() {
19 if d.getVar("BOOTBIN_VER_SUFFIX"): 21
20 version = version + "-" + d.getVar("BOOTBIN_VER_SUFFIX") 22 if not 'version' in locals():
23 version = d.getVar("MACHINE") + "-v" + d.getVar("BOOTBIN_VER_MAIN")
24 version += d.getVar("IMAGE_VERSION_SUFFIX")
25
21 with open(d.expand("${B}/${BOOTBIN_VER_FILE}"), "w") as f: 26 with open(d.expand("${B}/${BOOTBIN_VER_FILE}"), "w") as f:
22 f.write(version) 27 f.write(version)
23} 28}