public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [flasher scripts PATCH] Fix flash --flash-image option
@ 2016-06-17  2:34 Martin Michlmayr
       [not found] ` <20160617023435.GA22135-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Michlmayr @ 2016-06-17  2:34 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA

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-R+vWnYXSFMfQT0dZR+AlfA@public.gmane.org>
---
 tegra-uboot-flasher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.1.4

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [flasher scripts PATCH] Fix flash --flash-image option
       [not found] ` <20160617023435.GA22135-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
@ 2016-06-17 16:04   ` Stephen Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2016-06-17 16:04 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-17 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17  2:34 [flasher scripts PATCH] Fix flash --flash-image option Martin Michlmayr
     [not found] ` <20160617023435.GA22135-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
2016-06-17 16:04   ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox