summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/classextend.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-08 15:49:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-02 10:24:50 +0100
commit9a20fbe23f63d87e30b0291ae1dba863c0f5de31 (patch)
treecdfaf5f62cae750c98dc86c82490559f74776896 /meta/lib/oe/classextend.py
parentaf405613151c730f5d5d3f5c9df25721671e19ba (diff)
downloadpoky-9a20fbe23f63d87e30b0291ae1dba863c0f5de31.tar.gz
binutils: Drop crosssdk suffix from virtual provides to improve dependency handling
There is little point in having "crosssdk" suffex added to the virtual provider within binutils since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. (From OE-Core rev: 6856fc5c848cc2564bebe03a007ef109f46d0adb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/classextend.py')
-rw-r--r--meta/lib/oe/classextend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 2013b29711..8d7e428d8a 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -32,6 +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:
36 return name
35 subs = name.split("/", 1)[1] 37 subs = name.split("/", 1)[1]
36 if not subs.startswith(self.extname): 38 if not subs.startswith(self.extname):
37 return "virtual/" + self.extname + "-" + subs 39 return "virtual/" + self.extname + "-" + subs