microsoft/mu_feature_ffa
Publicmirrored fromhttps://github.com/microsoft/mu_feature_ffaAvailable
FfaFeaturePkg/SecurePartitions/MsSecurePartition/MsSecurePartition.inf
56lines · modecode
| 1 | ## @file |
| 2 | # This module provides an example for building FF-A secure partition in UEFI. |
| 3 | # |
| 4 | # Copyright (c), Microsoft Corporation. |
| 5 | # |
| 6 | # SPDX-License-Identifier: BSD-2-Clause-Patent |
| 7 | # |
| 8 | ## |
| 9 | |
| 10 | [Defines] |
| 11 | INF_VERSION = 0x0001001A |
| 12 | BASE_NAME = MsSecurePartition |
| 13 | FILE_GUID = df1df62b-cf53-4195-b1d9-fe44206bf338 |
| 14 | MODULE_TYPE = MM_CORE_STANDALONE |
| 15 | VERSION_STRING = 1.0 |
| 16 | PI_SPECIFICATION_VERSION = 0x00010032 |
| 17 | ENTRY_POINT = MsSecurePartitionMain |
| 18 | |
| 19 | # VALID_ARCHITECTURES = AARCH64 |
| 20 | |
| 21 | [Sources] |
| 22 | MsSecurePartition.c |
| 23 | |
| 24 | [Packages] |
| 25 | MdePkg/MdePkg.dec |
| 26 | MdeModulePkg/MdeModulePkg.dec |
| 27 | StandaloneMmPkg/StandaloneMmPkg.dec |
| 28 | SecurityPkg/SecurityPkg.dec |
| 29 | FfaFeaturePkg/FfaFeaturePkg.dec |
| 30 | |
| 31 | [LibraryClasses] |
| 32 | BaseLib |
| 33 | BaseMemoryLib |
| 34 | CacheMaintenanceLib |
| 35 | PeCoffLib |
| 36 | StandaloneMmCoreEntryPoint |
| 37 | ArmFfaLib |
| 38 | ArmFfaLibEx |
| 39 | FvLib |
| 40 | MemoryAllocationLib |
| 41 | IoLib |
| 42 | |
| 43 | [Guids] |
| 44 | gTpm2ServiceFfaGuid |
| 45 | |
| 46 | # |
| 47 | # This configuration fails for CLANGPDB, which does not support PIE in the GCC |
| 48 | # sense. Such however is required for ARM family StandaloneMmCore |
| 49 | # self-relocation, and thus the CLANGPDB toolchain is unsupported for ARM and |
| 50 | # AARCH64 for this module. |
| 51 | # |
| 52 | [BuildOptions] |
| 53 | GCC:*_*_ARM_CC_FLAGS = -fpie |
| 54 | GCC:*_*_ARM_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie |
| 55 | GCC:*_*_AARCH64_CC_FLAGS = -fpie |
| 56 | GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie |
| 57 | |