diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2011-09-16 18:38:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-22 03:06:49 +0100 |
commit | 92e0d61f5bf15ca4eb262dfa3c533f9209a87915 (patch) | |
tree | 6e243402ee091161dca46f38b8e59e3608db3ed6 | |
parent | 40b52d9ed9b7b39bc86b3c87ae60fa6359cac265 (diff) | |
download | openembedded-core-92e0d61f5bf15ca4eb262dfa3c533f9209a87915.tar.gz openembedded-core-92e0d61f5bf15ca4eb262dfa3c533f9209a87915.tar.bz2 openembedded-core-92e0d61f5bf15ca4eb262dfa3c533f9209a87915.tar.xz openembedded-core-92e0d61f5bf15ca4eb262dfa3c533f9209a87915.zip |
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.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 0f9226757..2205686dd 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass @@ -105,7 +105,7 @@ python do_kernel_configcheck() { bb.plain("NOTE: validating kernel configuration") pathprefix = "export PATH=%s; " % bb.data.getVar('PATH', d, True) - cmd = bb.data.expand("cd ${B}/..; kconf_check -${LINUX_KERNEL_TYPE}-config- ${B} ${S} ${B} ${KBRANCH}",d ) + cmd = bb.data.expand("cd ${B}/..; kconf_check -config- ${B} ${S} ${B} ${KBRANCH}",d ) ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) bb.plain( "%s" % result ) |