summaryrefslogtreecommitdiff
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:55:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 16:05:02 +0100
commit2253e9f12734c6e6aa489942b5e4628eca1fa29d (patch)
treecdd9bc62026e1eff49569f025a95fcecde88c78b /meta/classes/kernel-yocto.bbclass
parentb9a1b9ad55c0f9fec082ffa37e576d8fd664becd (diff)
downloadopenembedded-core-2253e9f12734c6e6aa489942b5e4628eca1fa29d.tar.gz
openembedded-core-2253e9f12734c6e6aa489942b5e4628eca1fa29d.tar.bz2
openembedded-core-2253e9f12734c6e6aa489942b5e4628eca1fa29d.zip
classes/lib: Fix getcmdstatus breakage
I mistakenly thought subprocess had getcmdstatus in python 2. It doesn't so lets add a wrapper and have this work in both worlds. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index c81e70e678..d513ad2b63 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -254,7 +254,7 @@ do_kernel_configme() {
}
python do_kernel_configcheck() {
- import re, string, sys, subprocess
+ import re, string, sys
bb.plain("NOTE: validating kernel config, see log.do_kernel_configcheck for details")
@@ -265,7 +265,7 @@ python do_kernel_configcheck() {
pathprefix = "export PATH=%s:%s; " % (d.getVar('PATH', True), "${S}/scripts/util/")
cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta)
- ret, result = subprocess.getstatusoutput("%s%s" % (pathprefix, cmd))
+ ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd))
config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1
if config_check_visibility == 1: