summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-12-22 16:19:15 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-28 09:25:12 +0000
commitfd84d0fe35b63e8f3c17ec0fa7cfb33e8567e8c0 (patch)
tree37c292677394607455ba74b7b40587de21861627
parenta4f496ae43d6c2698050d79b1f010cbc30ef901d (diff)
downloadpoky-fd84d0fe35b63e8f3c17ec0fa7cfb33e8567e8c0.tar.gz
classes/base: don't print header if BUILDCFG_HEADER not set
If we don't want a header printed at the start of task execution (which we'd prefer not to within the extensible SDK) we can accomplish that by clearing BUILDCFG_VARS and BUILDCFG_HEADER, but that was still printing a load of blank lines. To keep things simple, check if BUILDCFG_HEADER is set to something before printing a header. (From OE-Core rev: d896d77c1d0fc56ff7019bfee3cf06fbc3ede8f3) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f856298fb5..5fc92718a4 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -230,7 +230,8 @@ python base_eventhandler() {
230 statuslines.extend(flines) 230 statuslines.extend(flines)
231 231
232 statusheader = e.data.getVar('BUILDCFG_HEADER', True) 232 statusheader = e.data.getVar('BUILDCFG_HEADER', True)
233 bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines))) 233 if statusheader:
234 bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines)))
234 235
235 # This code is to silence warnings where the SDK variables overwrite the 236 # This code is to silence warnings where the SDK variables overwrite the
236 # target ones and we'd see dulpicate key names overwriting each other 237 # target ones and we'd see dulpicate key names overwriting each other