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>
(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