diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-06-11 16:38:22 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-18 11:07:58 +0100 |
commit | 4699d29ac2a1a8607970638df9cf6478b1c02331 (patch) | |
tree | b580b6c62475011d6e1710e65d935235cbd679e9 /meta/recipes-devtools/qemu | |
parent | bdfca89b8025dd1fe7c09445c178993dfa9cdab9 (diff) | |
download | poky-4699d29ac2a1a8607970638df9cf6478b1c02331.tar.gz |
package_manager.py: rework postinst_intercept failures
Previously a warning was printed regardless of context and nature
of the failure, and because it was only a warning, it was mostly ignored.
Now, the following is considered when a failure happens:
1) whether we are installing packages into a target image, or populating
a SDK with host or target packages.
2) whether the failure was due to qemu not supporting the target machine.
Accordingly, warnings, notes, and failures are printed, and postponing
to first boot happens if possible.
(From OE-Core rev: a335e78672b1e1ae3ea6427f6a805218e513bb52)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r-- | meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb index 4b1b46d0bb..4aada5232d 100644 --- a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb +++ b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb | |||
@@ -20,6 +20,11 @@ do_install () { | |||
20 | #!/bin/sh | 20 | #!/bin/sh |
21 | set -x | 21 | set -x |
22 | 22 | ||
23 | if [ ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d)} = False ]; then | ||
24 | echo "qemuwrapper: qemu usermode is not supported" | ||
25 | fi | ||
26 | |||
27 | |||
23 | $qemu_binary $qemu_options "\$@" | 28 | $qemu_binary $qemu_options "\$@" |
24 | EOF | 29 | EOF |
25 | 30 | ||