From patchwork Fri Mar 22 17:37:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 230214 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 0EF4C2C00C0 for ; Sat, 23 Mar 2013 04:38:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1CB94A1AE; Fri, 22 Mar 2013 18:38:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7GAJFu3xPV-3; Fri, 22 Mar 2013 18:38:08 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 99A074A09F; Fri, 22 Mar 2013 18:38:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80A784A0FC for ; Fri, 22 Mar 2013 18:38:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RcFLUVmKuI50 for ; Fri, 22 Mar 2013 18:38:02 +0100 (CET) X-Greylist: delayed 812 seconds by postgrey-1.27 at theia; Fri, 22 Mar 2013 18:38:00 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0185.outbound.messaging.microsoft.com [213.199.154.185]) by theia.denx.de (Postfix) with ESMTPS id 6222D4A090 for ; Fri, 22 Mar 2013 18:38:00 +0100 (CET) Received: from mail189-db8-R.bigfish.com (10.174.8.237) by DB8EHSOBE033.bigfish.com (10.174.4.96) with Microsoft SMTP Server id 14.1.225.23; Fri, 22 Mar 2013 17:37:59 +0000 Received: from mail189-db8 (localhost [127.0.0.1]) by mail189-db8-R.bigfish.com (Postfix) with ESMTP id 72EF09401D5; Fri, 22 Mar 2013 17:37:59 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1155h) Received: from mail189-db8 (localhost.localdomain [127.0.0.1]) by mail189-db8 (MessageSwitch) id 1363973842850183_4619; Fri, 22 Mar 2013 17:37:22 +0000 (UTC) Received: from DB8EHSMHS007.bigfish.com (unknown [10.174.8.254]) by mail189-db8.bigfish.com (Postfix) with ESMTP id C320DBC004B; Fri, 22 Mar 2013 17:37:22 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB8EHSMHS007.bigfish.com (10.174.4.17) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 22 Mar 2013 17:37:22 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.328.11; Fri, 22 Mar 2013 17:37:21 +0000 Received: from oslab-l1.am.freescale.net ([10.214.84.93]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r2MHbJaf030650; Fri, 22 Mar 2013 10:37:19 -0700 From: York Sun To: Date: Fri, 22 Mar 2013 10:37:03 -0700 Message-ID: <1363973823-26290-1-git-send-email-yorksun@freescale.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de, York Sun Subject: [U-Boot] [PATCH] MAKEALL: Fix case substitution for old bash X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 --- Removed RFC from subject line. 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