summaryrefslogtreecommitdiffstats
path: root/meta/classes/staging.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-10-10 01:54:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-06 22:32:22 +0000
commitd0bed311890b8187fd3eec4d7173bb1667ff2413 (patch)
tree7ae62e7da78ee335486bc0542c72ab7f726eedf3 /meta/classes/staging.bbclass
parentac37bca5caa25575e75ccea3c76520c6ef114ea2 (diff)
downloadpoky-d0bed311890b8187fd3eec4d7173bb1667ff2413.tar.gz
staging.bbclass: make subprocess.check_output() capture stderr
This is very useful for debugging. The similar to testsdk.bbclass. (From OE-Core rev: de30b61b87047f61de4629f8e5bd87598de7fd0c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/staging.bbclass')
-rw-r--r--meta/classes/staging.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index c479bd93ea..1b9e84d97e 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -171,7 +171,7 @@ def staging_processfixme(fixme, target, recipesysroot, recipesysrootnative, d):
171 fixme_path = d.getVar(fixmevar) 171 fixme_path = d.getVar(fixmevar)
172 cmd += " -e 's:FIXME_%s:%s:g'" % (fixmevar, fixme_path) 172 cmd += " -e 's:FIXME_%s:%s:g'" % (fixmevar, fixme_path)
173 bb.debug(2, cmd) 173 bb.debug(2, cmd)
174 subprocess.check_output(cmd, shell=True) 174 subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
175 175
176 176
177def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d): 177def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
@@ -228,7 +228,7 @@ def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
228 228
229 staging_processfixme(fixme, targetdir, targetsysroot, nativesysroot, d) 229 staging_processfixme(fixme, targetdir, targetsysroot, nativesysroot, d)
230 for p in postinsts: 230 for p in postinsts:
231 subprocess.check_output(p, shell=True) 231 subprocess.check_output(p, shell=True, stderr=subprocess.STDOUT)
232 232
233# 233#
234# Manifests here are complicated. The main sysroot area has the unpacked sstate 234# Manifests here are complicated. The main sysroot area has the unpacked sstate
@@ -576,7 +576,7 @@ python extend_recipe_sysroot() {
576 staging_processfixme(fixme[f], multilibs[f].getVar("RECIPE_SYSROOT"), recipesysroot, recipesysrootnative, d) 576 staging_processfixme(fixme[f], multilibs[f].getVar("RECIPE_SYSROOT"), recipesysroot, recipesysrootnative, d)
577 577
578 for p in postinsts: 578 for p in postinsts:
579 subprocess.check_output(p, shell=True) 579 subprocess.check_output(p, shell=True, stderr=subprocess.STDOUT)
580 580
581 for dep in manifests: 581 for dep in manifests:
582 c = setscenedeps[dep][0] 582 c = setscenedeps[dep][0]