aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-bsp/classes
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2015-11-17 14:04:22 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2015-11-17 14:04:22 +0900
commit25d63df0476635bd3b11d906f23d25cf4695d215 (patch)
treee7b2f465c653e6f38cd8e3cdfeb224ec444686bc /meta-ivi-bsp/classes
parent99d366837d57d3556c44a65befc27cf8f76c9caa (diff)
downloadmeta-ivi-25d63df0476635bd3b11d906f23d25cf4695d215.tar.gz
meta-ivi-25d63df0476635bd3b11d906f23d25cf4695d215.tar.bz2
meta-ivi-25d63df0476635bd3b11d906f23d25cf4695d215.zip
sdcard_image.bbclass: fix build error when sdimg creation
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-bsp/classes')
-rw-r--r--meta-ivi-bsp/classes/sdcard_image.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-ivi-bsp/classes/sdcard_image.bbclass b/meta-ivi-bsp/classes/sdcard_image.bbclass
index 54af536..e76e3a1 100644
--- a/meta-ivi-bsp/classes/sdcard_image.bbclass
+++ b/meta-ivi-bsp/classes/sdcard_image.bbclass
@@ -68,6 +68,9 @@ parted ${SDIMG} print
# Create a vfat image with boot files
BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }')
+ if [ -f ${WORKDIR}/boot.img ]; then
+ rm -f ${WORKDIR}/boot.img
+ fi
mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img