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