diff options
Diffstat (limited to 'yocto-poky/meta-selftest/recipes-test/images')
3 files changed, 33 insertions, 0 deletions
diff --git a/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb b/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb new file mode 100644 index 000000000..f17094c5d --- /dev/null +++ b/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb @@ -0,0 +1,9 @@ +SUMMARY = "An image used during oe-selftest tests" + +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} dropbear" +IMAGE_FEATURES = "debug-tweaks" + +IMAGE_LINGUAS = " " + +inherit core-image + diff --git a/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb b/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb new file mode 100644 index 000000000..073c569fe --- /dev/null +++ b/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb @@ -0,0 +1,14 @@ +SUMMARY = "An example of partitioned image." + +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" + +IMAGE_FSTYPES = "wic.bz2" +RM_OLD_IMAGE = "1" + +# core-image-minimal is referenced in .wks, so we need its rootfs +# to be ready before our rootfs +do_rootfs[depends] += "core-image-minimal:do_rootfs" + +IMAGE_ROOTFS_EXTRA_SPACE = "2000" + +inherit image diff --git a/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks b/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks new file mode 100644 index 000000000..29cd8f2c8 --- /dev/null +++ b/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks @@ -0,0 +1,10 @@ +# short-description: Example of partitioned image with complex layout +# long-description: This image contains boot partition and 3 rootfs partitions +# created from core-image-minimal and wic-image-minimal image recipes. + +part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 +part / --source rootfs --ondisk sda --fstype=ext2 --label platform --align 1024 +part /core --source rootfs --rootfs-dir=core-image-minimal --ondisk sda --fstype=ext2 --label core --align 1024 +part /backup --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext2 --label backup --align 1024 + +bootloader --timeout=0 --append="rootwait console=tty0" |