[oe-commits] Laurentiu Palcu : image.bbclass: add a proper error message if hook script fails
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 6 09:38:28 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 5e737d3c6e6546c1368e804f4c45ab25d8791ea3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5e737d3c6e6546c1368e804f4c45ab25d8791ea3
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Thu Jan 31 10:31:49 2013 +0200
image.bbclass: add a proper error message if hook script fails
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/classes/image.bbclass | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9b4dec8..5cbf73a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -10,6 +10,7 @@ inherit gzipnative
LICENSE = "MIT"
PACKAGES = ""
+DEPENDS += "qemuwrapper-cross"
RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}"
RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}"
@@ -197,6 +198,9 @@ run_intercept_scriptlets () {
echo "> Executing $script"
chmod +x $script
./$script
+ if [ $? -ne 0 ]; then
+ echo "ERROR: intercept script \"$script\" failed!"
+ fi
done
fi
}
More information about the Openembedded-commits
mailing list