[oe-commits] Richard Purdie : lib/oe/classextend: Fix nativesdk double name mapping
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 29 23:29:30 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 608ceb14ebc144102a0f9c2d449d9cb54b8f77b9
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=608ceb14ebc144102a0f9c2d449d9cb54b8f77b9
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Tue Jul 28 14:22:53 2015 +0100
lib/oe/classextend: Fix nativesdk double name mapping
Handle the case a name has already been extended in the nativesdk case
(avoids double name extensions which can happen with nativesdk-gcc).
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/classextend.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 8da87b7..5107ecd 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -110,6 +110,8 @@ class ClassExtender(object):
class NativesdkClassExtender(ClassExtender):
def map_depends(self, dep):
+ if dep.startswith(self.extname):
+ return dep
if dep.endswith(("-gcc-initial", "-gcc", "-g++")):
return dep + "-crosssdk"
elif dep.endswith(("-native", "-native-runtime")) or ('nativesdk-' in dep) or ('-cross-' in dep) or ('-crosssdk-' in dep):
More information about the Openembedded-commits
mailing list