From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.71]) by mx.groups.io with SMTP id smtpd.web12.63.1613065646642522579 for ; Thu, 11 Feb 2021 09:47:27 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=btNccWKX; spf=pass (domain: arm.com, ip: 40.107.8.71, mailfrom: grant.likely@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=uo9DeVsiwAZ7rAtLvYvBhpu/SQqh+/YbOPCP34dfpLQ=; b=btNccWKX7MHX6J165XMBzRzA+5nZYICArjt30SUupazLZXOt1BVnb+UvFRFagExdXPFhDGdMKI5iKlU+EYDdftfV4VL2EFDqteEDApT9FyLCIo9kuPosqSzynQiUJ2mKYraBJfM11fLBK02lNMIemlg5UsumcZ3bdBjXxtyelQ0= Received: from DB6PR0402CA0015.eurprd04.prod.outlook.com (2603:10a6:4:91::25) by AM5PR0802MB2401.eurprd08.prod.outlook.com (2603:10a6:203:9d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.23; Thu, 11 Feb 2021 17:47:20 +0000 Received: from DB5EUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::ec) by DB6PR0402CA0015.outlook.office365.com (2603:10a6:4:91::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 17:47:19 +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 DB5EUR03FT049.mail.protection.outlook.com (10.152.20.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 17:47:19 +0000 Received: ("Tessian outbound af289585f0f4:v71"); Thu, 11 Feb 2021 17:47:19 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e5d44263b163dfba X-CR-MTA-TID: 64aa7808 Received: from 4a82a335a792.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7C703AD6-A04F-4D59-87A7-EFE8D81F1376.1; Thu, 11 Feb 2021 17:47:14 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4a82a335a792.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 11 Feb 2021 17:47:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nx5XCMPhnpVRZ9wcfYoWXC0Fd35k5CU07wgmRpgQjz+oL4lEyYZ6jJQgavD3ZMLUIi8fq2mjqeDQlHuUFGvRbdeZ8iV/9WIxVPdUI4ZzGvufKIVMZuETmQ2yNiOBXyMUssLMLvUUaveeVaMAF6GMl8DjMQWFnfS97EcHwcCupxdRbOaIzv5KnIoqtM1AX1GUZR84FbTG/xHntsmpT8WAldkfU+uaPGOqSy/m0nVGtlLhycOTSxNzJ9SXVL85aeuV+JDsIiUdYw3P+Yj7bXbpthuTnry8jKlzyAjhhv5eF0nSKxNuakJssS1KFFfoXRUmhkshqJWv3Kk0/02LY2l2eg== 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=uo9DeVsiwAZ7rAtLvYvBhpu/SQqh+/YbOPCP34dfpLQ=; b=UIhXG5ivXfaaWxr2tdJCzEmGiDHBn8j+N056JEOCpGucZ4Saa5443gAmq04vW/Lgcs2X8fhS4U0SolcS75NSLkRuJCs9TjTNyp0GKA1KOrP5ktK041UfLs8k1GlBrxYD8SLIMmIMBD6HRwBvHMYcElG+l7xi3fqLW7/KJIMQsfemMfh2m7m13YJ0JJCwrbRkZLLJQM38GYCBQQUuzHaVkL0ZFlu5yzrB/ftkXa3nN/UzVB5c+1+rNWi7LeS0SUL7jP8UwxwMUbe17ADFFSkEY1RjNcM48NgIFuN0sN/jDo5P7e28lRZImES8xnQEfL2kNXdHHPCHtUH01E11i4dfdw== 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=uo9DeVsiwAZ7rAtLvYvBhpu/SQqh+/YbOPCP34dfpLQ=; b=btNccWKX7MHX6J165XMBzRzA+5nZYICArjt30SUupazLZXOt1BVnb+UvFRFagExdXPFhDGdMKI5iKlU+EYDdftfV4VL2EFDqteEDApT9FyLCIo9kuPosqSzynQiUJ2mKYraBJfM11fLBK02lNMIemlg5UsumcZ3bdBjXxtyelQ0= Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Received: from DB8PR08MB4010.eurprd08.prod.outlook.com (2603:10a6:10:ab::15) by DB7PR08MB3194.eurprd08.prod.outlook.com (2603:10a6:5:25::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.24; Thu, 11 Feb 2021 17:47:12 +0000 Received: from DB8PR08MB4010.eurprd08.prod.outlook.com ([fe80::715b:de9:c268:cfd9]) by DB8PR08MB4010.eurprd08.prod.outlook.com ([fe80::715b:de9:c268:cfd9%3]) with mapi id 15.20.3825.030; Thu, 11 Feb 2021 17:47:11 +0000 From: "Grant Likely" To: devel@edk2.groups.io, G Edhaya Chandran , Barton Gao CC: nd@arm.com, Samer El-Haj-Mahmoud , Grant Likely Subject: [edk2-sct PATCH 2/3] edk2-test: use bash 'shift' in build.sh to manage arguments Date: Thu, 11 Feb 2021 17:46:04 +0000 Message-ID: <20210211174605.17937-2-grant.likely@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210211174605.17937-1-grant.likely@arm.com> References: <20210211174605.17937-1-grant.likely@arm.com> X-Originating-IP: [84.69.148.82] X-ClientProxiedBy: LO2P265CA0406.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:f::34) To DB8PR08MB4010.eurprd08.prod.outlook.com (2603:10a6:10:ab::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from moist.secretlab.ca (84.69.148.82) by LO2P265CA0406.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:f::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.19 via Frontend Transport; Thu, 11 Feb 2021 17:47:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 14c86acc-e2cf-4e18-9fda-08d8ceb51455 X-MS-TrafficTypeDiagnostic: DB7PR08MB3194:|AM5PR0802MB2401: 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: DZXJ+W9fsmKIRPHQUAaRUX2WjZx7y5dHxI14PHndH/SczyHtQGs7nh1qobZNkYLgmcSgsVde9v1F7s2kc2XusKT0GwtNqGzzPoTA3g1DkBiDhggzHa4kjchmjQZGFHK7EdGEuNwoEO+0i35rOEekK1K2qtg9F3ZiIcSh1KHHQjn478JpZmxqgVQ/5+ajVw3vpe190JAVzxztyQpB8Ic/PjCr3X2WRwQW+MT+F8axT+XIsojsLS3tw6hMIYGV1q6oUVuQKosK5Cud3bqSXxw8LSxEnvwT1hgRwG79elDMSHA4Jr+lD8JC8+d4SvuaIw+6pOHHTTmNENgo8bI4RDRz2qRclgxtw3OPlfu9ZRxFOHeDn1Vok5fbJMc4e+E2WT0n5eM4mIy2y3iw1ZsJOmwchJpsy+yppMWI8uclxT/tlqqwY46YVfIMmyp4SHsIafCS8fXpFDXvdYZNgAph5yfFGk+6pC4BGZ/UEvejd13Davf3vIW36r44oc/tGiER5TOgGx6qqyoPJC2BxeOc2b32jQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR08MB4010.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(346002)(396003)(366004)(39840400004)(376002)(8936002)(478600001)(36756003)(8676002)(4326008)(83380400001)(52116002)(54906003)(6512007)(316002)(110136005)(44832011)(2616005)(6506007)(26005)(66946007)(66476007)(66556008)(186003)(2906002)(1076003)(86362001)(5660300002)(956004)(16526019)(6666004)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?d6frytKvU6vX22LQ+ZcuUjKSPUWoGkq/rf1hMDHILpsySXsGxPZdWaMv6kVl?= =?us-ascii?Q?6l6XM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n6WCQBZFDwHk?= =?us-ascii?Q?RY5ghvnLjzduTz7ZC2SieDYW3eSK4P4FdyrzbrsO3cSScUiEHLG9HwuMgtPS?= =?us-ascii?Q?6DNte1YfGzelgQpSzDa2SH8slHymZf/wLHPt8rag4RlugNI6YtiXDdrwSIqt?= =?us-ascii?Q?0EJkwRX95DVnkcWZFqqc7RsrT7fksQdSMvc1Y2PTvctvhcJdmS5EfK32Iao1?= =?us-ascii?Q?SgRz74QMFCdnt4XUPyhz1SFuja+KGxQy3wDLWR5j8ftgSZsB6G/5cldFdDg8?= =?us-ascii?Q?SS1fuY1439XyKAvExIqRjzQ4D19Pc7RjgQK4+4QccT6UhAigfdzJm8efyvTb?= =?us-ascii?Q?TsUQEIHK0sjUhts3TuqH2pBRCXHCTImFKTvPTCtgHL/Af1SKFlxILg+6/bGF?= =?us-ascii?Q?A2PfgihD0P/3Tmoy4lBxmJ/c?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3194 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Grant.Likely@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a72e6a73-7480-4c18-2e1f-08d8ceb50f72 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5f82DMxfaCjltmRBRNtUBjl1pQtJZnC6EWIss0DStVG4zk8DZ9rdoNFf+699sPTlijgFNNYJ8mB0DNwWrdmFLaaReWg4NwRr+x/zdC562+HyNbsCLTZMypYp9apyiDFiY8MuWikRmTCM4oB5IzXCzA6c+E3DPOEGUeCy5drS4ZcAwkkXdbBFviPmBY4c7XvB5oF3zb1MWVRE1ZXqlxCHf1noYSn6uM9Ur2TMfRmfd3HF4KO7o/f/n7ThvU40M0lLyxnh5XFprvm7RMITl5F1BlI4hDQLXmrjhFSxZYZscCVh1tcRoJc3aVpVfF+6VNjy9OHy6X7tHlHg8/Hp7sQ/PuERRl58SJDDG7dr/S/rrOYwozm+KLPvUY4v9SgZD0+03zGOlDILTMRkEtpDqzUM9K1rMp0xTM1H8hjnDYk4wHG7CEbifaOBmCIJkxXL/gWqkW/cpq/jyBzLr9W4jE9TnwSl6RGOp2NWL7j2t6ILeJT7qezdtHVWDqmml3B/WAm5VOg8cnFCXkAW83IhGCRfWTDTA/Or6Pbt2qLc6ObBBHCDOyvq1hCg3Mawm6DIz3U5TXNnX1qMgZjnlpubxXFzyFLW5q4BiMv0nVUMmpnUU8CcSbxa1fIiw8Z+nUn1s3nzTelyLWCsNuWC7xwZ3Wb7ooho8crktpTVFyWl05kVmCQ= 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)(136003)(376002)(39840400004)(346002)(396003)(36840700001)(46966006)(6486002)(36860700001)(2906002)(16526019)(6512007)(83380400001)(82310400003)(1076003)(36756003)(186003)(110136005)(54906003)(86362001)(5660300002)(44832011)(316002)(70586007)(70206006)(4326008)(478600001)(6666004)(81166007)(47076005)(8676002)(2616005)(8936002)(6506007)(356005)(956004)(26005)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 17:47:19.8413 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14c86acc-e2cf-4e18-9fda-08d8ceb51455 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: DB5EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2401 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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 script so that $@ can be used for the remainder. Signed-off-by: Grant Likely --- uefi-sct/SctPkg/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 --=20 2.20.1