summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-06-14 13:50:02 -0600
committerStephen Warren <swarren@nvidia.com>2013-06-14 13:50:02 -0600
commit968ca4b0d7f5b7f28bad83be95caf562ea7dbc6c (patch)
tree9e0ece784f54d0338a0e4bd1aa805eb881593945
parentcb959c68f3870ea93ad511edc180788438fcf456 (diff)
downloadtegra-uboot-flasher-scripts-968ca4b0d7f5b7f28bad83be95caf562ea7dbc6c.tar.gz
flasher: fix assignment of default data_dir
The default value was being assigned to a global rather than a field in the argparser result. Reported-by: Thierry Reding <thierry.reding@gmail.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 ac727a0..f1abe54 100755
--- a/tegra-uboot-flasher
+++ b/tegra-uboot-flasher
@@ -294,7 +294,7 @@ if not args.data_dir and not args.force_no_out_dir:
if args.debug: print 'Detected build tree; using ' + out_data_dir + ' as data dir'
args.data_dir = out_data_dir
if not args.data_dir:
- data_dir = '/usr/share/tegra_uboot_flasher'
+ args.data_dir = '/usr/share/tegra_uboot_flasher'
load_configs(os.path.join(args.data_dir, 'configs'))