summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
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}