]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/omap4_common.h
arm: omap: Add check for fdtfile in the findfdt macro
[karo-tx-uboot.git] / include / configs / omap4_common.h
index 3e5d36b21e0d552b031df9dd8ad1906d6036eeba..f47d52e2d08c4087a703b7fdb892cd3ff85deb20 100644 (file)
        "console=ttyO2,115200n8\0" \
        "fdt_high=0xffffffff\0" \
        "fdtaddr=0x80f80000\0" \
+       "fdtfile=undefined\0" \
        "bootpart=0:2\0" \
        "bootdir=/boot\0" \
        "bootfile=zImage\0" \
                "if test $board_name = panda; then " \
                        "setenv fdtfile omap4-panda.dtb; fi;" \
                "if test $board_name = panda-es; then " \
-                       "setenv fdtfile omap4-panda-es.dtb; fi; \0" \
+                       "setenv fdtfile omap4-panda-es.dtb; fi;" \
+               "if test $fdtfile = undefined; then " \
+                       "echo WARNING: Could not determine device tree to use; fi; \0" \
        "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
 
 #define CONFIG_BOOTCOMMAND \