summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-03-28 15:27:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-29 23:20:13 +0100
commit0883affe7bd02a1905a50da05079da93e4383792 (patch)
treea4b6bd46576a6ce1afad06a98bcdd233902c3fc5 /meta/classes
parentc093f7c62318c04fb6530ec7c489cc7d5aafb827 (diff)
downloadpoky-0883affe7bd02a1905a50da05079da93e4383792.tar.gz
buildhistory.bbclass: create image directory when needed
buildhistory_get_imageinfo() assumed that the buildhistory directory for the image had already been created earlier. That assumption is not true for special images (like the virtual swupd images from meta-swupd) where the entire traditional do_rootfs/do_image is skipped. Creating files-in-image.txt still makes sense for such images, so support them by creating the directory also in buildhistory_get_imageinfo(). (From OE-Core rev: 723328319ee53235969ec9cce7ff5d7729dcf8d7) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 0b3b7ce66c..108275a460 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -504,6 +504,7 @@ buildhistory_get_imageinfo() {
504 return 504 return
505 fi 505 fi
506 506
507 mkdir -p ${BUILDHISTORY_DIR_IMAGE}
507 buildhistory_list_files ${IMAGE_ROOTFS} ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt 508 buildhistory_list_files ${IMAGE_ROOTFS} ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt
508 509
509 # Collect files requested in BUILDHISTORY_IMAGE_FILES 510 # Collect files requested in BUILDHISTORY_IMAGE_FILES