summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2012-12-13 15:43:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-04 13:18:27 +0000
commit996c3f80baae8664c72910e0d21d59af415e0ed7 (patch)
tree1ab97f2105b0b8edda665576825c2ab25f270c78 /meta/classes/kernel-yocto.bbclass
parent8d4b82e716ac9addd928182b7a55c626f49e8ad4 (diff)
downloadpoky-996c3f80baae8664c72910e0d21d59af415e0ed7.tar.gz
kernel-yocto: make configuration audit details debug only
The details of the kernel configuration audit are typically a debug action, so should be moved to bb.debug(). But in order to maintain visibility of the results, a reference to the log file is provided in the standard message. (From OE-Core rev: 9ab80ad88d34622a81670cdc45cc3275fc3ebabe) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index aaee441979..b336e43ffe 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -207,7 +207,7 @@ do_kernel_configme() {
207python do_kernel_configcheck() { 207python do_kernel_configcheck() {
208 import re, string, sys, commands 208 import re, string, sys, commands
209 209
210 bb.plain("NOTE: validating kernel configuration") 210 bb.plain("NOTE: validating kernel config, see log.do_kernel_configcheck for details")
211 211
212 # if KMETA isn't set globally by a recipe using this routine, we need to 212 # if KMETA isn't set globally by a recipe using this routine, we need to
213 # set the default to 'meta'. Otherwise, kconf_check is not passed a valid 213 # set the default to 'meta'. Otherwise, kconf_check is not passed a valid
@@ -218,7 +218,11 @@ python do_kernel_configcheck() {
218 cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta) 218 cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta)
219 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) 219 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd))
220 220
221 bb.plain( "%s" % result ) 221 config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1
222 if config_check_visibility == 1:
223 bb.debug( 1, "%s" % result )
224 else:
225 bb.note( "%s" % result )
222} 226}
223 227
224# Ensure that the branches (BSP and meta) are on the locations specified by 228# Ensure that the branches (BSP and meta) are on the locations specified by