arm-autonomy: arm-autonomy-host-image-minimal: Abort on copy fail

If the guest image copy fails we need to abort the do_image execution.

Change-Id: I3785a0828e271ed27eb7f9212804b5b9b39f79ac
Issue-Id: SCM-990
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Diego Sueiro authored and Jon Mason committed 2020-05-08 10:22:29 -04:00
1 parent b5381e5a7b
commit 6d4c3484b3
1 file changed
+2 -1
@@ -112,7 +112,8 @@ python add_extern_guests () {
# Add file extension if not there
if not dstname.endswith('.xenguest'):
dstname += '.xenguest'
bb.utils.copyfile(path, guestdir + '/' + dstname)
if not bb.utils.copyfile(path, guestdir + '/' + dstname):
bb.fatal("Fail to copy Guest file " + path)
}
IMAGE_PREPROCESS_COMMAND += "add_extern_guests; "