]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: add a proper error message if hook script fails
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Thu, 31 Jan 2013 08:31:49 +0000 (10:31 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 09:35:03 +0000 (09:35 +0000)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/image.bbclass

index 9b4dec84965402648e3842a6dcc827693343bc99..5cbf73aaae0a2973b870232cade4ae1ffdc95aa3 100644 (file)
@@ -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
 }