* [PATCH tegra-uboot-scripts v2] Make folder for dtb files as an argument
@ 2014-07-24 21:55 Stefan Agner
[not found] ` <aaa2e78cfda2a2afe91e9ac8dca4583e8a860123.1406238873.git.stefan-XLVq0VzYD2Y@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2014-07-24 21:55 UTC (permalink / raw)
To: swarren-3lzwWm7+Weoh9ZMKESR00Q
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, stefan-XLVq0VzYD2Y
Some distribution use different folders to store the dtb files
rather then storing them directly in /boot. This adds a new
argument to define which folder U-Boot should search the dtb
file.
Signed-off-by: Stefan Agner <stefan-XLVq0VzYD2Y@public.gmane.org>
---
gen-uboot-script.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gen-uboot-script.py b/gen-uboot-script.py
index 8ca3d01..47de520 100755
--- a/gen-uboot-script.py
+++ b/gen-uboot-script.py
@@ -71,6 +71,9 @@ parser.add_argument('--noisy', action='store_true',
parser.add_argument('--cmdline',
help='Extra command-line options')
+parser.add_argument('--dtb-dir', dest='dtbdir', default=None,
+ help='Search directory for dtbs on target; defaults to /boot')
+
args = parser.parse_args()
if args.debug: print args
@@ -107,7 +110,10 @@ if args.type == 'net':
prefix=''
else:
load='load ${devtype} ${devnum}:${rootpart}'
- prefix='/boot/'
+ if not args.dtbdir:
+ prefix='/boot/'
+ else:
+ prefix=args.dtbdir+'/'
f.write(load + ' ${kernel_addr_r} ' + prefix + 'zImage\n')
--
2.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH tegra-uboot-scripts v2] Make folder for dtb files as an argument
[not found] ` <aaa2e78cfda2a2afe91e9ac8dca4583e8a860123.1406238873.git.stefan-XLVq0VzYD2Y@public.gmane.org>
@ 2014-07-25 16:05 ` Stephen Warren
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2014-07-25 16:05 UTC (permalink / raw)
To: Stefan Agner; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 07/24/2014 03:55 PM, Stefan Agner wrote:
> Some distribution use different folders to store the dtb files
> rather then storing them directly in /boot. This adds a new
> argument to define which folder U-Boot should search the dtb
> file.
> diff --git a/gen-uboot-script.py b/gen-uboot-script.py
> @@ -107,7 +110,10 @@ if args.type == 'net':
> prefix=''
> else:
> load='load ${devtype} ${devnum}:${rootpart}'
> - prefix='/boot/'
> + if not args.dtbdir:
> + prefix='/boot/'
> + else:
> + prefix=args.dtbdir+'/'
>
> f.write(load + ' ${kernel_addr_r} ' + prefix + 'zImage\n')
I don't think this is right; it makes --dtbdir affect the value of the
prefix variable, which is used for all of zImage, DTBs, and initrd. I
didn't think that's what you wanted, although if it is, then (a) the
option doesn't have the right name, and (b), it should presumably affect
network mode too.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-25 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 21:55 [PATCH tegra-uboot-scripts v2] Make folder for dtb files as an argument Stefan Agner
[not found] ` <aaa2e78cfda2a2afe91e9ac8dca4583e8a860123.1406238873.git.stefan-XLVq0VzYD2Y@public.gmane.org>
2014-07-25 16:05 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).