From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.80]) by mx.groups.io with SMTP id smtpd.web12.64.1613065649028141279 for ; Thu, 11 Feb 2021 09:47:29 -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=R/jjgN7O; spf=pass (domain: arm.com, ip: 40.107.13.80, 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=45lGeO6F7yXeiqc6Iq5mPoNLVZbAI/2yiyHYxyH5fFc=; b=R/jjgN7O0MHv1nx7eA+sMAs4/fmtkvKAdS/OSn8xjTgixtyWSZOKcpg5rMLFBdE0DF0WO+OrYjo76982nhidJxgDgAUf20QHAQlZ1cIs3MB/NNr2zu/kNNkJKSWLQJboKkYB2KmKwC53HvBXnW+d/0YfewsqwDPUMX+2oIF+WM8= Received: from DB6PR0501CA0003.eurprd05.prod.outlook.com (2603:10a6:4:8f::13) by VI1PR0801MB2109.eurprd08.prod.outlook.com (2603:10a6:800:8a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.28; Thu, 11 Feb 2021 17:47:22 +0000 Received: from DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::73) by DB6PR0501CA0003.outlook.office365.com (2603:10a6:4:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26 via Frontend Transport; Thu, 11 Feb 2021 17:47:22 +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 DB5EUR03FT061.mail.protection.outlook.com (10.152.21.234) 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:22 +0000 Received: ("Tessian outbound 4d8113405d55:v71"); Thu, 11 Feb 2021 17:47:22 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: aacdea4cc65a2391 X-CR-MTA-TID: 64aa7808 Received: from 52f3dc154c4c.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9D6C61E5-0BDD-488D-B149-A724E0BABECC.1; Thu, 11 Feb 2021 17:47:16 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 52f3dc154c4c.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 11 Feb 2021 17:47:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JvWFe0+SeLDvV57xwMUk/nS5ezXQm6vXRmn1STCmddPr7ZiY2zmf53Z7eSkpGtMu/Yt2P2ohDNY/qFAvi7nBYbfTzLv6p4iVXPJ9szpmTjO2IfVmytRbtx3lgqKSqefKFhPPxm5XHXnxaAALa4ZyGoc7YextD2FFdeB6QNrIQBeYQgB2mMnVPjuiF70/KDlGlTAFtCrignkNe944tKVzOUirCoLoRbeGbnsLX5OHB08itCc7l3rTwfpi7nh5nN7czVGHTfibYEfYrAWABt43s6MDbyOL9yZV3CKOYFf/7/bgqpPpkCbUk+sZpJju4Qz5KAwh9B/m3v37bmJS1Kx1HA== 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=45lGeO6F7yXeiqc6Iq5mPoNLVZbAI/2yiyHYxyH5fFc=; b=BOSnvS+z4SJAuxhEMdHgOhCSTJ03F90KCIKgzex4qfKbtleIAyhxNKWeIx1R/Dw6ozrOYlOHwEwJwMnk0G8eUNaFQb3USK+Fvc4wTFlhQ52UtILhCcJjC6I3KSvN0vXIpQAv+ZV2aUmvp3SWf0mGxbc8Iyw72Lrw4JxXD1X5ufvkgWHxoNn4rvF3tkxCGykK+Aoex4YfcT/so/RNFeb7EAVEMDYXo7Ac2Z3qFFGJdpFzpdWXvfmQV9dyixJ9JpmPmUd+RQYKOG8JJgkoF3DDOEXFw6qA2Hc5AldvI8d8v2Ubt7nBAX+np7X7cUCoE1eMALzIqfXXQo6JU9IzeGf14A== 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=45lGeO6F7yXeiqc6Iq5mPoNLVZbAI/2yiyHYxyH5fFc=; b=R/jjgN7O0MHv1nx7eA+sMAs4/fmtkvKAdS/OSn8xjTgixtyWSZOKcpg5rMLFBdE0DF0WO+OrYjo76982nhidJxgDgAUf20QHAQlZ1cIs3MB/NNr2zu/kNNkJKSWLQJboKkYB2KmKwC53HvBXnW+d/0YfewsqwDPUMX+2oIF+WM8= 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:14 +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:14 +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 3/3] edk2-test: Helper script to build SCT+Shell in a bootable format Date: Thu, 11 Feb 2021 17:46:05 +0000 Message-ID: <20210211174605.17937-3-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:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 67ef6566-d3b8-4157-c8b9-08d8ceb515d5 X-MS-TrafficTypeDiagnostic: DB7PR08MB3194:|VI1PR0801MB2109: 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: GmUmDIQ0vbyWpFWWtgkWwWFPk6O5DoAJ7dmCUKtDxzJvGZGhlstnFXNn9cOFpvn7rBEpFGGPTW74xoVmcAY02sdGwm2LG9dLUYelEjSOVRw3TpgzTNMJrP3mpRRPE3CQI0+PRCO97jhv/wPuA3S0M4H3UJ0UNBMW1Cz6Z8WzsBX7WEmcWAPQL8cqzMJQbTdCX2o+oj6z9cizKkfmCO3mIeK/GwoO0rEuOfONgrt48r9a2im7skKnRByGGdPTOevHuUwDJjl9qamhSSkuh5k4VzmDAwNV5iuiG7ILptDMVBfGRe45aICpze/uQUGC+vrz5wGht8ei7kInrTYxCT7CH8Ut5wLhd0kB/j6cVF+pSB/Rg8K2ja6Ukw+xzlEm92LqGvEaMa4I4XQJN5M48FfP1MTMWTHPAVIWup9yj7lYCWXY19s/tjcARXWwgq7NvEQB7jT0k9STi5pNPgt2XglLSz1GJ80n1bojEqGWEg3R/PpsYr0PE7htWHBEPWFlLnnpJAl+RSDgXvzFa39UEPZLmAk+T7IElkeRHcQ7NlKiADKAmMRGi4nxnwI3KbXJT1tvsg3PAPXQtP6R98FymsmwdCGQQ6cs/+Ttg5pjVKgwrSw= 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)(966005)(83380400001)(16799955002)(15188155005)(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?s6fJiWjNzg5UUD/NxLmxStuFlOyeTdI3023LrI8pn1wERBRdaSe3rBJKe3Pv?= =?us-ascii?Q?LEPAsRWumg6bKPVNcnjTWVTJulzW+Sx3Mv/myXvFAwEd6PgjrkIrXGdZyVrY?= =?us-ascii?Q?bvZhWT2ktkwioP98X0Vqm8bJwlaUnrg6ZjZvlItOn0rljwwGn/8rCMHL+KDX?= =?us-ascii?Q?hinfukdxu2tFir9OzfWAR3s2B5BjUygOviZY7KqPWmJNV9nq2HEtZBTsgULH?= =?us-ascii?Q?FsX6T1LKSXxNAlmh/gt7TUEdP+Rt4uajj6OKYwgNDPbi6vIPuvEGE5Gr4+Kq?= =?us-ascii?Q?0c4m+bP2MHHY5g8k7sKTUmyUuOBfxJZNmE+jUNlWbsxK3oicem/zhLJv//Ol?= =?us-ascii?Q?1srU2Pgfq0k3xg6xYxk+fbdRdmRvx3cx6N3O/cwmZlpAClyhNQYLtmDzIiF0?= =?us-ascii?Q?Fyzy+8jo3HPzBrsvu6V4geuAuaovLYP9i9VvxduMMQE03RgvZ6W0dFJL/lCE?= =?us-ascii?Q?tPocTLHSreyjQyI6hxshN195Bd17RenAhUpmpdcxZ2xMn/b4IQmdd2SUnOuQ?= =?us-ascii?Q?Dz1LrcHPRQIc9cokG0OV60eatJxshOth6kkjLq3G4zl52egMp286uhdk9ghF?= =?us-ascii?Q?mfHdgFpxhBh0Sq8U7drsOJl1xvlaGMaFjKi2ZqFs0peiN+M+uv/pOGpmxW3o?= =?us-ascii?Q?qoZQ7UADOeDZISNuvdHyd77OvnTV9mAqbQEAr5INBMxGNxBVHjcniPlC4LtP?= =?us-ascii?Q?pQyOOtovkMqx4yQQhq28PuLQ3L7ucmRr3FtyynqAFpBE+UaQlqxfCyKY/wFa?= =?us-ascii?Q?LcrADl7juD7LwMdiI67MsKIMWNhHwSE1hkR7DB+9fVRdGV7+Z0E0j2Fdq6t0?= =?us-ascii?Q?Gg0+CHYmQJ1LKkAildjRkmFYu7QvdPR8Tn4z5Csmq6alrwcSqJurBYmslAuI?= =?us-ascii?Q?KnPH3ZpxIWUY1fnYUresmyDpr+gDkxZgKgkYznaRppkAm+evMXDjGrrDQAIT?= =?us-ascii?Q?+xXKYr7zgZ3t1D+Gf/knj3h5jaWUY3R119mTDVnrjm5KnmW41aAU0bl+Ll5x?= =?us-ascii?Q?hxmfGJ98+vn/dQ8HEAKHDsvn9XQr2cIU8W0nrAVPbFQK1bsX0Y4xVmUwe/9u?= =?us-ascii?Q?ClqKBJ/NS0H0wmOz8B7wHNFziGigMTB/YVmoBK2UAvz1EtYVP4gGh+RCMhkp?= =?us-ascii?Q?DhRWwX3hxsGeEmewQ+DiRDs64tcnqkABRNnZMn29VgPmyF0bKergxrPavsrC?= =?us-ascii?Q?4GVV0w92ou83DQFZLnu0DNCgQA0UPSFyNPNXlTTJmYlW5ecZETRbweB7YKTf?= =?us-ascii?Q?ip2QLmXn9Ou36+SygTpXPmXt7huFYLa2CB0JgWXzB2TwFrNZIGp9r4UppFsQ?= =?us-ascii?Q?ma5qcfTb+FTnMoAuu7mwRPZ1?= 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: DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 50da3694-8b0a-4ac1-0871-08d8ceb510d7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gnENPH40WkIDMjzczHXe8gMzmr4TM1OYtevt9ds+5x4mu5C2fmvD8PXUJpS+9REiyYXm8glNAv4R5RxbWS6v9qkOeLBNnxJTbAxhwmutg7wv/h4j4BW3O4Aj1k7uM69DOjzb0ijwNMXkotOzPkiXqWWEDsr5bNoWzcd8WhNYngfFyY20IjwZ8Iluf9k0p/HBJ8RzzM4AOBi3gR6ZcPK2NfP9EpWUL+SPjJ5xOYWKNkRDlkmmwf+bdYdyiIvmq89mSkGUL18BSQCC2sCs1msUF+OiS9j2HGfbaBUlSjJBMXs3RZm2c48q272rE3HcZxrRJbOs8MpW+xE6ItecPwjyyb4zQ6adpS8iOkze991dAtD7bmPFaSDZLCnRN9YSLfFseqgRKXfUo/ata0W7G4z3EaX+JBrB28d8Hrn25jw9lB2xyGEk3wgMZgldVi4B1gr8C6PLg9Z6eAARouYULG/iaPRi6gVfjTN4kM/mJjVLzmlmoYZHT7gJm9lxAjE2VGAbcSfhuljMQvaQVU5b2QdNkar13VhqN1GbyMUR2YcqO8jVcH2BK/Z9r59wQtHO+tuKTSriq8EzFs7fuc6RncIBIf5NcvzfHqZqTc7Z/R5HxziT9u21ir6ZuijQfgkGx3nwuaVNWp76L8qs/HLUDTMeUI4JZeDFw/hnhWWQfKe9vGXb6LhbBUwikqK8V5xYdF4Yf6Uj8Eic1EJflZoNchNdiv0YDU78hesmO9OyS4Tx3AI= 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)(376002)(396003)(39840400004)(346002)(136003)(46966006)(36840700001)(2616005)(6486002)(356005)(316002)(6506007)(44832011)(966005)(478600001)(36860700001)(81166007)(16526019)(186003)(336012)(83380400001)(6666004)(5660300002)(26005)(47076005)(956004)(15188155005)(54906003)(4326008)(6512007)(110136005)(8676002)(70586007)(2906002)(70206006)(16799955002)(82310400003)(86362001)(8936002)(36756003)(1076003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 17:47:22.3559 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67ef6566-d3b8-4157-c8b9-08d8ceb515d5 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: DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2109 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain The buildzip.sh script builds the SCT and the EFI Shell, and then zips them up in a file structure that can be booted when unzipped to a USB drive or other block storage. Signed-off-by: Grant Likely --- uefi-sct/SctPkg/buildzip.sh | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 uefi-sct/SctPkg/buildzip.sh diff --git a/uefi-sct/SctPkg/buildzip.sh b/uefi-sct/SctPkg/buildzip.sh new 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 B= SD License +# which accompanies this distribution. The full text of the license may = be found at=20 +# 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 IM= PLIED. + +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 REL= EASE -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 ${TA= RGET_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 .. + --=20 2.20.1