mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
poky-image-minimal-directdisk: Add directdisk image example
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
16
meta/packages/images/poky-image-minimal-directdisk.bb
Normal file
16
meta/packages/images/poky-image-minimal-directdisk.bb
Normal file
@@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "Minimal Bootable Direct Disk Image"
|
||||
|
||||
inherit boot-directdisk
|
||||
|
||||
do_bootdirectdisk_prepend () {
|
||||
import bb
|
||||
fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True)
|
||||
if 'ext3' not in fstypes:
|
||||
bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES")
|
||||
}
|
||||
|
||||
ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-minimal-${MACHINE}.ext3"
|
||||
|
||||
do_bootdirectdisk[depends] += "poky-image-minimal:do_rootfs"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user