]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
imx: ventana: config: use bootdir env var for directory of fdt files
authorTim Harvey <tharvey@gateworks.com>
Tue, 24 May 2016 18:03:44 +0000 (11:03 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 31 May 2016 15:22:35 +0000 (17:22 +0200)
In order to make the default boot scripts more flexible, use the variable
'bootdir' to specify the filesystem directory to look for fdt files in.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
include/configs/gw_ventana.h

index e57b120555b47e3c669ae1dc7f9f2b3ab2099a12..dff4303d30f7f7bfd4331c81ea33806e9c5295d0 100644 (file)
                "fdt addr ${fdt_addr}\0" \
        "bootdir=boot\0" \
        "loadfdt=" \
-               "if ${fsload} ${fdt_addr} boot/${fdt_file}; then " \
-                       "echo Loaded DTB from boot/${fdt_file}; " \
+               "if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then " \
+                       "echo Loaded DTB from ${bootdir}/${fdt_file}; " \
                        "run fixfdt; " \
-               "elif ${fsload} ${fdt_addr} boot/${fdt_file1}; then " \
-                       "echo Loaded DTB from boot/${fdt_file1}; " \
+               "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then " \
+                       "echo Loaded DTB from ${bootdir}/${fdt_file1}; " \
                        "run fixfdt; " \
-               "elif ${fsload} ${fdt_addr} boot/${fdt_file2}; then " \
-                       "echo Loaded DTB from boot/${fdt_file2}; " \
+               "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then " \
+                       "echo Loaded DTB from ${bootdir}/${fdt_file2}; " \
                        "run fixfdt; " \
                "fi\0" \
        \