]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory.bbclass: create image directory when needed
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 28 Mar 2016 13:27:57 +0000 (15:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Mar 2016 11:59:56 +0000 (12:59 +0100)
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>
meta/classes/buildhistory.bbclass

index 0b3b7ce66c0b0019873c825adf7bd763df58c964..108275a46044685f2a6c21b5e9d2c1d1c26ea974 100644 (file)
@@ -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