From: Christopher Larson <kergoth@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: [PATCHv2 0/2] Support template files for wic
Date: Fri, 1 Jul 2016 14:27:00 -0700 [thread overview]
Message-ID: <cover.1467408317.git.chris_larson@mentor.com> (raw)
From: Christopher Larson <chris_larson@mentor.com>
This adds support for .wks.in files as WKS_FILE.
This is a re-send of the RFC PATCH series as a regular PATCH series, to
attempt to get the feature merged. There's a clear value-add, there were no
major objections to the RFC series, and further improvements can be added on
from here.
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.
The following changes since commit 646c366c2566bd8dd6f73681cea9f5b021589a56:
gst-player: upgrade to latest HEAD (2016-06-27 14:08:37 +0100)
are available in the git repository at:
git://github.com/kergoth/openembedded-core wks.in2
https://github.com/kergoth/openembedded-core/tree/wks.in2
Christopher Larson (2):
image_types.bbclass: add intermediate var for WKS_FILE_CHECKSUM
image_types.bbclass: support template .wks.in files for wic
meta/classes/image_types.bbclass | 49 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
--
2.8.0
next reply other threads:[~2016-07-01 21:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-01 21:27 Christopher Larson [this message]
2016-07-01 21:27 ` [PATCHv2 1/2] image_types.bbclass: add intermediate var for WKS_FILE_CHECKSUM Christopher Larson
2016-07-01 21:27 ` [PATCHv2 2/2] image_types.bbclass: support template .wks.in files for wic Christopher Larson
2016-07-01 21:28 ` [PATCHv2 0/2] Support template " Christopher Larson
2016-07-04 22:25 ` Ed Bartosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1467408317.git.chris_larson@mentor.com \
--to=kergoth@gmail.com \
--cc=chris_larson@mentor.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox