]> code.ossystems Code Review - openembedded-core.git/commit
wic: Extend indirect string connection to support image names and rootfs
authorJoão Henrique Ferreira de Freitas <joaohf@gmail.com>
Sat, 5 Apr 2014 02:14:11 +0000 (23:14 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 May 2014 18:35:06 +0000 (19:35 +0100)
commit58417093d7ce83c8a2f683a356fddc23aaee5e8e
tree56df8f2b6b0eed9f7179cbf3f6ff0dcdcb2c4361
parentb8e51f73bc8e67ca60b7dd8d67091257aad62efd
wic: Extend indirect string connection to support image names and rootfs

The wic command-line param --rootfs-dir gets extended to support
multiple directories and image names. Each '--rootfs-dir' could be
connected using a special string. This special string is a image
name which gets expanded by bitbake to get 'IMAGE_ROOTFS' or
a rootfs-dir path pointing to rootfs directory. Like this:

  wic create ... --rootfs-dir rootfs1=core-image-minimal \
    --rootfs-dir rootfs2=core-image-minimal-dev

.wks:

  part / --source rootfs --rootfs-dir="rootfs1" --ondisk sda --fstype=ext3 \
    --label primary --align 1024

  part /standby --source rootfs --rootfs-dir="rootfs2" \
    --ondisk sda --fstype=ext3 --label secondary --align 1024

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/mic/plugins/source/rootfs.py