]> code.ossystems Code Review - meta-freescale.git/commit
image_types_fsl: Fix boot.img overwrite error
authorGary Thomas <gary@mlbassoc.com>
Mon, 15 Jun 2015 14:41:33 +0000 (08:41 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 15 Jun 2015 15:12:23 +0000 (12:12 -0300)
commit2fe7195eefe7167f7bc47e18c08e56c979adebdb
tree1d5368472a0c8f3c91e51575549b3ff6cb28ae27
parent753cce319da4af5138fb023fecba86551aada7b9
image_types_fsl: Fix boot.img overwrite error

Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
it an error to overwrite an image using mkfs.vfat:
  mkfs.vfat: file XXXX/tmp/work/nitrogen6x-poky-linux-gnueabi/network-demo-image/1.0-r0/boot.img already exists
  mkfs.fat 3.0.28 (2015-05-16)
  WARNING: exit code 1 from a shell command.

This patch fixes the problem by removing any old/stale images before
trying to create the VFAT file system images.

Change-Id: I74e02fd512b43315b29698f534192632d7780df2
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/classes/image_types_fsl.bbclass