|
| 1 | +# |
| 2 | +# Copyright (c) 2018, ARM Limited. All rights reserved. |
| 3 | +# Copyright (c) 2020, Linaro Ltd. All rights reserved. |
| 4 | +# |
| 5 | +# SPDX-License-Identifier: BSD-2-Clause-Patent |
| 6 | +# |
| 7 | + |
| 8 | +################################################################################ |
| 9 | +# |
| 10 | +# Defines Section - statements that will be processed to create a Makefile. |
| 11 | +# |
| 12 | +################################################################################ |
| 13 | +[Defines] |
| 14 | + PLATFORM_NAME = MmStandaloneRpmb |
| 15 | + PLATFORM_GUID = A27A486E-D7B9-4D70-9F37-FED9ABE041A2 |
| 16 | + PLATFORM_VERSION = 1.0 |
| 17 | + DSC_SPECIFICATION = 0x00010011 |
| 18 | + OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) |
| 19 | + SUPPORTED_ARCHITECTURES = AARCH64 |
| 20 | + BUILD_TARGETS = DEBUG|RELEASE|NOOPT |
| 21 | + SKUID_IDENTIFIER = DEFAULT |
| 22 | + FLASH_DEFINITION = Platform/StMMRpmb/PlatformStandaloneMm.fdf |
| 23 | + DEFINE DEBUG_MESSAGE = TRUE |
| 24 | + |
| 25 | + # LzmaF86 |
| 26 | + DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889 |
| 27 | + |
| 28 | +################################################################################ |
| 29 | +# |
| 30 | +# Library Class section - list of all Library Classes needed by this Platform. |
| 31 | +# |
| 32 | +################################################################################ |
| 33 | +[LibraryClasses] |
| 34 | + ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf |
| 35 | + ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf |
| 36 | + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf |
| 37 | + SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf |
| 38 | + VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf |
| 39 | + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf |
| 40 | + DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf |
| 41 | + DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf |
| 42 | + ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf |
| 43 | + FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf |
| 44 | + HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf |
| 45 | + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf |
| 46 | + MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf |
| 47 | + MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf |
| 48 | + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf |
| 49 | + PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf |
| 50 | + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf |
| 51 | + VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf |
| 52 | + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf |
| 53 | + |
| 54 | + # |
| 55 | + # Entry point |
| 56 | + # |
| 57 | + #StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf |
| 58 | + StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf |
| 59 | + StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf |
| 60 | + |
| 61 | + StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf |
| 62 | + #CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf |
| 63 | + CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf |
| 64 | + PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf |
| 65 | + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf |
| 66 | + |
| 67 | + SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf |
| 68 | + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf |
| 69 | + |
| 70 | + # |
| 71 | + # It is not possible to prevent the ARM compiler for generic intrinsic functions. |
| 72 | + # This library provides the intrinsic functions generate by a given compiler. |
| 73 | + # NULL means link this library into all ARM images. |
| 74 | + # |
| 75 | + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf |
| 76 | + |
| 77 | +[LibraryClasses.common.MM_STANDALONE] |
| 78 | + HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf |
| 79 | + MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf |
| 80 | + MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf |
| 81 | + |
| 82 | + IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf |
| 83 | + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf |
| 84 | + PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf |
| 85 | + SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf |
| 86 | + TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf |
| 87 | +################################################################################ |
| 88 | +# |
| 89 | +# Pcd Section - list of all EDK II PCD Entries defined by this Platform |
| 90 | +# |
| 91 | +################################################################################ |
| 92 | + |
| 93 | +[PcdsFeatureFlag.common] |
| 94 | + gArmTokenSpaceGuid.PcdFfaEnable|TRUE |
| 95 | + |
| 96 | +[PcdsFixedAtBuild] |
| 97 | + gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF |
| 98 | + gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff |
| 99 | + gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f |
| 100 | + |
| 101 | + gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x2 |
| 102 | + # Secure Storage |
| 103 | + gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE |
| 104 | + gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000 |
| 105 | + gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800 |
| 106 | + |
| 107 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00004000 |
| 108 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00004000 |
| 109 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00004000 |
| 110 | + gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x00004000 |
| 111 | + |
| 112 | +[PcdsPatchableInModule] |
| 113 | + # Allocated memory for EDK2 uppers layers |
| 114 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0 |
| 115 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0 |
| 116 | + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0 |
| 117 | + |
| 118 | +################################################################################################### |
| 119 | +# |
| 120 | +# Components Section - list of the modules and components that will be processed by compilation |
| 121 | +# tools and the EDK II tools to generate PE32/PE32+/Coff image files. |
| 122 | +# |
| 123 | +# Note: The EDK II DSC file is not used to specify how compiled binary images get placed |
| 124 | +# into firmware volume images. This section is just a list of modules to compile from |
| 125 | +# source into UEFI-compliant binaries. |
| 126 | +# It is the FDF file that contains information on combining binary files into firmware |
| 127 | +# volume images, whose concept is beyond UEFI and is described in PI specification. |
| 128 | +# Binary modules do not need to be listed in this section, as they should be |
| 129 | +# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi), |
| 130 | +# Logo (Logo.bmp), and etc. |
| 131 | +# There may also be modules listed in this section that are not required in the FDF file, |
| 132 | +# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be |
| 133 | +# generated for it, but the binary will not be put into any firmware volume. |
| 134 | +# |
| 135 | +################################################################################################### |
| 136 | +[Components.common] |
| 137 | + # |
| 138 | + # Standalone MM components |
| 139 | + # |
| 140 | + Drivers/OpTeeRpmb/OpTeeRpmbFv.inf |
| 141 | + StandaloneMmPkg/Core/StandaloneMmCore.inf |
| 142 | + StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.inf |
| 143 | + MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf { |
| 144 | + <LibraryClasses> |
| 145 | + NULL|Drivers/OpTeeRpmb/FixupPcd.inf |
| 146 | + } |
| 147 | + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf { |
| 148 | + <LibraryClasses> |
| 149 | + AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf |
| 150 | + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf |
| 151 | + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf |
| 152 | + VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf |
| 153 | + NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf |
| 154 | + NULL|Drivers/OpTeeRpmb/FixupPcd.inf |
| 155 | + } |
| 156 | + |
| 157 | +################################################################################################### |
| 158 | +# |
| 159 | +# BuildOptions Section - Define the module specific tool chain flags that should be used as |
| 160 | +# the default flags for a module. These flags are appended to any |
| 161 | +# standard flags that are defined by the build process. They can be |
| 162 | +# applied for any modules or only those modules with the specific |
| 163 | +# module style (EDK or EDKII) specified in [Components] section. |
| 164 | +# |
| 165 | +################################################################################################### |
| 166 | +[BuildOptions.AARCH64] |
| 167 | +GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp |
| 168 | +GCC:*_*_*_CC_FLAGS = -mstrict-align |
0 commit comments