]> code.ossystems Code Review - openembedded-core.git/commit
image_types.bbclass: support template .wks.in files for wic
authorChristopher Larson <chris_larson@mentor.com>
Fri, 1 Jul 2016 21:27:09 +0000 (14:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2016 09:24:48 +0000 (10:24 +0100)
commit51cb21fe5f050874d52f5b05a8a1de79ea4ebf2f
treeaeaa0cbd52d95f6b51b69967bac75e19309fe6cd
parent44f1d3cc613563b8d5be61a2648d0cd336fea728
image_types.bbclass: support template .wks.in files for wic

These files are treated as the contents of a bitbake variable, so usual
bitbake variable references are supported. I considered using another
templating mechanism, for example the one used by yocto-layer, but then we'd
end up largely mapping metadata variables to template fields anyway, which is
a pointless indirection. Let bitbake expand the variables directly instead.

This feature lets us, for example, reference ${APPEND} in --append, and avoid
hardcoding the serial console tty in the wks file, and let the user's changes
to APPEND affect wic the way they do the other image construction mechanisms.

The template is read in and set in a variable at parse time, so changes to the
variables referenced by the template will result in rebuilding the image.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types.bbclass