summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image-buildinfo.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass
index 85626f0a68..213fb9cf9b 100644
--- a/meta/classes/image-buildinfo.bbclass
+++ b/meta/classes/image-buildinfo.bbclass
@@ -12,6 +12,9 @@
12# Desired variables to display 12# Desired variables to display
13IMAGE_BUILDINFO_VARS ?= "DISTRO DISTRO_VERSION" 13IMAGE_BUILDINFO_VARS ?= "DISTRO DISTRO_VERSION"
14 14
15# Desired location of the output file in the image.
16IMAGE_BUILDINFO_FILE ??= "${sysconfdir}/build"
17
15# From buildhistory.bbclass 18# From buildhistory.bbclass
16def image_buildinfo_outputvars(vars, listvars, d): 19def image_buildinfo_outputvars(vars, listvars, d):
17 vars = vars.split() 20 vars = vars.split()
@@ -61,7 +64,7 @@ def buildinfo_target(d):
61 64
62# Write build information to target filesystem 65# Write build information to target filesystem
63python buildinfo () { 66python buildinfo () {
64 with open(d.expand('${IMAGE_ROOTFS}${sysconfdir}/build'), 'w') as build: 67 with open(d.expand('${IMAGE_ROOTFS}${IMAGE_BUILDINFO_FILE}'), 'w') as build:
65 build.writelines(( 68 build.writelines((
66 '''----------------------- 69 '''-----------------------
67Build Configuration: | 70Build Configuration: |