mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 15:28:50 +00:00

By default this variable is unset and this causes the test condition to
fail on devices that don't have this defined. Set a default value for
this.
=> boot
## Error: "main_cpsw0_qsgmii_phyinit" not defined
[...]
Fixes: 0d72b0f2f8
("include: env: ti: ti_common: Run main_cpsw0_qsgmii_phyinit conditionally")
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
loadaddr=0x82000000
|
|
kernel_addr_r=0x82000000
|
|
fdtaddr=0x88000000
|
|
dtboaddr=0x89000000
|
|
fdt_addr_r=0x88000000
|
|
fdtoverlay_addr_r=0x89000000
|
|
rdaddr=0x88080000
|
|
ramdisk_addr_r=0x88080000
|
|
scriptaddr=0x80000000
|
|
pxefile_addr_r=0x80100000
|
|
bootm_size=0x10000000
|
|
boot_fdt=try
|
|
|
|
boot_fit=0
|
|
addr_fit=0x90000000
|
|
name_fit=fitImage
|
|
update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
|
|
get_fit_overlaystring=
|
|
for overlay in $name_overlays; do;
|
|
setexpr name_fit_overlay gsub / _ conf-${overlay};
|
|
setenv overlaystring ${overlaystring}'#'${name_fit_overlay};
|
|
done;
|
|
get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}
|
|
run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}
|
|
do_main_cpsw0_qsgmii_phyinit=0
|
|
bootcmd_ti_mmc=
|
|
run findfdt; run init_${boot};
|
|
#if CONFIG_CMD_REMOTEPROC
|
|
if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1;
|
|
then run main_cpsw0_qsgmii_phyinit;
|
|
fi;
|
|
run boot_rprocs;
|
|
#endif
|
|
if test ${boot_fit} -eq 1;
|
|
then run get_fit_${boot}; run get_fit_overlaystring; run run_fit;
|
|
else;
|
|
run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern;
|
|
fi;
|