[u-boot scripts PATCH] Use $fdtfile as the DT filename, if it's set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stephen Warren <swarren@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux