mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
multilib: Add support for cross-canadian multilib packages
Add support for the generation of cross-canadian packages.
Each cross-canadian package has:
PN = "pkg-cross-canadian-${TRANSLATED_TARGET_ARCH}"
in order for that to be evaluated properly with multilibs enabled, it was
necessary to detect both the presence of the cross-canadian packages and
then update the vars using the OVERRIDE for the multilib. Additional checks
were made to ensure that any dependency that sais "cross-canadian" did not
get prefixed with the MLPREFIX.
Also, make sure that even when building multilib cross-canadian packages,
we only use the single SDK PACKAGE_ARCH, we don't want or need variants.
(From OE-Core rev: 132a182e2f6c330aa645de42c1aeb386e43bddd3)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
511f7f9d04
commit
ea22010560
@@ -18,6 +18,13 @@ python multilib_virtclass_handler () {
|
||||
e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
|
||||
return
|
||||
|
||||
if bb.data.inherits_class('cross-canadian', e.data):
|
||||
e.data.setVar("MLPREFIX", variant + "-")
|
||||
override = ":virtclass-multilib-" + variant
|
||||
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)
|
||||
bb.data.update_data(e.data)
|
||||
return
|
||||
|
||||
if bb.data.inherits_class('native', e.data):
|
||||
raise bb.parse.SkipPackage("We can't extend native recipes")
|
||||
|
||||
@@ -69,12 +76,16 @@ python __anonymous () {
|
||||
if bb.data.inherits_class('image', d) or bb.data.inherits_class('populate_sdk_base', d):
|
||||
return
|
||||
|
||||
clsextend.map_depends_variable("DEPENDS")
|
||||
clsextend.map_variable("PROVIDES")
|
||||
|
||||
if bb.data.inherits_class('cross-canadian', d):
|
||||
return
|
||||
|
||||
clsextend.rename_packages()
|
||||
clsextend.rename_package_variables((d.getVar("PACKAGEVARS", True) or "").split())
|
||||
|
||||
clsextend.map_depends_variable("DEPENDS")
|
||||
clsextend.map_packagevars()
|
||||
clsextend.map_variable("PROVIDES")
|
||||
clsextend.map_regexp_variable("PACKAGES_DYNAMIC")
|
||||
clsextend.map_variable("PACKAGE_INSTALL")
|
||||
clsextend.map_variable("INITSCRIPT_PACKAGES")
|
||||
@@ -90,7 +101,7 @@ python do_package_qa_multilib() {
|
||||
for i in values:
|
||||
if i.startswith('virtual/'):
|
||||
i = i[len('virtual/'):]
|
||||
if (not i.startswith('kernel-module')) and (not i.startswith(mlprefix)):
|
||||
if (not i.startswith('kernel-module')) and (not i.startswith(mlprefix)) and (not 'cross-canadian' in i):
|
||||
candidates.append(i)
|
||||
if len(candidates) > 0:
|
||||
bb.warn("Multilib QA Issue: %s package %s - suspicious values '%s' in %s"
|
||||
@@ -109,4 +120,3 @@ python do_package_qa_multilib() {
|
||||
check_mlprefix(pkg, 'RREPLACES', ml)
|
||||
check_mlprefix(pkg, 'RCONFLICTS', ml)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user