All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] binconfig: Use d.getVar
@ 2016-11-16 11:18 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-11-16 11:18 UTC (permalink / raw)
  To: openembedded-core

The bb.data API is deprecated, use d.getVar instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index cbc4173..8591308 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -21,8 +21,8 @@ def get_binconfig_mangle(d):
         s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
         s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
         s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
-        if bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d):
-            s += bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d)
+        if d.getVar("OE_BINCONFIG_EXTRA_MANGLE", False):
+            s += d.getVar("OE_BINCONFIG_EXTRA_MANGLE", True)
 
     return s
 




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-16 11:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 11:18 [PATCH] binconfig: Use d.getVar Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.