[oe-commits] Ed Bartosh : devtool: build-image: add extra logging

git at git.openembedded.org git at git.openembedded.org
Mon Aug 31 10:37:34 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: f719e956a6263784963b6ae9514030a1a1dc2aeb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f719e956a6263784963b6ae9514030a1a1dc2aeb

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Sun Aug 30 18:37:58 2015 +0300

devtool: build-image: add extra logging

Added logger calls to show if image is modified by the
plugin or not.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>

---

 scripts/lib/devtool/build-image.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/lib/devtool/build-image.py b/scripts/lib/devtool/build-image.py
index d246fad..563563b 100644
--- a/scripts/lib/devtool/build-image.py
+++ b/scripts/lib/devtool/build-image.py
@@ -64,6 +64,12 @@ def build_image(args, config, basepath, workspace):
                         "    bb.plain('NOTE: delete %%s to clear this' %% \\\n"
                         "             '%s')\n" % os.path.relpath(appendfile, basepath))
             afile.write("}\n")
+
+            logger.info('Building image %s with the following '
+                        'additional packages: %s', image, ' '.join(recipes))
+    else:
+        logger.warning('No recipes in workspace, building image %s unmodified', image)
+
     try:
         exec_build_env_command(config.init_path, basepath,
                                'bitbake %s' % image, watch=True)



More information about the Openembedded-commits mailing list