]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap3: overo: Fix fdtfile test
authorStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Tue, 16 Sep 2014 15:51:05 +0000 (17:51 +0200)
committerTom Rini <trini@ti.com>
Fri, 10 Oct 2014 13:44:41 +0000 (09:44 -0400)
Commit 12cc54376768461533b55ada1b0b6d4979f40579 'omap3: overo: Select
fdtfile for expansion board' wrongly missed the operator in the fdtfile
test. Update the test to only overwrite an empty fdtfile environment
variable.

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
include/configs/omap3_overo.h

index e66f30655d67d864a79bcf1f1f21fdffc8c637da..b17e495f5f7915af44e75c8841932299a810e2a2 100644 (file)
                        "run mmcboot;" \
                "fi;" \
                "if run loadzimage; then " \
-                       "if test $fdtfile; then " \
+                       "if test -z \"${fdtfile}\"; then " \
                                "setenv fdtfile omap3-${boardname}-${expansionname}.dtb;" \
                        "fi;" \
                        "if run loadfdt; then " \