From: Patrick Ohly Date: Mon, 28 Mar 2016 13:27:57 +0000 (+0200) Subject: buildhistory.bbclass: create image directory when needed X-Git-Tag: 2016-4~241 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=723328319ee53235969ec9cce7ff5d7729dcf8d7;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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