summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass2
-rw-r--r--meta/classes/cross.bbclass1
-rw-r--r--meta/classes/insane.bbclass3
-rw-r--r--meta/classes/package.bbclass11
4 files changed, 14 insertions, 3 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index ed5637ef3b..e5c13ae691 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -9,7 +9,7 @@ def autotools_dep_prepend(d):
9 return deps 9 return deps
10 deps += 'autoconf-native automake-native help2man-native ' 10 deps += 'autoconf-native automake-native help2man-native '
11 11
12 if not pn in ['libtool', 'libtool-native', 'libtool-cross']: 12 if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
13 deps += 'libtool-native ' 13 deps += 'libtool-native '
14 if not bb.data.inherits_class('native', d) \ 14 if not bb.data.inherits_class('native', d) \
15 and not bb.data.inherits_class('cross', d) \ 15 and not bb.data.inherits_class('cross', d) \
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 050d63e412..e19614f280 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -54,4 +54,3 @@ do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE
54do_install () { 54do_install () {
55 oe_runmake 'DESTDIR=${D}' install 55 oe_runmake 'DESTDIR=${D}' install
56} 56}
57
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index d56c9edcc2..5fb0d98baf 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -571,12 +571,13 @@ Rerun configure task after fixing this. The path was '%s'""" % root)
571 571
572 cnf = bb.data.getVar('EXTRA_OECONF', d, True) or "" 572 cnf = bb.data.getVar('EXTRA_OECONF', d, True) or ""
573 if "gettext" not in bb.data.getVar('P', d, True) and "gcc-runtime" not in bb.data.getVar('P', d, True) and "--disable-nls" not in cnf: 573 if "gettext" not in bb.data.getVar('P', d, True) and "gcc-runtime" not in bb.data.getVar('P', d, True) and "--disable-nls" not in cnf:
574 ml = d.getVar("MLPREFIX", True) or ""
574 if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross', d) or bb.data.inherits_class('crosssdk', d) or bb.data.inherits_class('nativesdk', d): 575 if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross', d) or bb.data.inherits_class('crosssdk', d) or bb.data.inherits_class('nativesdk', d):
575 gt = "gettext-native" 576 gt = "gettext-native"
576 elif bb.data.inherits_class('cross-canadian', d): 577 elif bb.data.inherits_class('cross-canadian', d):
577 gt = "gettext-nativesdk" 578 gt = "gettext-nativesdk"
578 else: 579 else:
579 gt = "virtual/gettext" 580 gt = "virtual/" + ml + "gettext"
580 deps = bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, True) or "") 581 deps = bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, True) or "")
581 if gt not in deps: 582 if gt not in deps:
582 for config in configs: 583 for config in configs:
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 076a532360..0caab6dcf9 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -168,6 +168,17 @@ python () {
168 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d) 168 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d)
169 else: 169 else:
170 d.setVar("PACKAGERDEPTASK", "") 170 d.setVar("PACKAGERDEPTASK", "")
171
172 multilib_archs = []
173 multilibs= d.getVar('MULTILIBS', True) or ""
174 if multilibs:
175 for ext in multilibs.split():
176 eext = ext.split(':')
177 if len(eext) > 1:
178 if eext[0] == 'multilib':
179 multilib_archs.append('ml' + eext[1])
180
181 d.setVar("MULTILIB_ARCHS", ' '.join(multilib_archs))
171} 182}
172 183
173def splitfile(file, debugfile, debugsrcdir, d): 184def splitfile(file, debugfile, debugsrcdir, d):