]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MAKEALL: Fix case substitution for old bash
authorYork Sun <yorksun@freescale.com>
Fri, 22 Mar 2013 07:37:03 +0000 (07:37 +0000)
committerTom Rini <trini@ti.com>
Tue, 2 Apr 2013 20:23:34 +0000 (16:23 -0400)
Bash ver 3.x doesn't support the parameter expansion with case
substitution. Use tr instead.

Signed-off-by: York Sun <yorksun@freescale.com>
Acked-by: Allen Martin <amartin@nvidia.com>
MAKEALL

diff --git a/MAKEALL b/MAKEALL
index 91fa495ea7f43ce2b7edb6ca6ca5b8d0d8ebd643..2737eab234affa33ec3d603e7203be931c488e69 100755 (executable)
--- 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