From: York Sun Date: Fri, 22 Mar 2013 07:37:03 +0000 (+0000) Subject: MAKEALL: Fix case substitution for old bash X-Git-Tag: v2013.04-rc2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c17b94ec5ec89c63070dd385b6c3a6645761c405;p=oweals%2Fu-boot.git MAKEALL: Fix case substitution for old bash Bash ver 3.x doesn't support the parameter expansion with case substitution. Use tr instead. Signed-off-by: York Sun Acked-by: Allen Martin --- diff --git a/MAKEALL b/MAKEALL index 91fa495ea7..2737eab234 100755 --- a/MAKEALL +++ b/MAKEALL @@ -664,7 +664,7 @@ build_target() { export BUILD_DIR="${output_dir}" target_arch=$(get_target_arch ${target}) - eval cross_toolchain=\$CROSS_COMPILE_${target_arch^^} + eval cross_toolchain=\$CROSS_COMPILE_`echo $target_arch | tr '[:lower:]' '[:upper:]'` if [ "${cross_toolchain}" ] ; then MAKE="make CROSS_COMPILE=${cross_toolchain}" elif [ "${CROSS_COMPILE}" ] ; then