public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC] MAKEALL: Fix case substitution for old bash
@ 2013-03-21 19:58 York Sun
  2013-03-21 20:28 ` Allen Martin
  0 siblings, 1 reply; 6+ messages in thread
From: York Sun @ 2013-03-21 19:58 UTC (permalink / raw)
  To: u-boot

Bash ver 3.x doesn't support the parameter expansion with case
substitution. Use tr instead.

Signed-off-by: York Sun <yorksun@freescale.com>
---
I am not sure if using 'tr' is a good idea. Any suggestion is welcomed.

 MAKEALL |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAKEALL b/MAKEALL
index c1d8957..ac92ef6 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
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-01 18:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 19:58 [U-Boot] [RFC] MAKEALL: Fix case substitution for old bash York Sun
2013-03-21 20:28 ` Allen Martin
2013-03-21 20:38   ` York Sun
2013-03-27 19:55     ` Tom Rini
     [not found]       ` <5155C7C9.2010306@freescale.com>
     [not found]         ` <20130329172922.GA18937@badger>
     [not found]           ` <5155D412.1020802@freescale.com>
     [not found]             ` <20130329175205.GB18937@badger>
     [not found]               ` <5155D5D1.1000802@freescale.com>
     [not found]                 ` <20130329180520.GA1867@badger>
2013-03-30 22:30                   ` Simon Glass
2013-04-01 18:19                     ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox