summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-11-12 17:16:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 14:38:40 +0000
commitef5bad08de21390d82f3944e9fea806cfd1ba5ef (patch)
treede58d5af0ff994d22b9a87b5837ad2eb2ee0a6ce /meta
parentaf85900ba7d8ccfd83c6fe7a8ab6f0cca0070b1e (diff)
downloadpoky-ef5bad08de21390d82f3944e9fea806cfd1ba5ef.tar.gz
cross.bbclass: add virtclass handler
Allow use of BBCLASSEXTEND with 'cross' and use of virtclass-cross in recipes. (From OE-Core rev: 9624a817bb7d2d9fce10704b1c1a047f93260f36) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/cross.bbclass17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 5681ab92bb..8da30483f4 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -55,6 +55,23 @@ libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
55 55
56do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}" 56do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
57 57
58python cross_virtclass_handler () {
59 if not isinstance(e, bb.event.RecipePreFinalise):
60 return
61
62 classextend = e.data.getVar('BBCLASSEXTEND', True) or ""
63 if "cross" not in classextend:
64 return
65
66 pn = e.data.getVar("PN", True)
67 if not pn.endswith("-cross"):
68 return
69
70 bb.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-cross", e.data)
71}
72
73addhandler cross_virtclass_handler
74
58do_install () { 75do_install () {
59 oe_runmake 'DESTDIR=${D}' install 76 oe_runmake 'DESTDIR=${D}' install
60} 77}