]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.py: add script output to the rootfs log
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 20 Aug 2015 09:10:35 +0000 (12:10 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:36 +0000 (12:34 +0100)
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>
meta/lib/oe/image.py

index d9121fc907eb38082f671496379e4c1285312c84..a2f94a1cd44705fab6fb1621f1356b6d6eafb6ec 100644 (file)
@@ -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