diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-22 15:42:27 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-23 13:19:49 +0000 |
commit | 627952a234a844783a6d4ee9aa3f1608a0d537d0 (patch) | |
tree | 7ed2dc78e88d8df1ea591287f2ff239bb9354f6d /scripts/lib/wic/plugins/source/rawcopy.py | |
parent | ce627abf86e31486070c1b24de92c30ce47bf0b8 (diff) | |
download | poky-627952a234a844783a6d4ee9aa3f1608a0d537d0.tar.gz |
wic: use kernel_dir instead of bootimg_dir
bootimg_dir is usually set to the value of STAGING_DATADIR and
kernel_dir - to the value of DEPLOY_DIR_IMAGE, so usage of
kernel_dir is more logical in bootimg-efi, bootimg-partition and
rawcopy plugins.
Replaced usage of bootimg_dir to kernel_dir in 3 above mentioned
plugins that use DEPLOY_DIR_IMAGE as a default artifact location.
(From OE-Core rev: 48a5d67d7cafdeac821e6f35bea380521ef017d5)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/rawcopy.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index bc71cf6f76..431afce7c4 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py | |||
@@ -59,17 +59,17 @@ class RawCopyPlugin(SourcePlugin): | |||
59 | Called to do the actual content population for a partition i.e. it | 59 | Called to do the actual content population for a partition i.e. it |
60 | 'prepares' the partition to be incorporated into the image. | 60 | 'prepares' the partition to be incorporated into the image. |
61 | """ | 61 | """ |
62 | if not bootimg_dir: | 62 | if not kernel_dir: |
63 | bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") | 63 | kernel_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") |
64 | if not bootimg_dir: | 64 | if not kernel_dir: |
65 | raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting") | 65 | raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting") |
66 | 66 | ||
67 | logger.debug('Bootimg dir: %s', bootimg_dir) | 67 | logger.debug('Kernel dir: %s', kernel_dir) |
68 | 68 | ||
69 | if 'file' not in source_params: | 69 | if 'file' not in source_params: |
70 | raise WicError("No file specified") | 70 | raise WicError("No file specified") |
71 | 71 | ||
72 | src = os.path.join(bootimg_dir, source_params['file']) | 72 | src = os.path.join(kernel_dir, source_params['file']) |
73 | dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno)) | 73 | dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno)) |
74 | 74 | ||
75 | if 'skip' in source_params: | 75 | if 'skip' in source_params: |