From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.81]) by mx.groups.io with SMTP id smtpd.web08.8288.1613837029817499708 for ; Sat, 20 Feb 2021 08:03:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=PTi2dQIE; spf=pass (domain: arm.com, ip: 40.107.22.81, mailfrom: samer.el-haj-mahmoud@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=vhV2UzkEpWY/Xx3mjUINO5C5dcsk1laKwAiTgQ10oiE=; b=PTi2dQIEJFAM+uDxlH4eOQ1Ghj9+ziV4eubsF9FYFrBPBYvKCwgmxRePVVXm3wfti2STXUDCTRwaCMu0LiXtEMNrbGIQyVmH4iwHhKUnuIBVzuyn67UFUxKYcCyKvfCuObVnOjoOvO5jRrM8mpHPkHkh8cknmJ8SfCa4GMKel7c= Received: from AS8PR04CA0238.eurprd04.prod.outlook.com (2603:10a6:20b:2f2::33) by PA4PR08MB6189.eurprd08.prod.outlook.com (2603:10a6:102:ef::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25; Sat, 20 Feb 2021 16:03:44 +0000 Received: from VE1EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::d9) by AS8PR04CA0238.outlook.office365.com (2603:10a6:20b:2f2::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Sat, 20 Feb 2021 16:03:44 +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 VE1EUR03FT045.mail.protection.outlook.com (10.152.19.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Sat, 20 Feb 2021 16:03:43 +0000 Received: ("Tessian outbound fb307b4548b2:v71"); Sat, 20 Feb 2021 16:03:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: edad7e85ce9de030 X-CR-MTA-TID: 64aa7808 Received: from 488762dc368a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2D079851-27FB-42EC-B2CF-7E42F9002435.1; Sat, 20 Feb 2021 16:03:37 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 488762dc368a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 20 Feb 2021 16:03:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oOiiSmpnBdD5dpKLJR9K++tVoEzz5xbXp+HwiuLbJ7TfnVtpAQUw34CRrrGSZ2RBYYPMNw6QeLj/CZMrSpIm0zmPBHKqSwKBxsK3rxZhxomkWqLz7DRMKRfq6WXoutOhQKJ3N14ZroqoA5MIpYu+4+jcNcElbVi9CHMUgmDp5YvFKfN0Eo0uCc7dx+I2jCmCdD/vbUL2HF7dWTGPjl15u9eAU458u8j5WfwME99xFGX6RfwYsllnymHu6ldavSLg559uTznNoKxgFi1HfD5Hm6ESgmV0IF0XlP2rhTI8ymMPInBNcatqiMQWZtjLc/vfucSDWXkaBL2lGcRI+vl9Bg== 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=vhV2UzkEpWY/Xx3mjUINO5C5dcsk1laKwAiTgQ10oiE=; b=JbWPa72EsVkO//XsTiRsg9fd4W7gPtrFybEaUgErlfae0AeHg4zVfY5vUviNR4JeiQwW70N0MVPdWMOPhF3dL7ROev2C6jVzWpsJJ8SK3AIef5LLy44AsIJQq+7KCPbQgG57UzJi8rsN6kdSibKRbkgkzjGJ8DhruX3j1K7EVzLSs/tpmgZfLJBL6EsuIk/8h/uxjGNDCUd+nxtgEcoV+ILOGmjwKv1TIGlRCEdwAQcMU0TlkO4pO9dOtN/yT1iHTW4Q28eNB4g12dFZuGB0DJGyuYHscWGwHosseOD6uadtSt182fvCbO7SiHfPHHCqtV3LFvH4cY3Cz0JzgdRVyQ== 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=vhV2UzkEpWY/Xx3mjUINO5C5dcsk1laKwAiTgQ10oiE=; b=PTi2dQIEJFAM+uDxlH4eOQ1Ghj9+ziV4eubsF9FYFrBPBYvKCwgmxRePVVXm3wfti2STXUDCTRwaCMu0LiXtEMNrbGIQyVmH4iwHhKUnuIBVzuyn67UFUxKYcCyKvfCuObVnOjoOvO5jRrM8mpHPkHkh8cknmJ8SfCa4GMKel7c= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DBBPR08MB6057.eurprd08.prod.outlook.com (2603:10a6:10:1f5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Sat, 20 Feb 2021 16:03:36 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a15d:ad7f:98a0:23f9]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a15d:ad7f:98a0:23f9%5]) with mapi id 15.20.3846.043; Sat, 20 Feb 2021 16:03:36 +0000 From: "Samer El-Haj-Mahmoud" To: Grant Likely , "devel@edk2.groups.io" , G Edhaya Chandran , Barton Gao CC: nd , Samer El-Haj-Mahmoud Subject: Re: [edk2-sct PATCH 3/3] edk2-test: Helper script to build SCT+Shell in a bootable format Thread-Topic: [edk2-sct PATCH 3/3] edk2-test: Helper script to build SCT+Shell in a bootable format Thread-Index: AQHXAJ30AgYgPWwJIkm6kFqom1XK4KphQpkA Date: Sat, 20 Feb 2021 16:03:36 +0000 Message-ID: References: <20210211174605.17937-1-grant.likely@arm.com> <20210211174605.17937-3-grant.likely@arm.com> In-Reply-To: <20210211174605.17937-3-grant.likely@arm.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d8992127-9b0e-4ee4-dc38-08d8d5b918e6 x-ms-traffictypediagnostic: DBBPR08MB6057:|PA4PR08MB6189: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:7691;OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: CNejVEUmeUBrFB1ZfyjJOYge/lPPbcnGINychf57J+H3Bjxv/1hdZ1Ei4OF4fIIch6szLZ/lfj8cOnUGdiinxJ56oIDBbfwouyj4+xYFBllarsA+IBd363/3Cu3K5uCBRvvoub9G/OIDZww5B/3BWd1TDHt7WgdoUp5+r7evPae0AovEqXFAqR1T4s3oBaJiKOrFvcde0uZ9aIQQv7TkaZmuPEcxWwwpY7hNeEVqnQN35FZjvqwFo2f1A6ft4H/lfOESvP+dierDHXFlSPoMHrIZID64+XHyIsSz+IU+r4LnG1Rm0E+fLwgrkw5MsXNpvzubikQrvpzbtnb6GFCVz7F0sxPwNE2hHFSK3IW3tt4lItxzS8Bh9hGgGvpWe3hWcL54NLEao4zAvc/y0iZT+aKZnIditKTXoMFHTiuI7uKc79JCUrFKGeQ14/YMInyDAdDM9Z1GuYegvUR8rDmT+4Yjec/2YsW0mC2RfJ2oHLRkV+WQfO3bzVbbk+HcOKVRbG2OVRueB94EljG6MBTNSqEgHNx6ZZClb3dsMPweuYjaV/k+MNHxvsHxhfGfVsSuDomg3mMHDcw+BVhp8LrOYtKPemIlSVFGCuZPmmYop7E= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(8676002)(5660300002)(83380400001)(6506007)(4326008)(2906002)(52536014)(66476007)(53546011)(66556008)(15188155005)(66946007)(66446008)(64756008)(76116006)(186003)(316002)(16799955002)(7696005)(8936002)(9686003)(86362001)(71200400001)(966005)(26005)(54906003)(33656002)(55016002)(478600001)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?FHf1huo/y8STMNktypkVoQi2/qWPR/52txVmvqzb6jmZcWEtDQdEDcBtrvvE?= =?us-ascii?Q?FVUkr9FA6WZawul3IIq7SNBnQ7PGmbrXhmxF7uOXmNmb3Vlh/70GFqOayJM5?= =?us-ascii?Q?0ikaalB8Dr0lZSNEhaXLD860b59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PJ4bOwXxfaog4pPfCfBnDXtSWupgple7oueywApLBjffPQ0F0?= =?us-ascii?Q?VD0dNt1XE16Mb+fvBZqF1CKfhxFwUw0xTvvGR/5ArvH7O0e3BFeiWJhPw0Ks?= =?us-ascii?Q?TTF1XJmTYMqGV1lgaVJixfqQDmv1eedCb8MmaxsbKCNmRaK3z9WcdE3Hi7El?= =?us-ascii?Q?j5z1pcGwVIAn4xNitHMaUX4JOrpXX3xnPZdrIc8f1T47tKkQYMUlu5RPAtLr?= =?us-ascii?Q?oFiQJjJ92UPVEv7EM8bckPH8dxf3Eh7d1018LtC7N1sKShfmj75P5TXHuUYM?= =?us-ascii?Q?TzoHz8I1EIlpiNePqRAnh5SQ?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6057 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: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 0116bc60-16ba-45eb-e310-08d8d5b9149e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: htuDW39UNnODNlAHt0OD85eZOwMcQB2GBqvY/1XuQvW3g3XnZn98yw6TcMg62j5LJom3Uu6w5Kuqya+X1PJ1K5bg+5EKwFlZEnz7o9VPY4D50V2kk9QUs00pt4FtewlUAhY5vNbLjojpfWnIkpSWmAdjipiqq6IBeBfaP8ooIH/9mUZ72lafddtt1FOc+ujXYJXpuEh1Q9pVFonjVEAy/V2EHV8olath3bdm8+51SQeQda3wDZPrh58JoyYgrJEODwuCYObGsuec0p4J43H89LUgG4XwSbNgJjlxjqOQMkapOZethL47Mxgb2XdL+RqzQzuloD8SXCFwWAr9U44Isg4E9mzZV86rYtbsV+uv50+RbqQiTzoV1mMfWXyxAvKD8Fe2AXEwv7rvtYsCE/jr8pVoUd080nTVt0iMqyXeRrwDIUwJQn09C6/amEaLF3wOy6FBuxc6nZJ8+9MtsKPOj3W5EBY9L3vmEGSAKkSrj84GmeN/MI7B3K8pGM5aimNCtkNFaTJOWi6uBDEbxfZS+zceMAxpRQgbRvz1gwfVuroLyFR9HtmhZqZ1V3aQea5yqjXKnRe1v3eU8hiWfQs47czcStJiFzsOSyR8MwtppM/gaPvSomTGUKnvrgyBXkxE/nuWEUoIQ3AFRdebj/YCQ5l3nnTX6HGhmyQ34dBTxEgIQwKtl0N973spdk0OUn+n4ZQsAigt/A+OfZNXZ+lutMJunzt0rlEc2spLXhIKv2k7HNGl3Q3eiQSvP3MSYQum 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)(396003)(346002)(136003)(39860400002)(376002)(46966006)(36840700001)(9686003)(53546011)(70586007)(26005)(52536014)(186003)(110136005)(7696005)(33656002)(70206006)(316002)(54906003)(4326008)(82310400003)(81166007)(83380400001)(82740400003)(8936002)(36860700001)(15188155005)(6506007)(2906002)(8676002)(356005)(55016002)(336012)(966005)(47076005)(478600001)(16799955002)(86362001)(5660300002)(2690400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2021 16:03:43.5054 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8992127-9b0e-4ee4-dc38-08d8d5b918e6 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: VE1EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6189 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Samer El-Haj-Mahmoud > -----Original Message----- > From: Grant Likely > Sent: Thursday, February 11, 2021 12:46 PM > 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 3/3] edk2-test: Helper script to build SCT+Shell= in a > bootable format >=20 > The buildzip.sh script builds the SCT and the EFI Shell, and then zips th= em up > in a file structure that can be booted when unzipped to a USB drive or ot= her > block storage. >=20 > Signed-off-by: Grant Likely > --- > uefi-sct/SctPkg/buildzip.sh | 67 > +++++++++++++++++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > create mode 100755 uefi-sct/SctPkg/buildzip.sh >=20 > diff --git a/uefi-sct/SctPkg/buildzip.sh b/uefi-sct/SctPkg/buildzip.sh ne= w file > mode 100755 index 00000000..c5bf20df > --- /dev/null > +++ b/uefi-sct/SctPkg/buildzip.sh > @@ -0,0 +1,67 @@ > +#!/bin/bash > +# > +# EDK2 SCT build script for SCT+Shell in a zip file # # Copyright (c) > +2021, ARM Ltd. All rights reserved. > +# > +# This program and the accompanying materials # are licensed and made > +available under the terms and conditions of the BSD License # which > +accompanies this distribution. The full text of the license may be > +found at # http://opensource.org/licenses/bsd-license.php > +# > +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" > +BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, > EITHER EXPRESS OR IMPLIED. > + > +set -e > + > +TARGET_ARCH=3D$1 > + > +if [ X"${TARGET_ARCH}" =3D=3D X"" ] > +then > + echo "Usage: $0 " > + exit > +fi > + > +case $TARGET_ARCH in > + AARCH64) > + BOOT_IMAGE_NAME=3DBOOTAA64.efi;; > + *) > + BOOT_IMAGE_NAME=3DBOOT${TARGET_ARCH}.efi;; > +esac > + > +# clear all positional parameters > +set -- > + > +source ./edk2/edksetup.sh > + > +getconf _NPROCESSORS_ONLN > +NUM_CPUS=3D$((`getconf _NPROCESSORS_ONLN` + 2)) > + > +make -j"$NUM_CPUS" -C edk2/BaseTools/ > + > +# Build the SCT and the shell > +DSC_EXTRA=3DShellPkg/ShellPkg.dsc ./SctPkg/build.sh ${TARGET_ARCH} GCC > RELEASE -j"$NUM_CPUS" > + > +# Assemble all the files that need to be in the zip file mkdir -p > +${TARGET_ARCH}_SCT/EFI/BOOT cp > +Build/Shell/RELEASE_GCC5/${TARGET_ARCH}/Shell_EA4BB293-2D7F-4456- > A681-1 > +F22F42CD0BC.efi > ${TARGET_ARCH}_SCT/EFI/BOOT/${BOOT_IMAGE_NAME} > + > +mkdir -p ${TARGET_ARCH}_SCT/SCT > +cp -r > +Build/UefiSct/RELEASE_GCC5/SctPackage${TARGET_ARCH}/${TARGET_ARC > H}/* > +${TARGET_ARCH}_SCT/SCT/ cp > +Build/UefiSct/RELEASE_GCC5/SctPackage${TARGET_ARCH}/SctStartup.nsh > +${TARGET_ARCH}_SCT/Startup.nsh > + > +# Copy the SCT Parser tool into the repo cp sct_parser/* > +${TARGET_ARCH}_SCT/SCT/Sequence/ > + > +# Put some version information into the ESP directory cat > > +./${TARGET_ARCH}_SCT/versions.txt << EOF EDK2_VER=3D`git -C ./edk2 > +describe` EDK2_TEST_VER=3D`git -C ./edk2-test describe` > +BUILD_DATE=3D"`date`" > +EOF > + > +# Zip up the test folder > +cd ${TARGET_ARCH}_SCT > +zip -r ../edk2-test-${TARGET_ARCH,,}.zip * cd .. > + > -- > 2.20.1