summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2016-06-16 19:34:35 -0700
committerStephen Warren <swarren@nvidia.com>2016-06-17 10:03:59 -0600
commit8c548635444098c41aa4b3e7a5fa40c2723497cc (patch)
treecdc1b347b413b1f2dc52f0cfb9fc7babfc06e11e
parenta8a89d3aec5f4e65056e1449aee187b3ebf731e9 (diff)
downloadtegra-uboot-flasher-scripts-8c548635444098c41aa4b3e7a5fa40c2723497cc.tar.gz
Fix flash --flash-image option
Pass correct variable to avoid the following error: File "./tegra-uboot-flasher", line 139, in func_flash flash_img = args.flash_img AttributeError: 'Namespace' object has no attribute 'flash_img' Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rwxr-xr-xtegra-uboot-flasher2
1 files changed, 1 insertions, 1 deletions
diff --git a/tegra-uboot-flasher b/tegra-uboot-flasher
index 153db0d..ddce70d 100755
--- a/tegra-uboot-flasher
+++ b/tegra-uboot-flasher
@@ -136,7 +136,7 @@ def func_flash():
print 'u_boot_dtb_size %d 0x%x' % (u_boot_dtb_size, u_boot_dtb_size)
if args.flash_image:
- flash_img = args.flash_img
+ flash_img = args.flash_image
else:
flash_img = os.path.join(out_board_dir, config['flash-image'])
flash_img_size = os.path.getsize(flash_img)