提交 c17b94ec 编写于 作者: Y York Sun 提交者: Tom Rini

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: NYork Sun <yorksun@freescale.com>
Acked-by: NAllen Martin <amartin@nvidia.com>
上级 74de8c9a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册