]> code.ossystems Code Review - openembedded-core.git/commit
bootimg: remove previous FATIMG before creating a new one
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Wed, 15 Jul 2015 23:56:59 +0000 (16:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Jul 2015 22:25:01 +0000 (23:25 +0100)
commita0d4511d358d427e5271420a74c26cc862c5ed74
tree28b296477779410e207eabf64b99930535537f22
parent72192d55cc6b213b6304dc805566c60a78d96b02
bootimg: remove previous FATIMG before creating a new one

Since version 3.0.0 of dosfstools, mkdosfs opens the to-be-filesystem
file with O_EXCL. Since the filesystem is also opened with O_CREAT,
the -C option of mkdosfs can only succeed if FATIMG does not exists.
Thus, delete any previous FATIMG file. The file can be safely deleted
as we are inside build_fat_img because we want to create an new
FATIMG.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/bootimg.bbclass