mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 18:23:02 +01:00
Fixed:
IMAGE_FSTYPES_append = " hddimg"
$ bitbake -g core-image-minimal-initramfs
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
ERROR: Task /path/to/core-image-minimal-initramfs.bb (do_bootimg) has circular dependency on /path/to/core-image-minimal-initramfs.bb (do_image_complete)
ERROR: Command execution failed: Exited with 1
This is because IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}", and if
IMAGE_FSTYPES append hddimg, then core-image-minimal-initramfs.bb would
be circular dependency:
do_bootimg -> do_image_complete -> do_bootimg.
Now we check and error out.
(From OE-Core rev: 9b48bfbc2f60bdaa792a98485db68699e0635cbe)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
903 B
Plaintext
30 lines
903 B
Plaintext
|
|
AUTO_SYSLINUXCFG = "1"
|
|
INITRD_IMAGE ?= "core-image-minimal-initramfs"
|
|
INITRD ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz"
|
|
SYSLINUX_ROOT ?= "root=/dev/ram0"
|
|
SYSLINUX_TIMEOUT ?= "50"
|
|
SYSLINUX_LABELS ?= "boot install"
|
|
LABELS_append = " ${SYSLINUX_LABELS} "
|
|
|
|
ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.ext4"
|
|
|
|
do_bootimg[depends] += "${PN}:do_image_ext4"
|
|
|
|
inherit bootimg
|
|
|
|
IMAGE_TYPEDEP_live = "ext4"
|
|
IMAGE_TYPEDEP_iso = "ext4"
|
|
IMAGE_TYPEDEP_hddimg = "ext4"
|
|
IMAGE_TYPES_MASKED += "live hddimg iso"
|
|
|
|
python() {
|
|
image_b = d.getVar('IMAGE_BASENAME', True)
|
|
initrd_i = d.getVar('INITRD_IMAGE', True)
|
|
if image_b == initrd_i:
|
|
bb.error('INITRD_IMAGE %s cannot use image live, hddimg or iso.' % initrd_i)
|
|
bb.fatal('Check IMAGE_FSTYPES and INITRAMFS_FSTYPES settings.')
|
|
else:
|
|
d.appendVarFlag('do_bootimg', 'depends', ' %s:do_image_complete' % initrd_i)
|
|
}
|