FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)
[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, Intel Corporation. All rights reserved.<BR>
11 #
12 # Redistribution and use in source and binary forms, with or without
13 # modification, are permitted provided that the following conditions are met:
14 # 1. Redistributions of source code must retain the above copyright notice,
15 # this list of conditions and the following disclaimer.
16 # 2. Redistributions in binary form must reproduce the above copyright notice,
17 # this list of conditions and the following disclaimer in the documentation
18 # and/or other materials provided with the distribution.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
28 # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
31 ##
32
33 [Defines]
34 PLATFORM_NAME = FmpDevicePkg
35 PLATFORM_GUID = 0af3d540-27c6-11e8-828b-f8597177a00a
36 PLATFORM_VERSION = 0.1
37 DSC_SPECIFICATION = 0x00010005
38 OUTPUT_DIRECTORY = Build/FmpDevicePkg
39 SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
40 BUILD_TARGETS = DEBUG|RELEASE
41 SKUID_IDENTIFIER = DEFAULT
42
43 #
44 # Define ESRT GUIDs for Firmware Management Protocol instances
45 #
46 DEFINE FMP_GRAPHICS_ESRT_GUID = B461B3BD-E62A-4A71-841C-50BA4E500267
47 DEFINE FMP_TEXT_ESRT_GUID = 226034C4-8B67-4536-8653-D6EE7CE5A316
48
49 [LibraryClasses]
50 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
51 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
52 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
53 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
54 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
55 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
56 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
57 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
58 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
59 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
60 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
61 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
62 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
63 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
64 DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
65 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
66 PostCodeLib|MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
67 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
68 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
69
70 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
71 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
72 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
73 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
74 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
75 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
76 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
77 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
78 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
79 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
80 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
81
82 CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf
83 FmpPayloadHeaderLib|FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf
84 FmpDeviceLib|FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLibNull.inf
85 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
86 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
87 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
88
89 [LibraryClasses.ARM, LibraryClasses.AARCH64]
90 #
91 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
92 # This library provides the instrinsic functions generate by a given compiler.
93 # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
94 # into all ARM and AARCH64 images.
95 #
96 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
97
98 # Add support for stack protector
99 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
100
101 [LibraryClasses.ARM]
102 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
103
104 [Components]
105 #
106 # Libraries
107 #
108 FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf
109 FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf
110 FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLibNull.inf
111 FmpDevicePkg/FmpDxe/FmpDxeLib.inf
112
113 #
114 # Modules
115 #
116 FmpDevicePkg/FmpDxe/FmpDxe.inf {
117 <Defines>
118 #
119 # FILE_GUID is FMP ESRT GUID
120 #
121 FILE_GUID = $(FMP_GRAPHICS_ESRT_GUID)
122 <LibraryClasses>
123 DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
124 }
125
126 FmpDevicePkg/FmpDxe/FmpDxe.inf {
127 <Defines>
128 #
129 # FILE_GUID is used as ESRT GUID
130 #
131 FILE_GUID = $(FMP_TEXT_ESRT_GUID)
132 <LibraryClasses>
133 DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.inf
134 }
135
136 [BuildOptions]
137 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES