From 47b7776c679e43dbfdfd394961bdd8e6cf5106dd Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 21 Feb 2012 11:46:16 -0600 Subject: [PATCH] sdcard script: use a default case instead of IN_VALID_UBOOT Use a default case instead of IN_VALID_UBOOTfor a valid selected --uboot option. Reported-by: Robert P. J. Day Signed-off-by: Robert Nelson --- mk_mmc.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index efd7f56..4e87645 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1612,11 +1612,27 @@ case "$UBOOT_TYPE" in is_imx53 ;; -esac - - if [ "$IN_VALID_UBOOT" ] ; then - usage - fi + *) + cat <<-__EOF__ + ----------------------------- + ERROR: This script does not currently recognize the selected: [--uboot ${UBOOT_TYPE}] option.. + Please rerun $(basename $0) with a valid [--uboot ] option from the list below: + ----------------------------- + -Supported TI Devices:------- + beagle_bx - + beagle_cx - + beagle_xm - + bone - + igepv2 - + panda - + panda_es - + -Supported Freescale Devices: + mx53loco - + ----------------------------- + __EOF__ + exit + ;; + esac } function check_addon_type {