summaryrefslogtreecommitdiff
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-01-31 10:31:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 09:35:03 +0000
commit5e737d3c6e6546c1368e804f4c45ab25d8791ea3 (patch)
tree87df6b2a1f1bd51cbde488d21febb9eac7a22eb9 /meta/classes/image.bbclass
parent149a564bba7d3e1c2054ae6d908835ebd95b9084 (diff)
downloadopenembedded-core-5e737d3c6e6546c1368e804f4c45ab25d8791ea3.tar.gz
openembedded-core-5e737d3c6e6546c1368e804f4c45ab25d8791ea3.tar.bz2
openembedded-core-5e737d3c6e6546c1368e804f4c45ab25d8791ea3.zip
image.bbclass: add a proper error message if hook script fails
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9b4dec8496..5cbf73aaae 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
}