summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-09-23 13:18:19 +0200
committerStefano Babic <sbabic@denx.de>2014-09-29 11:36:55 +0200
commit14b256e5c084e1b693f4ad73c6a8beee7ffcb4af (patch)
tree7312fdb5051e58d18bf6eca0f15362232aa352a0 /include
parent4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a (diff)
downloadu-boot-imx-14b256e5c084e1b693f4ad73c6a8beee7ffcb4af.zip
u-boot-imx-14b256e5c084e1b693f4ad73c6a8beee7ffcb4af.tar.gz
u-boot-imx-14b256e5c084e1b693f4ad73c6a8beee7ffcb4af.tar.bz2
arm: m53evk: Test if bootscript exists before loading it
Make sure the boot.scr exists on the card before loading it from the card to avoid annoying message on the console. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/m53evk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h
index df6a226..ad9c39c 100644
--- a/include/configs/m53evk.h
+++ b/include/configs/m53evk.h
@@ -348,10 +348,12 @@
"bootm ${kernel_addr_r}\0" \
"try_bootscript=" \
"mmc rescan;" \
+ "if test -e mmc 0:1 ${bootscript} ; then " \
"if ext4load mmc 0:1 ${kernel_addr_r} ${bootscript};" \
"then;" \
"\techo Running bootscript...;" \
"\tsource ${kernel_addr_r};" \
+ "fi ; " \
"fi\0"
#endif /* __M53EVK_CONFIG_H__ */