summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/bootimg-partition.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-partition.py')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-partition.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py
index 373e8d8f75..4afc8a2a07 100644
--- a/scripts/lib/wic/plugins/source/bootimg-partition.py
+++ b/scripts/lib/wic/plugins/source/bootimg-partition.py
@@ -78,12 +78,12 @@ class BootimgPartitionPlugin(SourcePlugin):
78 install_cmd = "install -d %s" % hdddir 78 install_cmd = "install -d %s" % hdddir
79 exec_cmd(install_cmd) 79 exec_cmd(install_cmd)
80 80
81 if not bootimg_dir: 81 if not kernel_dir:
82 bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") 82 kernel_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
83 if not bootimg_dir: 83 if not kernel_dir:
84 raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting") 84 raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting")
85 85
86 logger.debug('Bootimg dir: %s', bootimg_dir) 86 logger.debug('Kernel dir: %s', bootimg_dir)
87 87
88 boot_files = get_bitbake_var("IMAGE_BOOT_FILES") 88 boot_files = get_bitbake_var("IMAGE_BOOT_FILES")
89 89
@@ -118,7 +118,7 @@ class BootimgPartitionPlugin(SourcePlugin):
118 os.path.join(dst, 118 os.path.join(dst,
119 os.path.basename(name)) 119 os.path.basename(name))
120 120
121 srcs = glob(os.path.join(bootimg_dir, src)) 121 srcs = glob(os.path.join(kernel_dir, src))
122 122
123 logger.debug('Globbed sources: %s', ', '.join(srcs)) 123 logger.debug('Globbed sources: %s', ', '.join(srcs))
124 for entry in srcs: 124 for entry in srcs:
@@ -127,7 +127,7 @@ class BootimgPartitionPlugin(SourcePlugin):
127 os.path.join(hdddir, 127 os.path.join(hdddir,
128 entry_dst_name))) 128 entry_dst_name)))
129 else: 129 else:
130 install_task = [(os.path.join(bootimg_dir, src), 130 install_task = [(os.path.join(kernel_dir, src),
131 os.path.join(hdddir, dst))] 131 os.path.join(hdddir, dst))]
132 132
133 for task in install_task: 133 for task in install_task: