diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-12-22 16:19:17 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-15 15:51:39 +0000 |
commit | 9c4b61e919dddf8db297cfd49edeebd98f755a93 (patch) | |
tree | f988ef45ecf4faa29fc51e9f41ea28f3be7e56bb /meta | |
parent | 4c07dd2172dba9bf4e0ec9d70b882ed6b4075ad9 (diff) | |
download | poky-9c4b61e919dddf8db297cfd49edeebd98f755a93.tar.gz |
classes/populate_sdk_ext: error out of install if buildtools install fails
If the installation of buildtools fails then we should fail the entire
installation instead of blindly continuing on.
(From OE-Core master rev: 34bb63e6c72fb862e0ef0d2b26e1bfddaf7ddb99)
(From OE-Core rev: 696979ef39fbd85fa74cfb4a0cbee49b045e2d92)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 8601c78410..f5597f4782 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -219,7 +219,7 @@ SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_preinst}" | |||
219 | sdk_ext_postinst() { | 219 | sdk_ext_postinst() { |
220 | printf "\nExtracting buildtools...\n" | 220 | printf "\nExtracting buildtools...\n" |
221 | cd $target_sdk_dir | 221 | cd $target_sdk_dir |
222 | printf "buildtools\ny" | ./*buildtools-nativesdk-standalone* > /dev/null | 222 | printf "buildtools\ny" | ./*buildtools-nativesdk-standalone* > /dev/null || ( printf 'ERROR: buildtools installation failed\n' ; exit 1 ) |
223 | 223 | ||
224 | # Make sure when the user sets up the environment, they also get | 224 | # Make sure when the user sets up the environment, they also get |
225 | # the buildtools-tarball tools in their path. | 225 | # the buildtools-tarball tools in their path. |