[OE-core] [PATCH 1/4] lib/oe/classextend: Fix nativesdk double name mapping

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jul 28 13:22:53 UTC 2015


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>

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-core mailing list