diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2016-01-06 14:42:48 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-03-02 14:47:23 -0500 |
commit | fe4106ca0d81fb0dd30c82a2c4a45c38f9694ad6 (patch) | |
tree | 1554ed17cc6dd03d6e0e517acbbf3785f1d8db44 /meta-oe/conf | |
parent | 0762fdd1f57e68374454cc43e7047bd99063e683 (diff) | |
download | meta-openembedded-fe4106ca0d81fb0dd30c82a2c4a45c38f9694ad6.tar.gz |
waf-samba.bbclass: add cross-answers option and files
--cross-execute uses qemu to run cross-compiled binaries,
it works fine for qemu supported targets, but it definitely
will fail if the target is not supported by qemu. So we need
to use the cross-answers option.
Added three methods and set 'answer' as default:
1. answers:
Only --cross-answers - try the cross-answers file, and if
there's no corresponding answer, add to the file and mark
the configure process as unfinished.
2. exec:
Only --cross-execute - get the answer from cross-execute,
an emulator (qemu) is used to run cross-compiled binaries.
3. both:
Try the cross-answers file first, and if there is no
corresponding answer, use cross-execute to get an answer,
and add that answer to the file.
The cross files in are all generated by qemu when the 'both'
mode is enabled, and are placed in a common directory
LAYERDIR/files/waf-cross-answers which is set as
WAF_CROSS_ANSWERS_PATH in layer.conf of meta-oe,
so that we don't have to put copies of them for each
package (there are 5 packages inerit waf-samba for now)
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-oe/conf')
-rw-r--r-- | meta-oe/conf/layer.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/conf/layer.conf b/meta-oe/conf/layer.conf index 318213844..723796459 100644 --- a/meta-oe/conf/layer.conf +++ b/meta-oe/conf/layer.conf | |||
@@ -30,6 +30,7 @@ LAYERVERSION_openembedded-layer = "1" | |||
30 | LAYERDEPENDS_openembedded-layer = "core" | 30 | LAYERDEPENDS_openembedded-layer = "core" |
31 | 31 | ||
32 | LICENSE_PATH += "${LAYERDIR}/licenses" | 32 | LICENSE_PATH += "${LAYERDIR}/licenses" |
33 | WAF_CROSS_ANSWERS_PATH = "${LAYERDIR}/files/waf-cross-answers" | ||
33 | 34 | ||
34 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ | 35 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ |
35 | mplayer-common \ | 36 | mplayer-common \ |