From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.40]) by mx.groups.io with SMTP id smtpd.web12.10020.1621951038124289602 for ; Tue, 25 May 2021 06:57:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=DbU0EQFc; spf=pass (domain: arm.com, ip: 40.107.20.40, mailfrom: sami.mujawar@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=+QKWsCwIriRnZtEUGdO34qSbY8ZOyxbw9BldqT1yzuc=; b=DbU0EQFcHZLajSyhncFAiQRH6C0wpYHL+TYKwswdnb/K4YNd+WOUKqMuKADtFKKXqEKg8+dFIWa0HKSRdpOrf9VkLlHzIwIqOA3opfT3zJvAWB1/u0IcAC7YPOoYGWsER6XausMOJF446eEKXQdBDJ6//xtvz7t5v+fHKVBQ3W0= Received: from AM6P194CA0050.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:84::27) by DB8PR08MB5417.eurprd08.prod.outlook.com (2603:10a6:10:117::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Tue, 25 May 2021 13:57:15 +0000 Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:84:cafe::28) by AM6P194CA0050.outlook.office365.com (2603:10a6:209:84::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Tue, 25 May 2021 13:57:15 +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 VE1EUR03FT059.mail.protection.outlook.com (10.152.19.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Tue, 25 May 2021 13:57:15 +0000 Received: ("Tessian outbound ea2c9a942a09:v92"); Tue, 25 May 2021 13:57:14 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a24e62d1d2e32a3b X-CR-MTA-TID: 64aa7808 Received: from f0d901039fdc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2A07D4AC-AA1F-41AA-8F6B-1DBC3A2AF438.1; Tue, 25 May 2021 13:57:04 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f0d901039fdc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 May 2021 13:57:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YnfwH1uKRF5l1YIov5MKcE0jCs48ssEWDLqu//FtQ+zJA1YfJdwanm/hjEk4m77zDErZRCML3HTaMq1cHgl+EpKuPVXJBqWlBkZl4pmI7xBFjDEOtRJU2V6Dy1BaUwz/X7lPgXsx5sVObTQCVliRzvbeV0crjshU4sIPpJjXIw39jmkAb6QyejmrDaA1HAvNroSBgm9Dkk3U1+LkiP5MeJivmqKydKBR67aTgK6uhzRqRdAFroEtUxgJths57TyWweapl0MueTLj5jtqBxGRe1sx3qw2dzhMOa3vPA8l4/meh+1wV3bOjbFaNDMOaiWx8lJjlG5q6GKl2BGtbc+ElA== 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=+QKWsCwIriRnZtEUGdO34qSbY8ZOyxbw9BldqT1yzuc=; b=XZ1963tZsKjnKb7ZTMq5lndlb/V/TIleve/0/vCVLv+Os7/QUfv+gmv+/IJHY7mxXJSckMYKbc9xyqkwEH+KFNY6ML8/My3MIITJKFmxCpO8C8Slz3K6uyh+MXSr5QXSoEbRwQWln66TiONhz2rPUOSsfgNliw/tC8yBElE7xCOJbhH+upDk40lTUwxy+ZSWQz1R5UjVoTLk3ei09qq6hc6pVWceF3+m7tHWUiuaPsjjXUTQJU58tX01GXF7ms0ek8VqnzC8ITpDN7UR7/Kvbr7+kLk6gr35ksJ7jDSX0Mefn9isuA/t6TfmQZLInM7j3P4/8WxXrV10ubkrziLQdQ== 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=+QKWsCwIriRnZtEUGdO34qSbY8ZOyxbw9BldqT1yzuc=; b=DbU0EQFcHZLajSyhncFAiQRH6C0wpYHL+TYKwswdnb/K4YNd+WOUKqMuKADtFKKXqEKg8+dFIWa0HKSRdpOrf9VkLlHzIwIqOA3opfT3zJvAWB1/u0IcAC7YPOoYGWsER6XausMOJF446eEKXQdBDJ6//xtvz7t5v+fHKVBQ3W0= Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by AM6PR08MB3224.eurprd08.prod.outlook.com (2603:10a6:209:47::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Tue, 25 May 2021 13:57:02 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688%7]) with mapi id 15.20.4150.027; Tue, 25 May 2021 13:57:02 +0000 Subject: Re: [edk2-platforms][PATCH V1 1/3] Platform/Sgi: refactor StandaloneMM platform description file To: Sayanta Pattanayak , devel@edk2.groups.io Cc: Ard Biesheuvel , nd@arm.com References: <20210524172300.28754-1-sayanta.pattanayak@arm.com> <20210524172300.28754-2-sayanta.pattanayak@arm.com> From: "Sami Mujawar" Message-ID: Date: Tue, 25 May 2021 14:57:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 In-Reply-To: <20210524172300.28754-2-sayanta.pattanayak@arm.com> X-Originating-IP: [217.140.106.52] X-ClientProxiedBy: LO2P265CA0247.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::19) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.1.196.43] (217.140.106.52) by LO2P265CA0247.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Tue, 25 May 2021 13:57:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f94f70a-c3de-40f3-8e50-08d91f8500c7 X-MS-TrafficTypeDiagnostic: AM6PR08MB3224:|DB8PR08MB5417: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5516;OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: tIARcSdxZNl3IjDRXcs7XonG2ynrY0WXirWTMwpP8/PXzlEQc3H/9A0peMQaL8EnSpGbAv60Y8thrVgcgb0Rt8N3+JwcldBcBRPjdxEvzFD7kBh+mHg4uHdmDVFKYxQZSfSF/aUOJKp+KAuGeO2Y4OS+XplfH/5HZ+nwsf/xuu9ZSD8gTYabx+WTjsdiOVa/NrKf8F6pS14FrcKl8+/gGn7vmcJkjsDnziMDjKQTD74VRDPL37K/iYymGuND40c/Q5oF94VAs9N/+AzEKAYMbwRCUNmx/VlTUlTIO0NUDZmwsME0fgKxwS/THzAQRhhvQmTIgsWwVnv9r5nHi/tF1ebLm6RvM9OyNmCv4PtEZu5r7YtVElC7FZspzy6y4/tX2fZmUrb/t4fGoMlGLJmapTgl9BXbidoUvssIqC+VJlwK5rj8/rxV0dLXPap466LzTd9B0qqP9FpYCXb1Ol0BElNPSMJHjGdSThtZSd7kUdrdrTw+P0r1vEklkvmOWaierqk7Vgo6hE3jGRg2t3JyXNxn2hhO1XOP6FZ1+Oqg0WkjZBO3Aiwhl7Lan/wd5zsyEezN+T/B+BGPJAVb/2PEhNrnquaoMZnlTPO7N7kuKFeqT0z5W8LOv2Fdgqnhc+sGLpSQ1+6D1A5UkAATLwGRcOY2KKXVhDM7/MbI8yd9nbLlM6LmTVF5nhqKp5wRnd4zGowXtsqXJtJtXOsJeajwt5xywhpxdHizZLwKDv7G7Ms= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6806.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(66946007)(956004)(86362001)(19627235002)(36756003)(16526019)(186003)(52116002)(66556008)(44832011)(38350700002)(2906002)(66476007)(6486002)(5660300002)(38100700002)(83380400001)(31686004)(8936002)(31696002)(53546011)(16576012)(26005)(30864003)(4326008)(2616005)(498600001)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RPQyM2TBqITYjZShB2lw4wWY84AjgBi6dGNqL3PZ3Ba6sJVsFdpp4ZjhoZIkMAsDO94sA6Qd0mCV4NQisTOK4oVL83JFuhZoLc2SqligzOUDoXxcY4dcEZcqUYA3bxXHicqv5V6q2ZhN3mSUpCtfF7+D0/fZM/L70E9JG7Pi2wT8nHJZf9z5YP+0QZsd14dLFD6NLyfWhU1vIGFwm4cqLCX4w6LLs0SaUXBP0BolEi8aAFM0vfgjft2Slwh0T1nK6lyfYhEkTHtnjFp+aIghR5jCqg45uVT9wPKFcv25InYMVMscixhW1GrCg08HeO3lsrnSxFKGP948Ene5FWnGhHBGKCHRJFYzQ0CBP/HhXw8cYDz+9sNUaqwFWhKW2Zu5AUCg25fxQ3PyQ2EgaXmiqcNkAhF8JtY1YpoqHp4apLSmMiIF9ETBU22K0dhyXdffjTOJjUUhkYfeIn/iH2qlArrbb4QwB1WZUnKnC0pJ+/Dr5xzrZbUCNyPkvcrE8TmKQjXT2NFoeXUXKfzZZrPo0Ut5KC3CEye4JDkmywFjjyRbR7pvwyBcuSnwK3aiECB94zPqaNW7vTuEijnEUBx/ulbC8pRgQGYS6fk6X/IzFKqJGCXCI6a2qvhvZPLpfGdZQQvtyrYVxlLtKplyQ415pBTBJnE4Kcc3xIOH9mA7R3zrPsUqhIQ5FU/5P/MM4/8QbU27cxzJarNUF0LKwSg/mTgU+eALTvbNjbcMa4/mUKKIU523tRwqEjnubYj0UZCP X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3224 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: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 3aefec40-3dc4-41f7-d309-08d91f84f8b5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P+t4IGpcB+XAtGqt9gDPN9FaosRzjtYSVLrSvMv3bYEBxlx8ZfWQM4E/86dxX8LVDCHzq84Etl/JjMbC3vcho3/Hj8GVlWBk3aWlyiYYslK1czh7o8eSdX63CzSCVnREcklPgdGvQWcG3KvtjphHxNW/B+wJN5au+jb32Fy+bZgnF5Ken2zb7NMvnLHsBALIKeA4hq0vdFyU3jHO4PgQSMHPG5tjICZ9IMSJOLVfQ8vvHiGf5LnTzCjnuzBrTQXW3Q5xnUwKI1J50FKol8nO9m4crkq4arg7aBRCW1a2kTLUX3X2WZoXBp+tB5PRu+TcqkgZtbFu5hHtd+KW9FTJWjRzC3YsYoNkxvZjO5zCmsejN1193HpEWHnBSZ0qVyyU7dINtpj23UCKIYvQdTk+l3xWNwnAMtGx8hXrV4A1mEy1i5c3v1cZXLGvHruASzYKnKWEeJPg15pP6OI0h9NDdS9/U0oPzX0DWTuvF78wK121p+hznAtG3XbNpdfqk8ZjYOinbOYnWCd+kYwxstRil/XBKd/9fHYoJM7w4Lh+tiXDHFgc6V5C5bWSebuldnqSqbZXM+vJiPVgjQibvt5pNH5/HmMBXGAUY0cP37Ejun8rBTojsbWN/MNKvFXbcvXbPqAS3hh+Zi8F0+qfpdxeqA8AyP8t4zuZ1COKJ4Dy7gGfRI+vkKlBxIwev2JhKVXX 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)(346002)(39860400002)(396003)(136003)(46966006)(36840700001)(4326008)(30864003)(186003)(956004)(53546011)(16526019)(44832011)(8936002)(36756003)(26005)(82310400003)(336012)(86362001)(82740400003)(81166007)(478600001)(83380400001)(19627235002)(36860700001)(31686004)(2616005)(5660300002)(8676002)(31696002)(47076005)(356005)(16576012)(70586007)(6486002)(70206006)(316002)(2906002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2021 13:57:15.2066 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f94f70a-c3de-40f3-8e50-08d91f8500c7 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: VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5417 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Hi Sayanta, This patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/05/2021 06:22 PM, Sayanta Pattanayak wrote: > The RD-N2 platform has a different memory map from that of the other > platforms supported under the SgiPkg. To enable the use of StandaloneMM > as a secure partition on RD-N2 platform, refactor the existing > StandaloneMM platform description file. The differing portions are split > into two different files and the rest of the platform description file > is converted into a include file. > > Signed-off-by: Sayanta Pattanayak > --- > Platform/ARM/SgiPkg/{PlatformStandaloneMm.dsc => SgiPlatformMm.dsc.inc} | 30 +---- > Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc | 117 ++------------------ > Platform/ARM/SgiPkg/PlatformStandaloneMm2.dsc | 40 +++++++ > 3 files changed, 53 insertions(+), 134 deletions(-) > > diff --git a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc b/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc > similarity index 83% > copy from Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc > copy to Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc > index e281d5490912..3389ff676a91 100644 > --- a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc > +++ b/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc > @@ -1,37 +1,16 @@ > +## @file > +# StandaloneMM platform description include file for all supported platforms. > # > -# Copyright (c) 2018, ARM Limited. All rights reserved. > +# Copyright (c) 2021, ARM Limited. All rights reserved. > # > # SPDX-License-Identifier: BSD-2-Clause-Patent > -# > - > -################################################################################ > -# > -# Defines Section - statements that will be processed to create a Makefile. > -# > -################################################################################ > -[Defines] > - PLATFORM_NAME = SgiMmStandalone > - PLATFORM_GUID = 34B78C8F-CFD5-49D5-8360-E91143F6106D > - PLATFORM_VERSION = 1.0 > - DSC_SPECIFICATION = 0x00010011 > - OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) > - SUPPORTED_ARCHITECTURES = AARCH64 > - BUILD_TARGETS = DEBUG|RELEASE|NOOPT > - SKUID_IDENTIFIER = DEFAULT > - FLASH_DEFINITION = Platform/ARM/SgiPkg/PlatformStandaloneMm.fdf > - DEFINE DEBUG_MESSAGE = TRUE > - > - # LzmaF86 > - DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889 > +## > > ################################################################################ > # > # Library Class section - list of all Library Classes needed by this Platform. > # > ################################################################################ > - > -!include MdePkg/MdeLibs.dsc.inc > - > [LibraryClasses] > # > # Basic > @@ -92,7 +71,6 @@ > gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f > > ## PL011 - Serial Terminal > - gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF70000 > gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200 > > gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x2 > diff --git a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc b/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc > index e281d5490912..cdf8aaa88f03 100644 > --- a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc > +++ b/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc > @@ -1,8 +1,11 @@ > +## @file > +# StandaloneMM platform description file for SGI-575, RD-N1-Edge, RD-E1-Edge > +# and RD-V1 platforms. > # > -# Copyright (c) 2018, ARM Limited. All rights reserved. > +# Copyright (c) 2021, ARM Limited. All rights reserved. > # > # SPDX-License-Identifier: BSD-2-Clause-Patent > -# > +## > > ################################################################################ > # > @@ -11,9 +14,9 @@ > ################################################################################ > [Defines] > PLATFORM_NAME = SgiMmStandalone > - PLATFORM_GUID = 34B78C8F-CFD5-49D5-8360-E91143F6106D > + PLATFORM_GUID = 503b97f6-1be9-4661-97fd-9a55bbd2680d > PLATFORM_VERSION = 1.0 > - DSC_SPECIFICATION = 0x00010011 > + DSC_SPECIFICATION = 0x0001001B > OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) > SUPPORTED_ARCHITECTURES = AARCH64 > BUILD_TARGETS = DEBUG|RELEASE|NOOPT > @@ -24,62 +27,9 @@ > # LzmaF86 > DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889 > > -################################################################################ > -# > -# Library Class section - list of all Library Classes needed by this Platform. > -# > -################################################################################ > - > +# include common definitions. > !include MdePkg/MdeLibs.dsc.inc > - > -[LibraryClasses] > - # > - # Basic > - # > - BaseLib|MdePkg/Library/BaseLib/BaseLib.inf > - BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > - DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf > - DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf > - ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf > - FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf > - HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf > - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf > - MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf > - MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf > - PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > - PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf > - PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf > - ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf > - > - # > - # Entry point > - # > - StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf > - > - ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf > - StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf > - ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf > - CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf > - PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf > - > - # ARM PL011 UART Driver > - PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf > - PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf > - SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf > - > - StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf > - > - # > - # It is not possible to prevent the ARM compiler for generic intrinsic functions. > - # This library provides the instrinsic functions generate by a given compiler. > - # And NULL mean link this library into all ARM images. > - # > - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > - > -[LibraryClasses.common.MM_STANDALONE] > - HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf > - MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf > - MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf > +!include Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc > > ################################################################################ > # > @@ -87,54 +37,5 @@ > # > ################################################################################ > [PcdsFixedAtBuild] > - gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF > - gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff > - gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f > - > ## PL011 - Serial Terminal > gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF70000 > - gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200 > - > - gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x2 > - > -################################################################################################### > -# > -# Components Section - list of the modules and components that will be processed by compilation > -# tools and the EDK II tools to generate PE32/PE32+/Coff image files. > -# > -# Note: The EDK II DSC file is not used to specify how compiled binary images get placed > -# into firmware volume images. This section is just a list of modules to compile from > -# source into UEFI-compliant binaries. > -# It is the FDF file that contains information on combining binary files into firmware > -# volume images, whose concept is beyond UEFI and is described in PI specification. > -# Binary modules do not need to be listed in this section, as they should be > -# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi), > -# Logo (Logo.bmp), and etc. > -# There may also be modules listed in this section that are not required in the FDF file, > -# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be > -# generated for it, but the binary will not be put into any firmware volume. > -# > -################################################################################################### > -[Components.common] > - # > - # MM Core > - # > - StandaloneMmPkg/Core/StandaloneMmCore.inf > - > -[Components.AARCH64] > - StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.inf > - > -################################################################################################### > -# > -# BuildOptions Section - Define the module specific tool chain flags that should be used as > -# the default flags for a module. These flags are appended to any > -# standard flags that are defined by the build process. They can be > -# applied for any modules or only those modules with the specific > -# module style (EDK or EDKII) specified in [Components] section. > -# > -################################################################################################### > -[BuildOptions.AARCH64] > - GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp > - > -[BuildOptions] > - *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES > diff --git a/Platform/ARM/SgiPkg/PlatformStandaloneMm2.dsc b/Platform/ARM/SgiPkg/PlatformStandaloneMm2.dsc > new file mode 100644 > index 000000000000..bb359a15cc0d > --- /dev/null > +++ b/Platform/ARM/SgiPkg/PlatformStandaloneMm2.dsc > @@ -0,0 +1,40 @@ > +## @file > +# StandaloneMM platform description file for RD-N2 platforms. > +# > +# Copyright (c) 2021, ARM Limited. All rights reserved. > +# > +# SPDX-License-Identifier: BSD-2-Clause-Patent > +## > + > +################################################################################ > +# > +# Defines Section - statements that will be processed to create a Makefile. > +# > +################################################################################ > +[Defines] > + PLATFORM_NAME = SgiMmStandalone > + PLATFORM_GUID = 67309f8a-d278-4df5-86ee-a1826cf481ed > + PLATFORM_VERSION = 1.0 > + DSC_SPECIFICATION = 0x0001001B > + OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) > + SUPPORTED_ARCHITECTURES = AARCH64 > + BUILD_TARGETS = DEBUG|RELEASE|NOOPT > + SKUID_IDENTIFIER = DEFAULT > + FLASH_DEFINITION = Platform/ARM/SgiPkg/PlatformStandaloneMm.fdf > + DEFINE DEBUG_MESSAGE = TRUE > + > + # LzmaF86 > + DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889 > + > +# include common definitions. > +!include MdePkg/MdeLibs.dsc.inc > +!include Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc > + > +################################################################################ > +# > +# Pcd Section - list of all EDK II PCD Entries defined by this Platform > +# > +################################################################################ > +[PcdsFixedAtBuild] > + ## PL011 - Serial Terminal > + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0EF80000