summaryrefslogtreecommitdiffstats
path: root/meta/classes/bootimg.bbclass
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2013-09-17 13:32:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-30 22:11:56 +0100
commit0ac89346dea9ae52aa9b8c11a6e6bf84ab82e3c9 (patch)
tree08e638462806ac3749bd2bc602124318a07428d5 /meta/classes/bootimg.bbclass
parentec9f4c3c25544e7613058113f283658ce604c937 (diff)
downloadpoky-0ac89346dea9ae52aa9b8c11a6e6bf84ab82e3c9.tar.gz
boot-directdisk.bbclass: Fix media generation problems with vmdk
The various populate methods need to accept a path as an argument vs using hard expanded variables. In the case of the boot-directdisk class it uses a different path for HDDDIR but it gets eclipsed by the the class definition at the point in time ${HDDDIR} gets expanded. The logical fix is to pass the arguments to the functions as opposed to using globally expanded variables from the class definitions. This patch changes 3 things: 1) syslinux_hddimg_populate takes an argument for the destination 2) syslinux_iso_populate takes an argument for the destination 3) populate is changed to boot_direct_populate because there was a conflict with it overriding the populate in bootimg.bbclass [YOCTO #3994] (From OE-Core rev: 63d164b755b984021f7e3cdba7280918ded6e821) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r--meta/classes/bootimg.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index c61c4e985e..395085d0ab 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -86,10 +86,10 @@ build_iso() {
86 populate ${ISODIR} 86 populate ${ISODIR}
87 87
88 if [ "${PCBIOS}" = "1" ]; then 88 if [ "${PCBIOS}" = "1" ]; then
89 syslinux_iso_populate 89 syslinux_iso_populate ${ISODIR}
90 fi 90 fi
91 if [ "${EFI}" = "1" ]; then 91 if [ "${EFI}" = "1" ]; then
92 grubefi_iso_populate 92 grubefi_iso_populate ${ISODIR}
93 build_fat_img ${EFIIMGDIR} ${ISODIR}/efi.img 93 build_fat_img ${EFIIMGDIR} ${ISODIR}/efi.img
94 fi 94 fi
95 95
@@ -203,10 +203,10 @@ build_hddimg() {
203 populate ${HDDDIR} 203 populate ${HDDDIR}
204 204
205 if [ "${PCBIOS}" = "1" ]; then 205 if [ "${PCBIOS}" = "1" ]; then
206 syslinux_hddimg_populate 206 syslinux_hddimg_populate ${HDDDIR}
207 fi 207 fi
208 if [ "${EFI}" = "1" ]; then 208 if [ "${EFI}" = "1" ]; then
209 grubefi_hddimg_populate 209 grubefi_hddimg_populate ${HDDDIR}
210 fi 210 fi
211 211
212 build_fat_img ${HDDDIR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg 212 build_fat_img ${HDDDIR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg