diff options
| -rw-r--r-- | meta/classes/image-buildinfo.bbclass | 5 |
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 |
| 13 | IMAGE_BUILDINFO_VARS ?= "DISTRO DISTRO_VERSION" | 13 | IMAGE_BUILDINFO_VARS ?= "DISTRO DISTRO_VERSION" |
| 14 | 14 | ||
| 15 | # Desired location of the output file in the image. | ||
| 16 | IMAGE_BUILDINFO_FILE ??= "${sysconfdir}/build" | ||
| 17 | |||
| 15 | # From buildhistory.bbclass | 18 | # From buildhistory.bbclass |
| 16 | def image_buildinfo_outputvars(vars, listvars, d): | 19 | def 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 |
| 63 | python buildinfo () { | 66 | python 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 | '''----------------------- |
| 67 | Build Configuration: | | 70 | Build Configuration: | |
