summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-03 16:51:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-09 00:14:01 -0700
commitdaa81093148a7c5a7786bd4e9b86ab9d5187e4af (patch)
treef5e46a541cf455e53766d69ded5b69a0f4d75c94
parent04c5307cf7286a32c9a6a85e008274b98950d0c2 (diff)
downloadpoky-daa81093148a7c5a7786bd4e9b86ab9d5187e4af.tar.gz
wic: Improve 'wic help overview' content
Included full console output and example of the .wks file into the 'wic help overview' content. Used qemux86-64 machine instead of crownbay to make example working without cloning additional layers. [YOCTO #7940] (From OE-Core rev: 68d391eaf4fe9fc37e3278255d5da170f98b8763) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/image/help.py33
1 files changed, 24 insertions, 9 deletions
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py
index a14ef20594..5fa5836d4e 100644
--- a/scripts/lib/image/help.py
+++ b/scripts/lib/image/help.py
@@ -616,18 +616,33 @@ DESCRIPTION
616 and also uses the -o option to have wic create the output 616 and also uses the -o option to have wic create the output
617 somewhere other than the default /var/tmp/wic: 617 somewhere other than the default /var/tmp/wic:
618 618
619 $ wic create ~/test.wks -o /home/trz/testwic --rootfs-dir 619 $ wic create ./test.wks -o ./out --rootfs-dir
620 /home/trz/yocto/build/tmp/work/crownbay/core-image-minimal/1.0-r0/rootfs 620 tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
621 --bootimg-dir /home/trz/yocto/build/tmp/sysroots/crownbay/usr/share 621 --bootimg-dir tmp/sysroots/qemux86-64/usr/share
622 --kernel-dir /home/trz/yocto/build/tmp/sysroots/crownbay/usr/src/kernel 622 --kernel-dir tmp/deploy/images/qemux86-64
623 --native-sysroot /home/trz/yocto/build/tmp/sysroots/x86_64-linux 623 --native-sysroot tmp/sysroots/x86_64-linux
624 624
625 Creating image(s)... 625 Creating image(s)...
626 626
627 Info: The new image(s) can be found here: 627 Info: The new image(s) can be found here:
628 /home/trz/testwic/build/test-201309260032-sda.direct 628 out/build/test-201507211313-sda.direct
629
630 The following build artifacts were used to create the image(s):
631 ROOTFS_DIR: tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
632 BOOTIMG_DIR: tmp/sysroots/qemux86-64/usr/share
633 KERNEL_DIR: tmp/deploy/images/qemux86-64
634 NATIVE_SYSROOT: tmp/sysroots/x86_64-linux
635
636 The image(s) were created using OE kickstart file:
637 ./test.wks
638
639 Here is a content of test.wks:
640
641 part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
642 part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024
643
644 bootloader --timeout=0 --append="rootwait rootfstype=ext3 video=vesafb vga=0x318 console=tty0"
629 645
630 ...
631 646
632 Finally, here's an example of the actual partition language 647 Finally, here's an example of the actual partition language
633 commands used to generate the mkefidisk image i.e. these are the 648 commands used to generate the mkefidisk image i.e. these are the