summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:56:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:06:51 +0100
commite16faa55daca2a87190ce66dc98a37906ecf90af (patch)
tree1a332be79ff1d5a44b399e7180196b9d66ec261d /meta/classes/kernel-yocto.bbclass
parente1b5647d2c84579b65f54aa7ca07a41b1dd9470d (diff)
downloadpoky-e16faa55daca2a87190ce66dc98a37906ecf90af.tar.gz
sanity/patch.py: Remove commands module usage
The commands module is removed in python3. Use the subprocess module instead and the pipes module to replace the mkargs usage. (From OE-Core rev: e2e1dcd74bc45381baccf507c0309dd792229afe) 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 d1b4f10254..c81e70e678 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -254,7 +254,7 @@ do_kernel_configme() {
254} 254}
255 255
256python do_kernel_configcheck() { 256python do_kernel_configcheck() {
257 import re, string, sys, commands 257 import re, string, sys, subprocess
258 258
259 bb.plain("NOTE: validating kernel config, see log.do_kernel_configcheck for details") 259 bb.plain("NOTE: validating kernel config, see log.do_kernel_configcheck for details")
260 260
@@ -265,7 +265,7 @@ python do_kernel_configcheck() {
265 265
266 pathprefix = "export PATH=%s:%s; " % (d.getVar('PATH', True), "${S}/scripts/util/") 266 pathprefix = "export PATH=%s:%s; " % (d.getVar('PATH', True), "${S}/scripts/util/")
267 cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta) 267 cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta)
268 ret, result = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) 268 ret, result = subprocess.getstatusoutput("%s%s" % (pathprefix, cmd))
269 269
270 config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1 270 config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1
271 if config_check_visibility == 1: 271 if config_check_visibility == 1: