All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: trim duplicated whitespaces from BUILDCFG_VARS
@ 2017-08-21 11:43 liu.ming50
  2017-08-23  2:19 ` Andre McCurdy
  0 siblings, 1 reply; 7+ messages in thread
From: liu.ming50 @ 2017-08-21 11:43 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ming Liu

From: Ming Liu <peter.x.liu@external.atlascopco.com>

To give a example:
Before the change, in our build console, TUNE_FEATURES looks like:
...
TUNE_FEATURES     = "arm armv7a vfp  neon        cortexa8"
...

After the change:
...
TUNE_FEATURES     = "arm armv7a vfp neon cortexa8"
...

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.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 8c86977..07734ac 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -206,7 +206,7 @@ def buildcfg_vars(d):
     for var in statusvars:
         value = d.getVar(var)
         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)
-- 
2.7.4



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

end of thread, other threads:[~2017-08-23  8:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 11:43 [PATCH] base.bbclass: trim duplicated whitespaces from BUILDCFG_VARS liu.ming50
2017-08-23  2:19 ` Andre McCurdy
2017-08-23  2:33   ` Ming Liu
2017-08-23  7:50     ` Richard Purdie
2017-08-23  7:57       ` Ming Liu
2017-08-23  7:59         ` Richard Purdie
2017-08-23  8:10           ` Ming Liu

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.