[OE-core] [PATCH 1/3] wic: Initial code for wic (OpenEmbedded Image Creator)

Tom Zanussi tom.zanussi at linux.intel.com
Fri Sep 27 14:21:39 UTC 2013


Hi Otavio,

On Fri, 2013-09-27 at 11:01 -0300, Otavio Salvador wrote:
> Hello Tom,
> 
> On Thu, Sep 26, 2013 at 11:17 PM, Tom Zanussi
> <tom.zanussi at linux.intel.com> wrote:
> > Initial implementation of the 'wic' command.
> >
> > The 'wic' command generates partitioned images from existing
> > OpenEmbedded build artifacts.  Image generation is driven by
> > partitioning commands contained in an 'Openembedded kickstart' (.wks)
> > file specified either directly on the command-line or as one of a
> > selection of canned .wks files (see 'wic list images').  When applied
> > to a given set of build artifacts, the result is an image or set of
> > images that can be directly written onto media and used on a
> > particular system.
> >
> > 'wic' is based loosely on the 'mic' (Meego Image Creator) framework,
> > but heavily modified to make direct use of OpenEmbedded build
> > artifacts instead of package installation and configuration, things
> > already incorporated int the OE artifacts.
> >
> > The name 'wic' comes from 'oeic' with the 'oe' diphthong promoted to
> > the letter 'w', because 'oeic' is impossible to remember or pronounce.
> >
> > This covers the mechanics of invoking and providing help for the
> > command and sub-commands; it contains hooks for future commits to
> > connect with the actual functionality, once implemented.
> >
> > Help is integrated into the 'wic' command - see that for details on
> > usage.
> >
> > Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
> 
> Could you please elaborate why to make a new command instead of using
> the class system?
> 

This isn't an either/or thing - the initial requirements were that the
overall deployment effort end up being something that would be usable
both from an external tool as well as from within the class system.

This just happens to be the initial (easier) part of that, the external
tool, and I expect in 1.6 to be doing a lot of the harder part,
integration with the build system.

The most important part, I think, is that this provides a high-level
user-oriented 'language' (the kickstart files) that users can use to
define custom images, rather than having to muck around in class files
or variable settings, or write specialized scripts such as mkefidisk.sh
for example.

Making that available from a standalone tool such as 'wic' is
straightforward, doing the same from within the build system will
require more thought and work, but that's what I'm hoping to do in
1.6...

Tom







More information about the Openembedded-core mailing list