arm: m28evk: 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>
This commit is contained in:
Marek Vasut 2014-09-23 13:18:18 +02:00 committed by Stefano Babic
parent 5546ad0734
commit 4ba9b1c2e3

View File

@ -279,10 +279,12 @@
"bootm ${kernel_addr_r}\0" \
"try_bootscript=" \
"mmc rescan;" \
"if test -e mmc 0:2 ${bootscript} ; then " \
"if ext4load mmc 0:2 ${kernel_addr_r} ${bootscript};" \
"then;" \
"\techo Running bootscript...;" \
"\tsource ${kernel_addr_r};" \
"fi ; " \
"fi\0"
/* The rest of the configuration is shared */