summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-artifact-names.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 11:34:17 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-16 16:41:59 (GMT)
commit4b424bdfdbbe16b6e41f6cd1de75a51e3799cf94 (patch)
treef59682b14ffa5de9fef7dd62b88dddd43e3de400 /meta/classes/image-artifact-names.bbclass
parentf47a396964c4de76838f8c59b8226625817aa369 (diff)
downloadpoky-4b424bdfdbbe16b6e41f6cd1de75a51e3799cf94.tar.gz
reproducible: Merge code into base.bbclass
Reproducibility is here to stay and needs to be part of our default workflow. Move the remaining code to base.bbclass so it is always a first class citizen and it is clear people need to be mindful of it. (From OE-Core rev: abb0671d2cebfd7e8df94796404bbe9c7f961058) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-artifact-names.bbclass')
-rw-r--r--meta/classes/image-artifact-names.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image-artifact-names.bbclass b/meta/classes/image-artifact-names.bbclass
index 67f04e8..f5769e5 100644
--- a/meta/classes/image-artifact-names.bbclass
+++ b/meta/classes/image-artifact-names.bbclass
@@ -15,7 +15,7 @@ IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
15IMAGE_NAME_SUFFIX ??= ".rootfs" 15IMAGE_NAME_SUFFIX ??= ".rootfs"
16 16
17python () { 17python () {
18 if bb.data.inherits_class('reproducible_build', d) and bb.data.inherits_class('deploy', d) and d.getVar("IMAGE_VERSION_SUFFIX") == "-${DATETIME}": 18 if bb.data.inherits_class('deploy', d) and d.getVar("IMAGE_VERSION_SUFFIX") == "-${DATETIME}":
19 import datetime 19 import datetime
20 d.setVar("IMAGE_VERSION_SUFFIX", "-" + datetime.datetime.fromtimestamp(int(d.getVar("SOURCE_DATE_EPOCH")), datetime.timezone.utc).strftime('%Y%m%d%H%M%S')) 20 d.setVar("IMAGE_VERSION_SUFFIX", "-" + datetime.datetime.fromtimestamp(int(d.getVar("SOURCE_DATE_EPOCH")), datetime.timezone.utc).strftime('%Y%m%d%H%M%S'))
21 d.setVarFlag("IMAGE_VERSION_SUFFIX", "vardepvalue", "") 21 d.setVarFlag("IMAGE_VERSION_SUFFIX", "vardepvalue", "")