* [PATCH] base: Fixup PACKAGECONFIG incorrect mappings
@ 2016-04-01 17:02 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-04-01 17:02 UTC (permalink / raw)
To: openembedded-core
PACKAGECONFIG doesn't work in cross-canadian recipes at the moment as
DEPENDS are prepended with mlprefix.
A recipe is either nativesdk, native or target so adjust the if
statements accordingly, use inherits_class for more accurate recipe
classification and add cross-canadian support.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 85d6bc4..02429dd 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -398,11 +398,11 @@ python () {
if not appends:
return
if varname.find("DEPENDS") != -1:
- if pn.startswith("nativesdk-"):
+ if bb.data.inherits_class('nativesdk', d) or bb.data.inherits_class('cross-canadian', d) :
appends = expandFilter(appends, "", "nativesdk-")
- if pn.endswith("-native"):
+ elif bb.data.inherits_class('native', d):
appends = expandFilter(appends, "-native", "")
- if mlprefix:
+ elif mlprefix:
appends = expandFilter(appends, "", mlprefix)
varname = d.expand(varname)
d.appendVar(varname, " " + " ".join(appends))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-01 17:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 17:02 [PATCH] base: Fixup PACKAGECONFIG incorrect mappings Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox