From: Marek Vasut Date: Tue, 23 Sep 2014 11:18:18 +0000 (+0200) Subject: arm: m28evk: Test if bootscript exists before loading it X-Git-Tag: v2014.10~3^2~19^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a;p=platform%2Fkernel%2Fu-boot.git 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 Cc: Stefano Babic --- diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h index fccd29d..2d9ad5f 100644 --- a/include/configs/m28evk.h +++ b/include/configs/m28evk.h @@ -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 */