summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2011-09-16 18:38:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-22 04:50:07 +0100
commit4ea42b64a8b569f9ab1aff1b96735c4d997dd6eb (patch)
tree08200c3a096b3f183ed61c53633c2c55117ac4df /meta
parente7f40dd8f20f06ec20391e143b30dc6854acb2eb (diff)
downloadpoky-4ea42b64a8b569f9ab1aff1b96735c4d997dd6eb.tar.gz
linux-yocto: simplify kernel configuration check expression
kernel configuration validation takes place between two files. An unprocessed configuration file (which is all the options found in the various configuration fragments) and the final .config produced by the lkc. The unprocessed configuration file's name historically is based on the name of the branch that was used to build the BSP. But with the ability to map machine names to arbitrary branches, this is no longer always true. Searching for the pattern *-config-* in the meta subdirectory will only match the config file, and frees the config validation phase from being concerned with what branch was used to build the BSP. (From OE-Core rev: 92e0d61f5bf15ca4eb262dfa3c533f9209a87915) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-yocto.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 0f92267570..2205686ddd 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -105,7 +105,7 @@ python do_kernel_configcheck() {
105 bb.plain("NOTE: validating kernel configuration") 105 bb.plain("NOTE: validating kernel configuration")
106 106
107 pathprefix = "export PATH=%s; " % bb.data.getVar('PATH', d, True) 107 pathprefix = "export PATH=%s; " % bb.data.getVar('PATH', d, True)
108 cmd = bb.data.expand("cd ${B}/..; kconf_check -${LINUX_KERNEL_TYPE}-config- ${B} ${S} ${B} ${KBRANCH}",d ) 108 cmd = bb.data.expand("cd ${B}/..; kconf_check -config- ${B} ${S} ${B} ${KBRANCH}",d )
109 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) 109 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd))
110 110
111 bb.plain( "%s" % result ) 111 bb.plain( "%s" % result )