devtool: build-image: remove <image>.bbappend

Removed <image>.bbappend before generating it again as
it may cause tinfoil to fail due to its wrong content.

It's safe to do as <image>.bbappend is regenerated anyway.

(From OE-Core rev: 82c6452ca953eb32e2919d9f9e64497a15212be5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-08-30 18:41:38 +03:00
committed by Richard Purdie
parent 96726242f0
commit 2dac49db87

View File

@@ -50,6 +50,11 @@ def build_image(args, config, basepath, workspace):
appendfile = os.path.join(config.workspace_path, 'appends',
'%s.bbappend' % image)
# remove <image>.bbapend to make sure setup_tinfoil doesn't
# breake because of it
if os.path.isfile(appendfile):
os.unlink(appendfile)
recipes = _get_recipes(workspace, config)
if recipes:
with open(appendfile, 'w') as afile: