summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/classextend.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-01 12:01:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-02 10:24:50 +0100
commit768c89e306d0486acf8bc76cecef90436f6551b3 (patch)
tree0388f76ce3d79163eaf5f4261ca24752ca1918cf /meta/lib/oe/classextend.py
parent9a20fbe23f63d87e30b0291ae1dba863c0f5de31 (diff)
downloadpoky-768c89e306d0486acf8bc76cecef90436f6551b3.tar.gz
gcc/go: Drop crosssdk suffix from virtual provides to improve dependency handling
There is little point in having "crosssdk" suffex added to the virtual provider within gcc/go since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. This also allows removal of some of the MLPREFIX usage since again, the triplet also covers this. (From OE-Core rev: fe0206ba482d209b24e636d578aa68ba5e67ba1b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/classextend.py')
-rw-r--r--meta/lib/oe/classextend.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 8d7e428d8a..5161d33d2d 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -32,7 +32,8 @@ class ClassExtender(object):
32 if name.endswith("-" + self.extname): 32 if name.endswith("-" + self.extname):
33 name = name.replace("-" + self.extname, "") 33 name = name.replace("-" + self.extname, "")
34 if name.startswith("virtual/"): 34 if name.startswith("virtual/"):
35 if "binutils" in name: 35 # Assume large numbers of dashes means a triplet is present and we don't need to convert
36 if name.count("-") >= 3 and name.endswith(("-go", "-binutils", "-gcc", "-g++")):
36 return name 37 return name
37 subs = name.split("/", 1)[1] 38 subs = name.split("/", 1)[1]
38 if not subs.startswith(self.extname): 39 if not subs.startswith(self.extname):
@@ -152,9 +153,7 @@ class NativesdkClassExtender(ClassExtender):
152 def map_depends(self, dep): 153 def map_depends(self, dep):
153 if dep.startswith(self.extname): 154 if dep.startswith(self.extname):
154 return dep 155 return dep
155 if dep.endswith(("-gcc", "-g++")): 156 if dep.endswith(("-native", "-native-runtime")) or ('nativesdk-' in dep) or ('-cross-' in dep) or ('-crosssdk-' in dep):
156 return dep + "-crosssdk"
157 elif dep.endswith(("-native", "-native-runtime")) or ('nativesdk-' in dep) or ('-cross-' in dep) or ('-crosssdk-' in dep):
158 return dep 157 return dep
159 else: 158 else:
160 return self.extend_name(dep) 159 return self.extend_name(dep)