summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/native.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 1fb6e66ced..91ea9b547d 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -119,5 +119,15 @@ python __anonymous () {
119 else: 119 else:
120 bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep)) 120 bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
121 bb.data.setVar("DEPENDS", depends, d) 121 bb.data.setVar("DEPENDS", depends, d)
122 provides = bb.data.getVar("PROVIDES", d, True)
123 for prov in provides.split():
124 if prov.find(pn) != -1:
125 continue
126 if not prov.endswith("-native"):
127 if autoextend:
128 provides = provides.replace(prov, prov + "-native")
129 #else:
130 # bb.note("%s has rouge PROVIDES of %s which doesn't end in -sdk?" % (pn, prov))
131 bb.data.setVar("PROVIDES", provides, d)
122} 132}
123 133