All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: squash whitespace when printing BUILDCFG_VARS
@ 2016-11-28 22:23 Andre McCurdy
  2016-11-28 23:53 ` Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Andre McCurdy @ 2016-11-28 22:23 UTC (permalink / raw)
  To: openembedded-core

TUNE_FEATURES for ARM targets typically contains a lot of whitespace
due to refactoring in OE 2.1:

  http://git.openembedded.org/openembedded-core/commit/?id=f774b44fa007a2a756ada892ede832b1251d940c

Squash whitespace when displaying BUILDCFG_VARS in buildcfg_vars().

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/classes/base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 024fe43..c36c5ed 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -191,7 +191,7 @@ def buildcfg_vars(d):
     for var in statusvars:
         value = d.getVar(var, True)
         if value is not None:
-            yield '%-17s = "%s"' % (var, value)
+            yield '%-17s = "%s"' % (var, " ".join(value.split()))
 
 def buildcfg_neededvars(d):
     needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d)
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-29  0:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-28 22:23 [PATCH] base.bbclass: squash whitespace when printing BUILDCFG_VARS Andre McCurdy
2016-11-28 23:53 ` Christopher Larson
2016-11-29  0:30   ` Richard Purdie
2016-11-29  0:32   ` Andre McCurdy

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.