summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image-buildinfo.bbclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass
index 87a6a1a489..94c585d4cd 100644
--- a/meta/classes/image-buildinfo.bbclass
+++ b/meta/classes/image-buildinfo.bbclass
@@ -16,9 +16,8 @@ IMAGE_BUILDINFO_VARS ?= "DISTRO DISTRO_VERSION"
16IMAGE_BUILDINFO_FILE ??= "${sysconfdir}/build" 16IMAGE_BUILDINFO_FILE ??= "${sysconfdir}/build"
17 17
18# From buildhistory.bbclass 18# From buildhistory.bbclass
19def image_buildinfo_outputvars(vars, listvars, d): 19def image_buildinfo_outputvars(vars, d):
20 vars = vars.split() 20 vars = vars.split()
21 listvars = listvars.split()
22 ret = "" 21 ret = ""
23 for var in vars: 22 for var in vars:
24 value = d.getVar(var) or "" 23 value = d.getVar(var) or ""
@@ -59,8 +58,7 @@ def buildinfo_target(d):
59 return "" 58 return ""
60 # Single and list variables to be read 59 # Single and list variables to be read
61 vars = (d.getVar("IMAGE_BUILDINFO_VARS") or "") 60 vars = (d.getVar("IMAGE_BUILDINFO_VARS") or "")
62 listvars = (d.getVar("IMAGE_BUILDINFO_LVARS") or "") 61 return image_buildinfo_outputvars(vars, d)
63 return image_buildinfo_outputvars(vars, listvars, d)
64 62
65# Write build information to target filesystem 63# Write build information to target filesystem
66python buildinfo () { 64python buildinfo () {