diff mbox

[flasher,scripts] Fix flash --flash-image option

Message ID 20160617023435.GA22135@jirafa.cyrius.com
State Accepted, archived
Delegated to: Stephen Warren
Headers show

Commit Message

Martin Michlmayr June 17, 2016, 2:34 a.m. UTC
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>
---
 tegra-uboot-flasher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Warren June 17, 2016, 4:04 p.m. UTC | #1
On 06/16/2016 08:34 PM, Martin Michlmayr wrote:
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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)