From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.72]) by mx.groups.io with SMTP id smtpd.web11.30121.1613389563180729211 for ; Mon, 15 Feb 2021 03:46:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=kiK6SXkj; spf=pass (domain: arm.com, ip: 40.107.5.72, mailfrom: edhaya.chandran@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uy/PGFXfRCKk+MQqHfRvd+qnPucbBmOtxrVNyRx6fTk=; b=kiK6SXkjM8cuK9n/0vbcqsfEJ6ooeJICllA49c0VtrMcnhJM2C42Yxexsp6Yk8mkabz2wP7umJ7dMFqjHD0lFnhOmQDgLEVfBT0f4jpYlV22y2cnB7/YKsneINCg4fYShr8IIxTKFaQpHZmXhlsHn7dSKUT1rO+941GictquqAM= Received: from AM5P194CA0011.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::21) by DB7PR08MB3370.eurprd08.prod.outlook.com (2603:10a6:10:41::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.39; Mon, 15 Feb 2021 11:46:00 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:8f:cafe::fb) by AM5P194CA0011.outlook.office365.com (2603:10a6:203:8f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Mon, 15 Feb 2021 11:45:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Mon, 15 Feb 2021 11:45:59 +0000 Received: ("Tessian outbound e989e14f9207:v71"); Mon, 15 Feb 2021 11:45:59 +0000 X-CR-MTA-TID: 64aa7808 Received: from d1ac369d88b6.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 165B5B8E-B464-4860-93D0-7BFAD409AE53.1; Mon, 15 Feb 2021 11:45:53 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d1ac369d88b6.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 15 Feb 2021 11:45:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BanP2SVM0paUMBOqvDnm4SLhzO/HMYrNhOqnhoAgjkqUaUdaUg/kIdVpix/pogDvo40e7dBnwkKRxqkFcb4JzlVDDqxKVMi3Un4Awtf1yR0fRZ2lFRB6NgJJY47sS3HGUgcpztT923yu6zLdlpYszXZWR9TAfil6XqAMubxHwlUYoK/WWV741CewfsflSF3leg8BT1oaw+vYonH2bx3M4JIDhnnba8FBJLgHwptxvU1OpukxCnSV6lYmv0pxGsnxssbvMOjlIPebZwVs7FTlZPhftTJM9S0/KzuPt5RuaCbTKiBO1ZTWOoZfPRJAfvG8Q5iIZAXelupJNten7uDwOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uy/PGFXfRCKk+MQqHfRvd+qnPucbBmOtxrVNyRx6fTk=; b=HZXZONjRWeFL0WNHcfqLQCFLSL87y4yZQmnT47zhIL5hz9jjhh/lrxb1e9Uo9oIrx7PeIOkdbkLJgCWGWkNN7uNQOz1jxAKX+mNAnQkm5a+5VhdRzacdVgHEmc4dHualoL41R8bB6cPrw/YjvAelE3/W4+YNSnZVWl2vUYWxPJh/qDdTpqhvZZVSzeGHYGiw/cijFhiXL1yu7cxjlZKx5oYuzZItVyFtQxUQPB4c4/mxV4/71UIZlWDOYTep+sBZRukwLvmIbew/5pfsg/huCpdwzFMFPXT49g6cJp8+9ne/Mbbb4SSbjrBDMP3QdhteOYShfjudHZ3BI2CGy+4X6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uy/PGFXfRCKk+MQqHfRvd+qnPucbBmOtxrVNyRx6fTk=; b=kiK6SXkjM8cuK9n/0vbcqsfEJ6ooeJICllA49c0VtrMcnhJM2C42Yxexsp6Yk8mkabz2wP7umJ7dMFqjHD0lFnhOmQDgLEVfBT0f4jpYlV22y2cnB7/YKsneINCg4fYShr8IIxTKFaQpHZmXhlsHn7dSKUT1rO+941GictquqAM= Received: from HE1PR0801MB1691.eurprd08.prod.outlook.com (2603:10a6:3:7b::13) by HE1PR0801MB1930.eurprd08.prod.outlook.com (2603:10a6:3:57::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.29; Mon, 15 Feb 2021 11:45:51 +0000 Received: from HE1PR0801MB1691.eurprd08.prod.outlook.com ([fe80::4c36:6f5d:ef5b:7303]) by HE1PR0801MB1691.eurprd08.prod.outlook.com ([fe80::4c36:6f5d:ef5b:7303%11]) with mapi id 15.20.3846.039; Mon, 15 Feb 2021 11:45:51 +0000 From: "G Edhaya Chandran" To: Grant Likely , "devel@edk2.groups.io" , Barton Gao CC: nd , Samer El-Haj-Mahmoud Subject: Re: [edk2-sct PATCH 2/3] edk2-test: use bash 'shift' in build.sh to manage arguments Thread-Topic: [edk2-sct PATCH 2/3] edk2-test: use bash 'shift' in build.sh to manage arguments Thread-Index: AQHXAJ3zgbmy+2zQjEu8EPHFx6nsu6pZHvJg Date: Mon, 15 Feb 2021 11:45:51 +0000 Message-ID: References: <20210211174605.17937-1-grant.likely@arm.com> <20210211174605.17937-2-grant.likely@arm.com> In-Reply-To: <20210211174605.17937-2-grant.likely@arm.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 72AA36457756D540BEDCC71663900AA0.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [217.140.105.56] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fa58982c-f25a-4e0d-535a-08d8d1a74384 x-ms-traffictypediagnostic: HE1PR0801MB1930:|DB7PR08MB3370: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dEqjca8jj5YNNLPmPfvxsWlXVAHXjRg7+bY3HjsPqw/Cb94+WpZrFJN7GTIc9hPby+SCnUryhZXQjFckucRglsxlJtpCqzWrfScwxRrhXAoHXRD+4MhEtCJcmaI/3Uk7tiq4o+ng2QoZ1jDMCB9hpPzwcUlqTYAu6u0KOq1jsNf8F6HY0Bp41bK7I/Js3wqCtTTiyEgkt/+Ff9oM9baPsuO7Bx26X9ZNO58yn0bF5lTJJQuR3vbRcYE3avy4XMX7RITF2/wjuGxy+G+8BzjXkYIcOQ3nmjKLn/+hFp4cXaXT/BzwV4TM+vL5jFaDpN0+q8F3vaJY3v8U5vaI0o7PWsXiPCLuY2bUxWZdOdn29uBSbK4ruJeOkd+aNUM0M0h1O633sPGRQrCv8+1kGYaPDBr4fnm9+l/VHig7yoDZTlA+E8Y8lcaskmjd5HryURETHm0oAKREMW9TH04TKnl0ng2ZKhXWLku5b2MTuIgzxNEcyUN+HUlq31BrS8JMULuf+YVgvgY7Y7W3strbRp7evA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0801MB1691.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39830400003)(396003)(136003)(366004)(346002)(9686003)(71200400001)(316002)(55016002)(33656002)(478600001)(5660300002)(4326008)(53546011)(8676002)(83380400001)(2906002)(6506007)(8936002)(186003)(66946007)(76116006)(66476007)(66556008)(64756008)(66446008)(52536014)(26005)(86362001)(54906003)(7696005)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?0qxEU0j1tsyv/ZH8wawpcT2J+3Ef5HiN4HMIckkPgWHFVzi1BxlrE3MuPiCe?= =?us-ascii?Q?wS+cKbj8Ab5dX8xi1PnNPNE/vTxvZF/VHCBgyEg6rLJQDMKK/zHosTKwyhY1?= =?us-ascii?Q?+NU97zvINauDVxqwNgpGrbnv9Ma+FmTSU7FTOs3mTbG/EBK77g4Kjq1yP2O0?= =?us-ascii?Q?feYuxCWxStIY/zk39ttlAnYDFVJ4emNNSw6yRynGxOSauXAcvCL8w8LUCNk2?= =?us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qsB+6yQy+BKsyV7gqv1Ow9IuHwg?= =?us-ascii?Q?q1nn1aAr5ZD13GGaQgPJ4aKYZhhbpgjDZLBjuXpCUSNYUvbsJpADuStHhn4D?= =?us-ascii?Q?GI1zhtitHrVTHg07kC+VFxAbBfa+B1FqoAHJ+3/h0tUCVlD2p1APT5ZxwQyu?= =?us-ascii?Q?NoWoLlz7ymPdw+UEPV0b142Nzu6vCUSK8X8PPhF3ADLDs0ahYNAoxSCJ4kIl?= =?us-ascii?Q?sWgDS0XWM4xIPUnJCLBMCnu5?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1930 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Return-Path: Edhaya.Chandran@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 2790bd81-0281-4fbb-fc94-08d8d1a73e93 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OwpSNz1L6nyvXy4iIn0UnsVBrej+lBAqlPHFiEHhRPWXfEF53ennRBPSqjcqAJbxFdE07r2lsJBXTWai9a6A/CdUFZU1zItD+EcR00f2UcwlMFhqpkb6uCYwicIsHYn7rejx9ykgzuUVTSVZqK4XiO4kkgfoOlenJ3zNlv7/LizxClEI9QIR7I7w8Z+Ulobm3mh7hQtCFHRhHAlFrS+Qp1tKMb1gPrKkaegYhnUE1ubzo8eDy5CR6luhlmSJXJJKJ4SrwIlkL3wTvYwkuGiczfMFr8avQq551cZSd0VwzOPzmGrGVD2atsY3mQHVs9RHxcK+2RPUJ1qr6bF0DkVKXujnIH78SJ9AvRumj52XaP58z8hu1gdVmqGAgVcKyj66irO32RemxPRxiLsZLTaqKHlGpkLFOoW+Vtz4QaFDipBd1RZc0AvrB54MiWLq35m+bjiebWWrJ3McO1Q0lgzAcuZx+ssg5ZOgfL0lBl+2xfSnhQG7eII4082JvilOVOW13fwHw6ugTHjzOth4RII+1tzGPInnhwrTWhmtco0NYyCDRTkgyrd9sjDeFRzxv/Pd5fLsMXFMpktmScvOKeJJbA/6puMd+ID2bt5DtgIOdD/u8T0dtwTXzYPj9GxFaVUSb06s6V1KT1IknKQBPuL/uuTSp/U7ZzY83J50iVJXatM= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(346002)(396003)(376002)(136003)(39830400003)(36840700001)(46966006)(33656002)(2906002)(82310400003)(83380400001)(86362001)(336012)(70206006)(70586007)(4326008)(55016002)(356005)(53546011)(9686003)(52536014)(186003)(26005)(81166007)(5660300002)(7696005)(36860700001)(6506007)(8676002)(54906003)(110136005)(478600001)(316002)(47076005)(8936002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 11:45:59.4134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fa58982c-f25a-4e0d-535a-08d8d1a74384 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3370 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: G Edhaya Chandran > -----Original Message----- > From: Grant Likely > Sent: 11 February 2021 23:16 > To: devel@edk2.groups.io; G Edhaya Chandran ; > Barton Gao > Cc: nd ; Samer El-Haj-Mahmoud Mahmoud@arm.com>; Grant Likely > Subject: [edk2-sct PATCH 2/3] edk2-test: use bash 'shift' in build.sh to = manage > arguments >=20 > The script was using a big list of numerical argument to pass on extra > parameters. Use the bash 'shift' command to carve of arguments for the sc= ript > so that $@ can be used for the remainder. >=20 > Signed-off-by: Grant Likely > --- > uefi-sct/SctPkg/build.sh | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) >=20 > diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh index > 22cf9667..3b1414ca 100755 > --- a/uefi-sct/SctPkg/build.sh > +++ b/uefi-sct/SctPkg/build.sh > @@ -189,13 +189,16 @@ case `uname` in > ;; > esac >=20 > +# Drop parsed command line arguments > +shift 2 > + > echo "TOOLCHAIN is ${TARGET_TOOLS}" > export ${TARGET_TOOLS}_${SCT_TARGET_ARCH}_PREFIX=3D$CROSS_COMPILE > echo "Toolchain prefix: > ${TARGET_TOOLS}_${SCT_TARGET_ARCH}_PREFIX=3D$CROSS_COMPILE" >=20 > SCT_BUILD=3DDEBUG > -if [ "$3" =3D "RELEASE" -o "$3" =3D "DEBUG" ]; then > - SCT_BUILD=3D$3 > +if [ "$1" =3D "RELEASE" -o "$1" =3D "DEBUG" ]; then > + SCT_BUILD=3D$1 > shift > fi >=20 > @@ -254,7 +257,7 @@ cp $EDK_TOOLS_PATH/Source/C/bin/GenBin > $DEST_DIR/GenBin # for DSC in SctPkg/UEFI/UEFI_SCT.dsc > SctPkg/UEFI/IHV_SCT.dsc $DSC_EXTRA do > - build -p $DSC -a $SCT_TARGET_ARCH -t $TARGET_TOOLS -b > $SCT_BUILD $3 $4 $5 $6 $7 $8 $9 > + build -p $DSC -a $SCT_TARGET_ARCH -t $TARGET_TOOLS -b > $SCT_BUILD $@ > # Check if there is any error > status=3D$? > if test $status -ne 0 > -- > 2.20.1