diff options
author | Changhyeok Bae <changhyeok.bae@gmail.com> | 2017-06-13 00:04:21 +0900 |
---|---|---|
committer | Changhyeok Bae <changhyeok.bae@gmail.com> | 2017-06-13 00:07:00 +0900 |
commit | 55cf85a27eaa493752dc8089617a2185d8498e44 (patch) | |
tree | fd1c4c9ff031c6697b82088b4aabaf7000a2209a /scripts | |
parent | c1d3335e548c4d54414791cc8197b652da84e9a3 (diff) | |
download | meta-updater-55cf85a27eaa493752dc8089617a2185d8498e44.tar.gz |
otaimage.py: Arrage script for pyro
1. msger is replaced to logging module in yocto upstream (pyro branch).
2. move oe/misc.py one level up in yocto upstream (pyro branch).
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/plugins/source/otaimage.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/lib/wic/plugins/source/otaimage.py b/scripts/lib/wic/plugins/source/otaimage.py index dc507a8..eef0bb4 100644 --- a/scripts/lib/wic/plugins/source/otaimage.py +++ b/scripts/lib/wic/plugins/source/otaimage.py | |||
@@ -15,11 +15,12 @@ | |||
15 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 15 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
16 | # | 16 | # |
17 | 17 | ||
18 | import logging | ||
18 | import os | 19 | import os |
20 | import sys | ||
19 | 21 | ||
20 | from wic import msger | ||
21 | from wic.pluginbase import SourcePlugin | 22 | from wic.pluginbase import SourcePlugin |
22 | from wic.utils.oe.misc import get_bitbake_var | 23 | from wic.utils.misc import get_bitbake_var |
23 | 24 | ||
24 | class OTAImagePlugin(SourcePlugin): | 25 | class OTAImagePlugin(SourcePlugin): |
25 | """ | 26 | """ |
@@ -57,12 +58,12 @@ class OTAImagePlugin(SourcePlugin): | |||
57 | """ | 58 | """ |
58 | bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") | 59 | bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") |
59 | if not bootimg_dir: | 60 | if not bootimg_dir: |
60 | msger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n") | 61 | logger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n") |
61 | 62 | ||
62 | msger.debug('Bootimg dir: %s' % bootimg_dir) | 63 | logger.debug('Bootimg dir: %s' % bootimg_dir) |
63 | 64 | ||
64 | src = bootimg_dir + "/" + get_bitbake_var("IMAGE_LINK_NAME") + ".otaimg" | 65 | src = bootimg_dir + "/" + get_bitbake_var("IMAGE_LINK_NAME") + ".otaimg" |
65 | 66 | ||
66 | msger.debug('Preparing partition using image %s' % (src)) | 67 | logger.debug('Preparing partition using image %s' % (src)) |
67 | part.prepare_rootfs_from_fs_image(cr_workdir, src, "") | 68 | part.prepare_rootfs_from_fs_image(cr_workdir, src, "") |
68 | 69 | ||