summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2014-11-26 08:22:09 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-26 17:05:46 +0000
commite741ebf210f7bd78a8775b853802fe02ea8afdaa (patch)
tree20c7331e8bcc27da0c57db53168a13c69e8350a1 /scripts
parentdb012b429fd063782efb44e530bef3d7f9d49456 (diff)
downloadpoky-e741ebf210f7bd78a8775b853802fe02ea8afdaa.tar.gz
wic: Update bootimg-partition to use bootimg_dir
Update bootimg-partition to use bootimg_dir instead of img_deploy_dir, to match similar usage in other plugins. As mentioned elsewhere, plugins should use the passed-in value for bootimg_dir directly if non-null, which corresponds to a user-assigned value specified via a -b command-line param, and only fetch the value from bitbake if that value is null. (From OE-Core rev: 3822f8a7b33da56ecd9144b4bcae50734fb1af81) (From OE-Core rev: f22bd26627595e3719d3b1f9e3d487d5011c9c42) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-partition.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py
index cc72b2f7cb..abf24942e8 100644
--- a/scripts/lib/wic/plugins/source/bootimg-partition.py
+++ b/scripts/lib/wic/plugins/source/bootimg-partition.py
@@ -71,8 +71,13 @@ class BootimgPartitionPlugin(SourcePlugin):
71 install_cmd = "install -d %s" % hdddir 71 install_cmd = "install -d %s" % hdddir
72 exec_cmd(install_cmd) 72 exec_cmd(install_cmd)
73 73
74 if not bootimg_dir:
75 bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
76 if not bootimg_dir:
77 msger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n")
78
74 msger.debug('Bootimg dir: %s' % bootimg_dir) 79 msger.debug('Bootimg dir: %s' % bootimg_dir)
75 img_deploy_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") 80
76 boot_files = get_bitbake_var("IMAGE_BOOT_FILES") 81 boot_files = get_bitbake_var("IMAGE_BOOT_FILES")
77 82
78 if not boot_files: 83 if not boot_files:
@@ -93,7 +98,7 @@ class BootimgPartitionPlugin(SourcePlugin):
93 98
94 for deploy_entry in deploy_files: 99 for deploy_entry in deploy_files:
95 src, dst = deploy_entry 100 src, dst = deploy_entry
96 src_path = os.path.join(img_deploy_dir, src) 101 src_path = os.path.join(bootimg_dir, src)
97 dst_path = os.path.join(hdddir, dst) 102 dst_path = os.path.join(hdddir, dst)
98 103
99 msger.debug('Install %s as %s' % (os.path.basename(src_path), 104 msger.debug('Install %s as %s' % (os.path.basename(src_path),