Skip to content
Snippets Groups Projects
Commit c17b94ec authored by York Sun's avatar York Sun Committed by Tom Rini
Browse files

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: default avatarYork Sun <yorksun@freescale.com>
Acked-by: default avatarAllen Martin <amartin@nvidia.com>
parent 74de8c9a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment