diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-20 12:10:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-30 12:36:09 +0100 |
commit | 9badc1c640d356514f15ba6d34483e53ad6337c7 (patch) | |
tree | fdd7be829d84a96b42a0e7795c2244e56cdaec7f /meta/lib | |
parent | 5bcc423953754fd3bc0e971a1113a3e9aafef74f (diff) | |
download | poky-9badc1c640d356514f15ba6d34483e53ad6337c7.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.
(From OE-Core rev: fd6eba587e39142134aeb9044393c08a3f79d28c)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/image.py | 5 |
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): | |||
11 | (type, create_img_cmd)) | 11 | (type, create_img_cmd)) |
12 | 12 | ||
13 | try: | 13 | try: |
14 | subprocess.check_output(create_img_cmd, stderr=subprocess.STDOUT) | 14 | output = subprocess.check_output(create_img_cmd, |
15 | stderr=subprocess.STDOUT) | ||
15 | except subprocess.CalledProcessError as e: | 16 | except subprocess.CalledProcessError as e: |
16 | return("Error: The image creation script '%s' returned %d:\n%s" % | 17 | return("Error: The image creation script '%s' returned %d:\n%s" % |
17 | (e.cmd, e.returncode, e.output)) | 18 | (e.cmd, e.returncode, e.output)) |
18 | 19 | ||
20 | bb.note("Script output:\n%s" % output) | ||
21 | |||
19 | return None | 22 | return None |
20 | 23 | ||
21 | 24 | ||