]> code.ossystems Code Review - openembedded-core.git/commitdiff
image classes: use PN for depends, not IMAGE_BASE_NAME
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 21 Nov 2012 14:44:34 +0000 (15:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Nov 2012 15:12:04 +0000 (15:12 +0000)
Some images override IMAGE_BASE_NAME in the recipe causing targets using image-{live,vmdk} to fail.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-live.bbclass
meta/classes/image-vmdk.bbclass

index 2f3261ec162ec7eac82caf2a64039ca3d5c49f23..bfb59f808baa95df4d3a9f38900250ba64800e33 100644 (file)
@@ -10,6 +10,6 @@ LABELS_append = " ${SYSLINUX_LABELS} "
 ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
 
 do_bootimg[depends] += "${INITRD_IMAGE}:do_rootfs"
-do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs"
+do_bootimg[depends] += "${PN}:do_rootfs"
 
 inherit bootimg
index 736d1d79b29860a3511cccdda62d29064068542b..6f7df3f3eeb96b84914ac78116e734e953f7ecaf 100644 (file)
@@ -8,7 +8,7 @@ SYSLINUX_LABELS = "boot"
 LABELS_append = " ${SYSLINUX_LABELS} "
 
 # need to define the dependency and the ROOTFS for directdisk
-do_bootdirectdisk[depends] += "${IMAGE_BASENAME}:do_rootfs"
+do_bootdirectdisk[depends] += "${PN}:do_rootfs"
 ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
 
 # creating VMDK relies on having a live hddimg so ensure we