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