aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-08-22 16:36:53 +0800
committerRobert Yang <liezhi.yang@windriver.com>2018-08-23 16:05:42 +0800
commita0835110df531e0fadc6a769223556057c0e5c6c (patch)
tree379c0df03b595a84eff0eaedf7e1b5a552ef3335
parent39ef539345dd647979c04b7e461e0d07b9634e85 (diff)
downloadopenembedded-core-contrib-a0835110df531e0fadc6a769223556057c0e5c6c.tar.gz
kernel-yocto.bbclass: Clean up getstatusoutput usage
Replace usage of oe.utils.getstatusoutput() with direct subprocess calls. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/kernel-yocto.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 077a1ab8ef..8c5667d2f7 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -322,6 +322,7 @@ addtask kernel_configme before do_configure after do_patch
python do_kernel_configcheck() {
import re, string, sys
+ import subprocess
# if KMETA isn't set globally by a recipe using this routine, we need to
# set the default to 'meta'. Otherwise, kconf_check is not passed a valid
@@ -333,10 +334,10 @@ python do_kernel_configcheck() {
pathprefix = "export PATH=%s:%s; " % (d.getVar('PATH'), "${S}/scripts/util/")
cmd = d.expand("scc --configs -o ${S}/.kernel-meta")
- ret, configs = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd))
+ configs = subprocess.getoutput("%s%s" % (pathprefix, cmd))
cmd = d.expand("cd ${S}; kconf_check --report -o ${S}/%s/cfg/ ${B}/.config ${S} %s" % (kmeta,configs))
- ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd))
+ result = subprocess.getoutput("%s%s" % (pathprefix, cmd))
config_check_visibility = int(d.getVar("KCONF_AUDIT_LEVEL") or 0)
bsp_check_visibility = int(d.getVar("KCONF_BSP_AUDIT_LEVEL") or 0)