diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-28 14:22:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-29 22:53:23 +0100 |
commit | 608ceb14ebc144102a0f9c2d449d9cb54b8f77b9 (patch) | |
tree | ab294d98c5caaea0aa85fa1d760b1f27c80bf368 /meta/lib/oe/classextend.py | |
parent | 27d068d05239c26a3848eb101571acab54635e37 (diff) | |
download | openembedded-core-608ceb14ebc144102a0f9c2d449d9cb54b8f77b9.tar.gz openembedded-core-608ceb14ebc144102a0f9c2d449d9cb54b8f77b9.tar.bz2 openembedded-core-608ceb14ebc144102a0f9c2d449d9cb54b8f77b9.zip |
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@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/classextend.py')
-rw-r--r-- | meta/lib/oe/classextend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py index 8da87b771a..5107ecde26 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): |