summaryrefslogtreecommitdiffstats
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 12:59:56 +0100
commit723328319ee53235969ec9cce7ff5d7729dcf8d7 (patch)
tree8b8894b152a2cf2d24f298e111605031433ee038
parentd5ddc5ec1628c94bd5edc45bc821da1ce616e80f (diff)
downloadopenembedded-core-contrib-723328319ee53235969ec9cce7ff5d7729dcf8d7.tar.gz
openembedded-core-contrib-723328319ee53235969ec9cce7ff5d7729dcf8d7.tar.bz2
openembedded-core-contrib-723328319ee53235969ec9cce7ff5d7729dcf8d7.zip
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(). Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() {
return
fi
+ mkdir -p ${BUILDHISTORY_DIR_IMAGE}
buildhistory_list_files ${IMAGE_ROOTFS} ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt
# Collect files requested in BUILDHISTORY_IMAGE_FILES