mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
include: env: ti: mmc: envboot: Only attempt boot.scr if BOOTSTD is not enabled
'script' bootmethod that should be used with CONFIG_BOOTSTD. Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
6e869e104a
commit
88419bb2d6
1 changed files with 3 additions and 1 deletions
4
include/env/ti/mmc.env
vendored
4
include/env/ti/mmc.env
vendored
|
@ -5,7 +5,9 @@ args_mmc=run finduuid;setenv bootargs console=${console}
|
|||
${optargs}
|
||||
root=PARTUUID=${uuid} rw
|
||||
rootfstype=${mmcrootfstype}
|
||||
#ifndef CONFIG_BOOTSTD
|
||||
loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
|
||||
#endif
|
||||
bootscript=echo Running bootscript from mmc${mmcdev} ...;
|
||||
source ${loadaddr}
|
||||
bootenvfile=uEnv.txt
|
||||
|
@ -18,7 +20,7 @@ get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/dtb/${name_fdt}
|
|||
envboot=if mmc dev ${mmcdev}; then
|
||||
if mmc rescan; then
|
||||
echo SD/MMC found on device ${mmcdev};
|
||||
if run loadbootscript; then
|
||||
if test -n "${loadbootscript}" && run loadbootscript; then
|
||||
run bootscript;
|
||||
else
|
||||
if run loadbootenv; then
|
||||
|
|
Loading…
Reference in a new issue