[OE-core] [jethro] 'wic' image support critical fixes

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Feb 26 21:43:26 UTC 2016


Hello folks,

[Cced Robert Yang]

I would like to propuse the backport of following changes:

Author: Mariano Lopez <mariano.lopez at linux.intel.com>
Date:   Wed Dec 30 06:52:54 2015 +0000

    image_types.bbclass: Rebuild when WICVARS change

    The procces to do a wic image is to save a file with
    variables required by wic and then call wic using this
    file. Because this is external to bitbake if the vars
    change, the image won't be rebuild; an example of such
    is IMAGE_BOOT_FILES.

    This patch adds these variables to vardeps of do_rootfs
    when a wic image is build. This will rebuild the image
    if a variable needed by wic changes.

    [YOCTO #8693]

    Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    (cherry picked from commit 12c54d50ed4c321dc272beb3c6cb770965c979f1)

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Tue Nov 10 14:18:20 2015 -0700

    image_types: improve wks path specification

    Hardcoding a full input path with zero flexibility goes against
everything the
    Yocto Project is about. Rework it to let the user specify the wks base
    filename with WKS_FILE and it'll search the layers for the wks file and use
    it.

    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    (cherry picked from commit 8cc7f5229f5447c2183ac319dd52c7ed737ec89b)

Author: Noor Ahsan <noor_ahsan at mentor.com>
Date:   Wed Dec 23 15:50:35 2015 +0200

    wic: rawcopy: Copy source file to build folder

    When a file is given using --sourceparams then wic directly use that file
    instead of copying them to build folder. At time of assembling it os.rename
    is called which renames all the files to name. In that process the original
    file is renamed. When image recipe is rebuilt then wic complains about
    missing file which was renamed in previous build.

    [YOCTO #8854]

    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    (cherry picked from commit 33c52b1f2d39feb641465bf42e8b16d0ab22a316)

Those improve the 'wic' image support on Jethro and are merged into
master for a while. Could those be backported?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list