From: Christopher Larson <kergoth@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: [PATCH 0/3] Support template files for wic
Date: Mon, 23 May 2016 13:34:08 -0700 [thread overview]
Message-ID: <cover.1463769811.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.
It's been suggested that the name should better reflect how its contents are
used, i.e. .bbin or so. I've also considered including something like 'bbv' or
similar, to indicate its contents are that of a bitbake value. I think this
should be discussed.
I'd love to hear questions or comments on this. I think the value is clear,
and it's something we need to solve, but I'd like to hear if others agree or
disagree on that, and whether this implementation is appropriate.
The following changes since commit f6b0b260ce18a30d04edfb0afb7942b9f9a5480b:
lib/oe/rootfs: Fix DEBUGFS generation, without openssl (2016-05-20 10:20:42 +0100)
are available in the git repository at:
git://github.com/kergoth/openembedded-core wks.in
https://github.com/kergoth/openembedded-core/tree/wks.in
Christopher Larson (3):
image.bbclass: append to prefuncs/postfuncs for do_image_*
image_types.bbclass: add intermediate var for WKS_FILE_CHECKSUM
image_types.bbclass: support template .wks.in files for wic
meta/classes/image.bbclass | 4 ++--
meta/classes/image_types.bbclass | 38 +++++++++++++++++++++++++++++++++++++-
2 files changed, 39 insertions(+), 3 deletions(-)
--
2.8.0
next reply other threads:[~2016-05-23 20:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 20:34 Christopher Larson [this message]
2016-05-23 20:34 ` [PATCH 1/3] image.bbclass: append to prefuncs/postfuncs for do_image_* Christopher Larson
2016-05-23 20:34 ` [PATCH 2/3] image_types.bbclass: add intermediate var for WKS_FILE_CHECKSUM Christopher Larson
2016-05-23 20:34 ` [PATCH 3/3] image_types.bbclass: support template .wks.in files for wic Christopher Larson
2016-05-24 9:13 ` Richard Purdie
2016-05-24 14:26 ` Christopher Larson
2016-05-24 16:07 ` Christopher Larson
2016-05-24 17:45 ` Christopher Larson
2016-05-24 19:28 ` Christopher Larson
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.1463769811.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