aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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