summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/native.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 4acc936ccd..5ca5c95b4d 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -132,7 +132,9 @@ python native_virtclass_handler () {
132 deps = bb.utils.explode_deps(deps) 132 deps = bb.utils.explode_deps(deps)
133 newdeps = [] 133 newdeps = []
134 for dep in deps: 134 for dep in deps:
135 if "-cross-" in dep: 135 if dep == pn:
136 continue
137 elif "-cross-" in dep:
136 newdeps.append(dep.replace("-cross", "-native")) 138 newdeps.append(dep.replace("-cross", "-native"))
137 elif not dep.endswith("-native"): 139 elif not dep.endswith("-native"):
138 newdeps.append(dep + "-native") 140 newdeps.append(dep + "-native")