aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-20 12:10:35 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:34:36 +0100
commitfd6eba587e39142134aeb9044393c08a3f79d28c (patch)
tree0f77c39ad065766d594f77f8cb196fb57020bb96 /meta/lib
parentaf37bb8ae71c4f932e2126bb620b3fb2b11cc466 (diff)
downloadopenembedded-core-contrib-fd6eba587e39142134aeb9044393c08a3f79d28c.tar.gz
image.py: add script output to the rootfs log
Let's add output of image creation script to the bitbake log as it can contain useful information. One good example of such an information is wic report about artifacts and .wks file used for image creation. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/image.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index d9121fc907..a2f94a1cd4 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -11,11 +11,14 @@ def generate_image(arg):
(type, create_img_cmd))
try:
- subprocess.check_output(create_img_cmd, stderr=subprocess.STDOUT)
+ output = subprocess.check_output(create_img_cmd,
+ stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
return("Error: The image creation script '%s' returned %d:\n%s" %
(e.cmd, e.returncode, e.output))
+ bb.note("Script output:\n%s" % output)
+
return None