From 6d4c3484b33bb94438db278e4cc6dc143e004a93 Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Thu, 7 May 2020 12:17:22 +0100 Subject: [PATCH] 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 Reviewed-by: Bertrand Marquis Signed-off-by: Jon Mason --- .../recipes-core/images/arm-autonomy-host-image-minimal.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb b/meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb index 3859f523..5b20fa09 100644 --- a/meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb +++ b/meta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb @@ -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; "