[yocto] use of variables in wic files

Alex Kiernan alex.kiernan at gmail.com
Tue Mar 20 07:04:50 PDT 2018


On Tue, Mar 20, 2018 at 1:24 PM, Andrea Galbusera <gizero at gmail.com> wrote:
> Hi,
>
> Is there any way to reference bitbake variable within the wic file
> syntax? Got to this question after a wic file of mine recently broke
> due to a u-boot artifact changing its name after an upstream update of
> the u-boot recipe. The wic had the artifact's name hardcoded as a
> parameter to the rawcopy plugin. Could I have been referencing the
> u-boot artifact via UBOOT_BINARY variable instead?

Use a wic.in file?

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/image_types_wic.bbclass#n83

There's an example in the Intel RefKit:

https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-core/wic/refkit-directdisk.wks.in

-- 
Alex Kiernan



More information about the yocto mailing list