Fix flash --flash-image option
PATCH 1/1 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 <[email protected]>
--- tegra-uboot-flasher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tegra-uboot-flasher +1 -1
@@ -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)
Signature · 5 lines
2.1.4 -- Martin Michlmayr http://www.cyrius.com/
A message that is not in the archive (sent off-list or not yet received): 20160617023435.GA22135-IRMp5PtgtdoigzW5ZibpNwC/[email protected]
Quoted 5 lines · Martin Michlmayr
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'
Hmm. Guess I never tested that:-) Applied, thanks.