microsoft/mu_feature_ffa

Public

mirrored from https://github.com/microsoft/mu_feature_ffaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
858d1559f5d2e1e97ccf62290e96060595aa2dfb

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

FfaFeaturePkg/SecurePartitions/MsSecurePartition/MsSecurePartition.inf

61lines · 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 ArmPkg/ArmPkg.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 NotificationServiceLib
43 TestServiceLib
44
45[Guids]
46 gMmCoreDataHobGuid
47 gEfiTpm2ServiceFfaGuid
48 gEfiNotificationServiceFfaGuid
49 gEfiTestServiceFfaGuid
50
51#
52# This configuration fails for CLANGPDB, which does not support PIE in the GCC
53# sense. Such however is required for ARM family StandaloneMmCore
54# self-relocation, and thus the CLANGPDB toolchain is unsupported for ARM and
55# AARCH64 for this module.
56#
57[BuildOptions]
58 GCC:*_*_ARM_CC_FLAGS = -fpie
59 GCC:*_*_ARM_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie
60 GCC:*_*_AARCH64_CC_FLAGS = -fpie
61 GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie