diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-01-31 10:31:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 09:37:24 +0000 |
commit | 5479aa4869a4888ff8409d6d73b1eff2074f5127 (patch) | |
tree | 4571ed71d48e64fb15e16748a7c778ad649b1dfc /meta/classes/image.bbclass | |
parent | f33014f60722efd9ca7dd03aeee3dd46d8035616 (diff) | |
download | poky-5479aa4869a4888ff8409d6d73b1eff2074f5127.tar.gz |
image.bbclass: add a proper error message if hook script fails
(From OE-Core rev: 5e737d3c6e6546c1368e804f4c45ab25d8791ea3)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | 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 9b4dec8496..5cbf73aaae 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -10,6 +10,7 @@ inherit gzipnative | |||
10 | 10 | ||
11 | LICENSE = "MIT" | 11 | LICENSE = "MIT" |
12 | PACKAGES = "" | 12 | PACKAGES = "" |
13 | DEPENDS += "qemuwrapper-cross" | ||
13 | RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}" | 14 | RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}" |
14 | RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}" | 15 | RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}" |
15 | 16 | ||
@@ -197,6 +198,9 @@ run_intercept_scriptlets () { | |||
197 | echo "> Executing $script" | 198 | echo "> Executing $script" |
198 | chmod +x $script | 199 | chmod +x $script |
199 | ./$script | 200 | ./$script |
201 | if [ $? -ne 0 ]; then | ||
202 | echo "ERROR: intercept script \"$script\" failed!" | ||
203 | fi | ||
200 | done | 204 | done |
201 | fi | 205 | fi |
202 | } | 206 | } |