wic: Add OpenEmbedded-specific implementation
authorTom Zanussi <tom.zanussi@linux.intel.com>
Thu, 19 Sep 2013 04:32:19 +0000 (04:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Oct 2013 21:56:03 +0000 (22:56 +0100)
commitea7618243a3dd221208545b7d1a002070271b65b
treefd515611fb8dfdd887ae85cab947b0acd146a998
parent9dbce84ad6d79ee60cf2005a10ee6b99b1074387
wic: Add OpenEmbedded-specific implementation

Reuses the mic/livecd infrastructure but heavily subclasses and
modifies it to adapt to the special needs of building images from
existing OpenEmbedded build artifacts.

In addition to the OE-specific mic objects and modifications to the
underlying infrastructure, this adds a mechanism to allow OE kickstart
files to be 'canned' and made available to users via the 'wic list
images' command.

Two initial OE kickstart files have been added as canned .wks files:
directdisk, which implements the same thing as the images created by
directdisk.bbclass, and mkefidisk, which can essentially be used as a
replacement for mkefidisk.sh.  Of course, since creation of these
images are now driven by .wks files rather than being hard-coded into
class files or scripts, they can be easily modified to generate
different variations on those images.  They also don't require root
priveleges, since they don't use mount to create the images.  They
don't however write to media like mkefidisk.sh does, but rather create
images that can be written onto media.

(From OE-Core rev: f87acc5e59d3c2c39ff171b5557977dab4c8f4a6)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 files changed:
scripts/lib/image/canned-wks/directdisk.wks [new file with mode: 0644]
scripts/lib/image/canned-wks/mkefidisk.wks [new file with mode: 0644]
scripts/lib/image/config/wic.conf [new file with mode: 0644]
scripts/lib/image/engine.py
scripts/lib/mic/conf.py
scripts/lib/mic/creator.py
scripts/lib/mic/imager/baseimager.py
scripts/lib/mic/imager/direct.py [new file with mode: 0644]
scripts/lib/mic/kickstart/__init__.py
scripts/lib/mic/kickstart/custom_commands/__init__.py
scripts/lib/mic/kickstart/custom_commands/micpartition.py [new file with mode: 0644]
scripts/lib/mic/kickstart/custom_commands/partition.py
scripts/lib/mic/plugin.py
scripts/lib/mic/plugins/imager/direct_plugin.py [new file with mode: 0644]
scripts/lib/mic/utils/fs_related.py
scripts/lib/mic/utils/misc.py
scripts/lib/mic/utils/oe/__init__.py [new file with mode: 0644]
scripts/lib/mic/utils/oe/misc.py [new file with mode: 0644]
scripts/lib/mic/utils/partitionedfs.py
scripts/yocto-image.conf [deleted file]