summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/classextend.py
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-09-24 16:25:37 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-27 09:44:54 +0100
commitea220105609de30498f4ba72f5aeec180de4be2f (patch)
tree0a0e16e1d0fd6c03fe8ed2af964e24ab0c3e1a0c /meta/lib/oe/classextend.py
parent511f7f9d0422fe1a896361b53179c9f642c1fc0b (diff)
downloadpoky-ea220105609de30498f4ba72f5aeec180de4be2f.tar.gz
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>
Diffstat (limited to 'meta/lib/oe/classextend.py')
-rw-r--r--meta/lib/oe/classextend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 857a6c97ef..c982fb7c3f 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -50,7 +50,7 @@ class ClassExtender(object):
50 return newdata 50 return newdata
51 51
52 def map_depends(self, dep): 52 def map_depends(self, dep):
53 if dep.endswith(("-native", "-native-runtime")): 53 if dep.endswith(("-native", "-native-runtime")) or ('nativesdk-' in dep) or ('cross-canadian' in dep):
54 return dep 54 return dep
55 else: 55 else:
56 return self.extend_name(dep) 56 return self.extend_name(dep)
@@ -93,7 +93,7 @@ class ClassExtender(object):
93 93
94class NativesdkClassExtender(ClassExtender): 94class NativesdkClassExtender(ClassExtender):
95 def map_depends(self, dep): 95 def map_depends(self, dep):
96 if dep.endswith(("-native", "-native-runtime", "-cross")): 96 if dep.endswith(("-native", "-native-runtime", "-cross")) or ('nativesdk-' in dep):
97 return dep 97 return dep
98 elif dep.endswith(("-gcc-intermediate", "-gcc-initial", "-gcc", "-g++")): 98 elif dep.endswith(("-gcc-intermediate", "-gcc-initial", "-gcc", "-g++")):
99 return dep + "-crosssdk" 99 return dep + "-crosssdk"