diff options
author | Parthiban Nallathambi <pn@denx.de> | 2018-02-20 16:49:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:35:40 +0000 |
commit | 8eb7e66246cf7c72dc68862f1c287029080a2e8a (patch) | |
tree | a3ee613773e6401274372ebf2dc0e39fcd64e85c /scripts/lib/wic/pluginbase.py | |
parent | 088b3b8c4c041caa73bdcfc2e897bd1d0f4f679b (diff) | |
download | poky-8eb7e66246cf7c72dc68862f1c287029080a2e8a.tar.gz |
wic: Add post operation hook for SourcePlugin
do_post_partition hook is needed if some operations like security signing
the parition needs to be done. source plugins can make use of this to implement
post operatiosn in do_post_partition. do_post_partition is called after
do_prepare_partition if present.
(From OE-Core rev: 5055489b9ab3fda32a285d0d165d080d11a4d432)
Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/pluginbase.py')
-rw-r--r-- | scripts/lib/wic/pluginbase.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib/wic/pluginbase.py b/scripts/lib/wic/pluginbase.py index c009820adc..686d2fee3b 100644 --- a/scripts/lib/wic/pluginbase.py +++ b/scripts/lib/wic/pluginbase.py | |||
@@ -137,3 +137,13 @@ class SourcePlugin(metaclass=PluginMeta): | |||
137 | 'prepares' the partition to be incorporated into the image. | 137 | 'prepares' the partition to be incorporated into the image. |
138 | """ | 138 | """ |
139 | logger.debug("SourcePlugin: do_prepare_partition: part: %s", part) | 139 | logger.debug("SourcePlugin: do_prepare_partition: part: %s", part) |
140 | |||
141 | @classmethod | ||
142 | def do_post_partition(cls, part, source_params, creator, cr_workdir, | ||
143 | oe_builddir, bootimg_dir, kernel_dir, rootfs_dir, | ||
144 | native_sysroot): | ||
145 | """ | ||
146 | Called after the partition is created. It is useful to add post | ||
147 | operations e.g. security signing the partition. | ||
148 | """ | ||
149 | logger.debug("SourcePlugin: do_post_partition: part: %s", part) | ||