From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.45]) by mx.groups.io with SMTP id smtpd.web11.30494.1613392253451133690 for ; Mon, 15 Feb 2021 04:30:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ASTQ62bv; spf=pass (domain: arm.com, ip: 40.107.21.45, 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=ckhBnJuz+aNFG6rSZuhcOfnnHDGjpdMR7kmRifE+z/o=; b=ASTQ62bvGFCuGmgOueQljCiNwP5wPNXoFebGhiE2jGZVnfxFfoywUq+gniplW9Z5PcCqVTg/F+Gu9CB2s3kkMGC0H0OMLmAMkRJnPpgyJwNFUDkoJSKONs6sgcFsgwPqskTEASlOtJ2NPOLQPQR0sgtZLoyr1cSmokK3ljJ4zWI= Received: from AS8PR04CA0146.eurprd04.prod.outlook.com (2603:10a6:20b:127::31) by PAXPR08MB6382.eurprd08.prod.outlook.com (2603:10a6:102:158::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.36; Mon, 15 Feb 2021 12:30:51 +0000 Received: from VE1EUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::a1) by AS8PR04CA0146.outlook.office365.com (2603:10a6:20b:127::31) 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 12:30:50 +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 VE1EUR03FT007.mail.protection.outlook.com (10.152.18.114) 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 12:30:50 +0000 Received: ("Tessian outbound 587c3d093005:v71"); Mon, 15 Feb 2021 12:30:50 +0000 X-CR-MTA-TID: 64aa7808 Received: from fe8f77f99fcc.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 364E3876-4619-43DF-AD2A-E4EED31254B2.1; Mon, 15 Feb 2021 12:30:45 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fe8f77f99fcc.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 15 Feb 2021 12:30:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhaAikhxfuF/gz24C1f4S/2X5Np/yS25vMLPiFYlbbak6crIcXL9pOCh+zkfNe3ZjRbs5NLjjI6ICFBsn8uL3mwjlo5uCdj55JhsgLnGNYqNSwPNqOaw53uOyCzkrJlWoGASNmGk2o7sVEUb2xgT/TvJq1n4mWaU3r4zft7OFVVWchE23BxDe4q+F7R5QWbs5mFudetD+rcj82EalQ3hTQbQYVnvoPcNJIUdzQCxRPj9//LUigWV98PV3blRhrzOojq7MfmU5e56b4IpXIwOrhelmkJ9tb6kfwi6tpDNPN+6jgYcz/5naDU0qnEGIw54LWRlv4+Rdaekip2bSZMR4A== 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=ckhBnJuz+aNFG6rSZuhcOfnnHDGjpdMR7kmRifE+z/o=; b=YYUvU4Xb+xKNC8CCtDetVHRuEynt1aCWplbawkdmPjWrvSdJunLa5laVythtUQEaeR3rVSX/qeYM2t/aZQX6xgXuYY7zPwsFlUhPQpBr6LWkr3pspoETUgRiFDFb5j6Qyps0LrDvft8B/WYL0S9GCsMclX0IQtma7JWM/BwAeElVOrQBmlRbBsHciStM+gu9Sk1xGMa5oRE9gHZqVoUXe3X1QdOU9g52I1lgvrpA01zGlYJNTwwmT6rfoSfe2yxxfgSzvveLkoWYsjjueIz+ckmHDVOYihFmf6cwNWqeWyVZOJQW6+4aNcRdLsKOqkFi/I46eOIJis0g1H9NuIzdgg== 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=ckhBnJuz+aNFG6rSZuhcOfnnHDGjpdMR7kmRifE+z/o=; b=ASTQ62bvGFCuGmgOueQljCiNwP5wPNXoFebGhiE2jGZVnfxFfoywUq+gniplW9Z5PcCqVTg/F+Gu9CB2s3kkMGC0H0OMLmAMkRJnPpgyJwNFUDkoJSKONs6sgcFsgwPqskTEASlOtJ2NPOLQPQR0sgtZLoyr1cSmokK3ljJ4zWI= Received: from HE1PR0801MB1691.eurprd08.prod.outlook.com (2603:10a6:3:7b::13) by HE1PR0801MB2057.eurprd08.prod.outlook.com (2603:10a6:3:52::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.38; Mon, 15 Feb 2021 12:30:43 +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 12:30:43 +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 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: AQHXAJ30Eud29ngX1UidaEVm+vI226pZKzAg Date: Mon, 15 Feb 2021 12:30:42 +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: x-ts-tracking-id: AB8688DF5129DA439ADE2091BFCCA840.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: f165cea4-5029-4d89-7a88-08d8d1ad878b x-ms-traffictypediagnostic: HE1PR0801MB2057:|PAXPR08MB6382: 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: wZVzugP3seDpIq1M01/RK0kH70NnTriU3z/aL0Xf2IzrTTPAj85/hlzxkTp34yaj6yJpcYeQD2FYr1g9Lz721Luo8uxBfEZT0A89EAncdwzkwTBVjQWabfBx68qS0Sbz5vURYjZk6s/MVW6DLGNPql57OwIkxz7JXX3KIpIa6gg0nuPcn2D12e/EFtdca0SGPaBeMePWw1xZJEQ2y/HzKnqT5YQKMQLI94CUQx8h8jwRsefX8OzT6uMSSZRaJIp998FVoIGcKmdV/pNATb0WXa4Zsj3Yoanr6dqfgSJ89rMz8GIdoVFoRJp4d1pGPJ4Q+azHtMtzXaGqVGznZ4OgN1cM90EvQ/33bkaPFncc4avGc5PaGt0LSHl4n4ixF0qjcDUlTr8GTtHsk9t/75am+cniLtjv3qJ0Z2pz3edCfhzPA7h+iPIm1Ca43ypxuJgy5MIZ45uojyYCffdo9DyINJM+TUmFaCPHejT7vofP3OZiqgjAWJzUqAfKmyehvaZCWpCUa0BoATYvi7Fr6Lo8oDtPOzsY3K/yGH4cFmWqcYL78wF4k2J9G7nYnK5k5v5hajDMMmnC95lUdZqW6ax0KO7wh7Ew0vSb+tzJawvT0tQ= 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)(366004)(346002)(136003)(39850400004)(396003)(376002)(55016002)(26005)(66556008)(33656002)(54906003)(64756008)(15188155005)(186003)(110136005)(7696005)(316002)(2906002)(71200400001)(66476007)(478600001)(16799955002)(4326008)(9686003)(86362001)(76116006)(966005)(83380400001)(53546011)(6506007)(66446008)(66946007)(52536014)(8676002)(8936002)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?kFjjMz14Krbk5tNZ7M7nlRMaWnOrg1BPAQLOzqr7g9nn4OzbbIxpFUKqULor?= =?us-ascii?Q?s8ABEN0c7b9a1eJdFXlOE3y+LuTr/1Aom6MnVa7IZM4oEY61Y3hH5RlZ4vrC?= =?us-ascii?Q?Mh407meOASkDy9fqJfF0c3y3K1+27/vLaZQL9oKJUFnOI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J0uDOsKybQSQ3cqaq6Yb9dJwutwYhnqtN95tWVzW9PqBbmUk?= =?us-ascii?Q?xQx3irZcIOkykeW8WAb+y4Q/ApWZ5EfkixMsJ1Iyp4yrjS+oZgtOKkd6ZUly?= =?us-ascii?Q?K2orBmT+gJdT8O1h4PZXWViK7NnPW6jW25hVEQEqj08WSkJS7hG7TMFgaEti?= =?us-ascii?Q?0QRJRMzDgLKKZbdHGmaWxY5NIRlx07jntKQE5N6CiDf5grC6q1gr2qnpwpy+?= =?us-ascii?Q?TEyK+bYxk+ybX44qFbDuRbfkX87ZAAnZ+AO+ULvM5bHxYMzdtw6roZZRd/VH?= =?us-ascii?Q?mHS1ANaSpd1y6RFK7nYMIcww?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2057 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: VE1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 68e95d4d-3bd2-47aa-a355-08d8d1ad8338 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kh0lnLbhjV7CzP/8q7POazVpL7BhaFhFaMAWaQBXlIy/81W1wZRblQHf177rB/bLn2gzStdSlKM7GhB1oGVDh4X+gugpVz/QRZdZJhPRG3wbbfAXrFJFfWNoqOOeO5U2PAhS4u+C36HeElUkU4AbtUBeF8hZpWW8iRqKR2rLKQk0u9+QhPVDhx1MuCffFADrEqPi2m9Sk3yQ0h+b4lTwmvcGwj+1hQ5wL/+yQZmFx6ipsGaXxPTlgg2ur32WEJN4Z75MepozJWU06V9AlN97IPoMBoMPb7StWzcRSAsjgmSyhL5DqByjnkg+PZ9TLdCqcPtzlU/j8s0pTEozu74dB3Gg292YHR9PF86DaFdNwQyAtIE2zUvShu99pd0c5UOnleUsA2rUsHoExmq3o2P0mflqPZoTeP0LLnf3cCW4xu9kiiwx5dMZDjcdn1v7zCjBhnrFa4eTRFCjXu+09lwBvcRF5qGiifNx/7EJ2Qy8vF6cegWTt3YibM/uDw73y8YlFKq6HJyGwb8J1cOE9DkdHsLaWawRVWT2uXVm/xIFMc4Qk0kQ54ODg7MHILmEhx846HcqbC7FXW3wdxQZxT/8IKxxHepB1mvMXTGKT7Zac0st2b3IuO4A6wrQTz8PPo3hOEnnzfi9OrVg1n0FFEEtuN0Hx5brxcOrqK4mwmBtkt8Xubrpmm+jpmLcE/GP81lJANu0APs2VbyQkCRzaPIucxJAXPHr7PIFKAEQi9S0cpGRoTiZiSSRofXhehY5S+mn 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)(396003)(346002)(39850400004)(376002)(46966006)(36840700001)(47076005)(36860700001)(55016002)(54906003)(83380400001)(70206006)(110136005)(316002)(8936002)(966005)(2906002)(478600001)(52536014)(81166007)(9686003)(4326008)(356005)(82740400003)(15188155005)(8676002)(82310400003)(7696005)(16799955002)(33656002)(26005)(186003)(6506007)(53546011)(86362001)(336012)(70586007)(5660300002)(2690400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 12:30:50.5268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f165cea4-5029-4d89-7a88-08d8d1ad878b 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: VE1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6382 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Grant, A minor comment: +getconf _NPROCESSORS_ONLN This print may not be needed. With Warm Regards, Edhay > -----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 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 other= 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_ARCH} > /* > +${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