* [u-boot scripts PATCH] Use $fdtfile as the DT filename, if it's set
@ 2014-01-27 21:26 Stephen Warren
[not found] ` <1390857989-25656-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2014-01-27 21:26 UTC (permalink / raw)
To: swarren-3lzwWm7+Weoh9ZMKESR00Q
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren
From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
This makes the generated boot.scr use the same mechanism to determine
the DT filename as U-Boot's pxe or sysboot commands, which parse an
extlinux.conf file.
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
gen-uboot-script.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gen-uboot-script.py b/gen-uboot-script.py
index 7c55b2594e07..46847e50834a 100755
--- a/gen-uboot-script.py
+++ b/gen-uboot-script.py
@@ -119,7 +119,15 @@ if args.initrd:
else:
ramdisk = '-'
-f.write(load + ' ${fdt_addr_r} ${prefix}${soc}-${board}${boardver}.dtb\n')
+f.write('''\
+if test -n "${fdtfile}"; then
+ set _fdt ${fdtfile};
+else
+ set _fdt ${soc}-${board}${boardver}.dtb;
+fi
+''')
+f.write(load + ' ${fdt_addr_r} ' + prefix + '${_fdt}\n')
+f.write('set _fdt\n')
bootargs = ''
if not args.no_con_ttyS0:
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [u-boot scripts PATCH] Use $fdtfile as the DT filename, if it's set
[not found] ` <1390857989-25656-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2014-01-28 16:39 ` Stephen Warren
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2014-01-28 16:39 UTC (permalink / raw)
To: swarren-3lzwWm7+Weoh9ZMKESR00Q
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren
On 01/27/2014 02:26 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> This makes the generated boot.scr use the same mechanism to determine
> the DT filename as U-Boot's pxe or sysboot commands, which parse an
> extlinux.conf file.
Patch applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-28 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 21:26 [u-boot scripts PATCH] Use $fdtfile as the DT filename, if it's set Stephen Warren
[not found] ` <1390857989-25656-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-01-28 16:39 ` 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).