install_linux_fw_uuu: remove redirection in every case

Ensure stdout redirection to the USB interface is removed in every case.
Otherwise, it would be left redirected when INSTALL_UBOOT_FILENAME is
manually set.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
This commit is contained in:
Gonzalo Ruiz 2021-09-29 18:09:47 +02:00
parent 555be511a6
commit 825dd6a555
4 changed files with 24 additions and 12 deletions

View File

@ -105,13 +105,13 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##${module_ram}.imx"
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# U-Boot when the checked value is empty.
if [ -n "${INSTALL_UBOOT_FILENAME}" ]; then
true
else
# remove redirect
uuu fb: ucmd setenv stdout serial
echo ""
echo "[ERROR] Cannot determine U-Boot file for this module!"
echo ""
@ -130,6 +130,9 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# Determine linux, recovery, and rootfs image filenames to update
if [ -z "${IMAGE_NAME}" ]; then
IMAGE_NAME="##DEFAULT_IMAGE_NAME##"

View File

@ -118,13 +118,13 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# U-Boot when the checked value is empty.
if [ -n "${INSTALL_UBOOT_FILENAME}" ]; then
true
else
# remove redirect
uuu fb: ucmd setenv stdout serial
echo ""
echo "[ERROR] Cannot determine U-Boot file for this module!"
echo ""
@ -148,6 +148,9 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# Determine linux, recovery, and rootfs image filenames to update
if [ -z "${IMAGE_NAME}" ]; then
IMAGE_NAME="##DEFAULT_IMAGE_NAME##"

View File

@ -123,13 +123,13 @@ if [ -z "${INSTALL_UBOOT_FILENAME}" ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# U-Boot when the checked value is empty.
if [ -n "${INSTALL_UBOOT_FILENAME}" ]; then
true
else
# remove redirect
uuu fb: ucmd setenv stdout serial
echo ""
echo "[ERROR] Cannot determine U-Boot file for this module!"
echo ""
@ -149,6 +149,9 @@ if [ -z "${INSTALL_UBOOT_FILENAME}" ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# Determine linux, recovery, and rootfs image filenames to update
if [ -z "${IMAGE_NAME}" ]; then
IMAGE_NAME="##DEFAULT_IMAGE_NAME##"

View File

@ -127,13 +127,13 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
INSTALL_UBOOT_FILENAME="imx-boot-##MACHINE##-${soc_rev}-${module_ram}_${bus_width}.bin"
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# U-Boot when the checked value is empty.
if [ -n "${INSTALL_UBOOT_FILENAME}" ]; then
true
else
# remove redirect
uuu fb: ucmd setenv stdout serial
echo ""
echo "[ERROR] Cannot determine U-Boot file for this module!"
echo ""
@ -155,6 +155,9 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
fi
fi
# remove redirect
uuu fb: ucmd setenv stdout serial
# Determine linux, recovery, and rootfs image filenames to update
if [ -z "${IMAGE_NAME}" ]; then
IMAGE_NAME="##DEFAULT_IMAGE_NAME##"