]>
Commit | Line | Data |
---|---|---|
262b7a31 KM |
1 | ## @file\r |
2 | # Firmware Management Protocol Device Package\r | |
3 | #\r | |
4 | # This package provides an implementation of a Firmware Management Protocol\r | |
5 | # instance that supports the update of firmware storage devices using UEFI\r | |
6 | # Capsules. The behavior of the Firmware Management Protocol instance is\r | |
7 | # customized using libraries and PCDs.\r | |
8 | #\r | |
9 | # Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR>\r | |
c40f7cc7 | 10 | # Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>\r |
262b7a31 | 11 | #\r |
bcef758c | 12 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
262b7a31 KM |
13 | #\r |
14 | ##\r | |
15 | \r | |
16 | [Defines]\r | |
17 | PLATFORM_NAME = FmpDevicePkg\r | |
18 | PLATFORM_GUID = 0af3d540-27c6-11e8-828b-f8597177a00a\r | |
19 | PLATFORM_VERSION = 0.1\r | |
20 | DSC_SPECIFICATION = 0x00010005\r | |
21 | OUTPUT_DIRECTORY = Build/FmpDevicePkg\r | |
954175e5 | 22 | SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64\r |
e23366d3 | 23 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r |
262b7a31 KM |
24 | SKUID_IDENTIFIER = DEFAULT\r |
25 | \r | |
26 | #\r | |
27 | # Define ESRT GUIDs for Firmware Management Protocol instances\r | |
28 | #\r | |
ee48361c SZ |
29 | DEFINE SYSTEM_FMP_ESRT_GUID = B461B3BD-E62A-4A71-841C-50BA4E500267\r |
30 | DEFINE DEVICE_FMP_ESRT_GUID = 226034C4-8B67-4536-8653-D6EE7CE5A316\r | |
262b7a31 KM |
31 | \r |
32 | [LibraryClasses]\r | |
33 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r | |
262b7a31 KM |
34 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r |
35 | UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r | |
36 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r | |
262b7a31 KM |
37 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r |
38 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r | |
262b7a31 KM |
39 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r |
40 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r | |
262b7a31 KM |
41 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r |
42 | DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf\r | |
43 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r | |
262b7a31 | 44 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r |
262b7a31 KM |
45 | OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r |
46 | IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r | |
47 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r | |
48 | FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf\r | |
262b7a31 KM |
49 | CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf\r |
50 | FmpPayloadHeaderLib|FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf\r | |
51 | FmpDeviceLib|FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLibNull.inf\r | |
4ff8b6b1 | 52 | TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r |
262b7a31 KM |
53 | \r |
54 | [LibraryClasses.ARM, LibraryClasses.AARCH64]\r | |
55 | #\r | |
56 | # It is not possible to prevent the ARM compiler for generic intrinsic functions.\r | |
57 | # This library provides the instrinsic functions generate by a given compiler.\r | |
58 | # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library\r | |
59 | # into all ARM and AARCH64 images.\r | |
60 | #\r | |
61 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r | |
62 | \r | |
63 | # Add support for stack protector\r | |
64 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r | |
65 | \r | |
66 | [LibraryClasses.ARM]\r | |
67 | ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf\r | |
68 | \r | |
278c3d48 EJ |
69 | [PcdsPatchableInModule]\r |
70 | gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{0}\r | |
71 | \r | |
262b7a31 KM |
72 | [Components]\r |
73 | #\r | |
74 | # Libraries\r | |
75 | #\r | |
76 | FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf\r | |
c40f7cc7 | 77 | FmpDevicePkg/Library/CapsuleUpdatePolicyLibOnProtocol/CapsuleUpdatePolicyLibOnProtocol.inf\r |
262b7a31 KM |
78 | FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf\r |
79 | FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLibNull.inf\r | |
80 | FmpDevicePkg/FmpDxe/FmpDxeLib.inf\r | |
81 | \r | |
82 | #\r | |
83 | # Modules\r | |
84 | #\r | |
c40f7cc7 EJ |
85 | FmpDevicePkg/CapsuleUpdatePolicyDxe/CapsuleUpdatePolicyDxe.inf {\r |
86 | <LibraryClasses>\r | |
87 | CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf\r | |
88 | }\r | |
262b7a31 KM |
89 | FmpDevicePkg/FmpDxe/FmpDxe.inf {\r |
90 | <Defines>\r | |
91 | #\r | |
ee48361c | 92 | # FILE_GUID is used as ESRT GUID\r |
262b7a31 | 93 | #\r |
ee48361c | 94 | FILE_GUID = $(SYSTEM_FMP_ESRT_GUID)\r |
278c3d48 EJ |
95 | <PcdsFixedAtBuild>\r |
96 | #\r | |
97 | # Unicode name string that is used to populate FMP Image Descriptor for this capsule update module\r | |
98 | #\r | |
99 | gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageIdName|L"Sample Firmware Device"\r | |
100 | #\r | |
101 | # Certificates used to authenticate capsule update image\r | |
102 | #\r | |
103 | !include BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer.gFmpDevicePkgTokenSpaceGuid.PcdFmpDevicePkcs7CertBufferXdr.inc\r | |
104 | <PcdsPatchableInModule>\r | |
105 | gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{GUID("$(SYSTEM_FMP_ESRT_GUID)")}\r | |
c40f7cc7 EJ |
106 | <LibraryClasses>\r |
107 | #\r | |
108 | # Use CapsuleUpdatePolicyLib that calls the Capsule Update Policy Protocol.\r | |
109 | # Depends on the CapsuleUpdatePolicyDxe module to produce the protocol.\r | |
110 | # Required for FmpDxe modules that are intended to be platform independent.\r | |
111 | #\r | |
112 | CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibOnProtocol/CapsuleUpdatePolicyLibOnProtocol.inf\r | |
262b7a31 KM |
113 | }\r |
114 | \r | |
115 | FmpDevicePkg/FmpDxe/FmpDxe.inf {\r | |
116 | <Defines>\r | |
117 | #\r | |
118 | # FILE_GUID is used as ESRT GUID\r | |
119 | #\r | |
ee48361c | 120 | FILE_GUID = $(DEVICE_FMP_ESRT_GUID)\r |
278c3d48 EJ |
121 | <PcdsFixedAtBuild>\r |
122 | #\r | |
123 | # Unicode name string that is used to populate FMP Image Descriptor for this capsule update module\r | |
124 | #\r | |
125 | gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageIdName|L"Sample Firmware Device"\r | |
126 | #\r | |
127 | # Certificates used to authenticate capsule update image\r | |
128 | #\r | |
129 | !include BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer.gFmpDevicePkgTokenSpaceGuid.PcdFmpDevicePkcs7CertBufferXdr.inc\r | |
130 | <PcdsPatchableInModule>\r | |
131 | gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{GUID("$(DEVICE_FMP_ESRT_GUID)")}\r | |
c40f7cc7 EJ |
132 | <LibraryClasses>\r |
133 | #\r | |
134 | # Directly use a platform specific CapsuleUpdatePolicyLib instance.\r | |
135 | # Only works for FmpDxe modules that are build from sources and included\r | |
136 | # in a system firmware image.\r | |
137 | #\r | |
138 | CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf\r | |
262b7a31 | 139 | }\r |
4da45e20 SZ |
140 | \r |
141 | [BuildOptions]\r | |
142 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r |