[oe-commits] Ed Bartosh : image.py: add script output to the rootfs log
git at git.openembedded.org
git at git.openembedded.org
Sun Aug 30 11:49:39 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: fd6eba587e39142134aeb9044393c08a3f79d28c
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fd6eba587e39142134aeb9044393c08a3f79d28c
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date: Thu Aug 20 12:10:35 2015 +0300
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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/lib/oe/image.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index d9121fc..a2f94a1 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
More information about the Openembedded-commits
mailing list