From f9f6942ba3f373f10fbc435d99bd22823f84849d Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 31 Jul 2013 12:35:17 -0500 Subject: [PATCH] remove: --uboot option, redirect too --dtb Signed-off-by: Robert Nelson --- mk_mmc.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 19ac9e6..e4b5ba0 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1414,16 +1414,23 @@ check_mmc () { } uboot_dtb_error () { - echo "OR: new: --dtb (device tree)" - cat <<-__EOF__ - ----------------------------- - ERROR: This script does not currently recognize the selected: [--dtb ${dtb_board}] option.. - Please rerun $(basename $0) with a valid [--dtb ] option from the list below: - ----------------------------- - __EOF__ - cat "${DIR}"/hwpack/*.conf | grep supported + if [ "${tried_uboot}" ] ; then + echo "-----------------------------" + echo "[--uboot ] has been replaced by [--dtb ]" + echo "see the list below..." echo "-----------------------------" + fi + + echo "--dtb (device tree) options..." + cat <<-__EOF__ + ----------------------------- + ERROR: This script does not currently recognize the selected: [--dtb ${dtb_board}] option.. + Please rerun $(basename $0) with a valid [--dtb ] option from the list below: + ----------------------------- + __EOF__ + cat "${DIR}"/hwpack/*.conf | grep supported + echo "-----------------------------" } show_board_warning () { @@ -1851,7 +1858,9 @@ while [ ! -z "$1" ] ; do --uboot) checkparm $2 UBOOT_TYPE="$2" - check_uboot_type + unset dtb_board + tried_uboot=1 + check_dtb_board ;; --dtb) checkparm $2