diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-30 18:32:47 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-31 11:37:13 +0100 |
| commit | 45ebff42af85f5b798c1815975633f444c8a506f (patch) | |
| tree | 9747bd0f66e1a31f4e92f1ad35afbe88b8c7299f /scripts/lib/devtool/build-image.py | |
| parent | 61ecb6ce47fac3d1d4c2f346bafac710ed9da0d4 (diff) | |
| download | poky-45ebff42af85f5b798c1815975633f444c8a506f.tar.gz | |
devtool: build-image: generate notification callback
Added notification callback to <image>.bbapend to notify
user that image is modified by build-image plugin.
(From OE-Core rev: 53cb00b8af58c326e2a045cd6f8a04a24dc4c1b5)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/build-image.py')
| -rw-r--r-- | scripts/lib/devtool/build-image.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/devtool/build-image.py b/scripts/lib/devtool/build-image.py index 341ab28d8e..d246fad0e3 100644 --- a/scripts/lib/devtool/build-image.py +++ b/scripts/lib/devtool/build-image.py | |||
| @@ -55,6 +55,15 @@ def build_image(args, config, basepath, workspace): | |||
| 55 | with open(appendfile, 'w') as afile: | 55 | with open(appendfile, 'w') as afile: |
| 56 | afile.write('IMAGE_INSTALL_append = " %s"\n' % ' '.join(recipes)) | 56 | afile.write('IMAGE_INSTALL_append = " %s"\n' % ' '.join(recipes)) |
| 57 | 57 | ||
| 58 | # Generate notification callback devtool_warn_image_extended | ||
| 59 | afile.write('do_rootfs[prefuncs] += "devtool_warn_image_extended"\n\n') | ||
| 60 | afile.write("python devtool_warn_image_extended() {\n") | ||
| 61 | afile.write(" bb.plain('NOTE: %%s: building with additional '\n" | ||
| 62 | " 'packages due to \"devtool build-image\"'" | ||
| 63 | " %% d.getVar('PN', True))\n" | ||
| 64 | " bb.plain('NOTE: delete %%s to clear this' %% \\\n" | ||
| 65 | " '%s')\n" % os.path.relpath(appendfile, basepath)) | ||
| 66 | afile.write("}\n") | ||
| 58 | try: | 67 | try: |
| 59 | exec_build_env_command(config.init_path, basepath, | 68 | exec_build_env_command(config.init_path, basepath, |
| 60 | 'bitbake %s' % image, watch=True) | 69 | 'bitbake %s' % image, watch=True) |
