]> git.proxmox.com Git - mirror_edk2.git/blob - FmpDevicePkg/FmpDevicePkg.dsc
BaseTools: Library hashing fix and optimization for --hash feature
[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 # 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
53 [LibraryClasses.ARM, LibraryClasses.AARCH64]
54 #
55 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
56 # This library provides the instrinsic functions generate by a given compiler.
57 # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
58 # into all ARM and AARCH64 images.
59 #
60 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
61
62 # Add support for stack protector
63 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
64
65 [LibraryClasses.ARM]
66 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
67
68 [Components]
69 #
70 # Libraries
71 #
72 FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf
73 FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf
74 FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLibNull.inf
75 FmpDevicePkg/FmpDxe/FmpDxeLib.inf
76
77 #
78 # Modules
79 #
80 FmpDevicePkg/FmpDxe/FmpDxe.inf {
81 <Defines>
82 #
83 # FILE_GUID is used as ESRT GUID
84 #
85 FILE_GUID = $(SYSTEM_FMP_ESRT_GUID)
86 }
87
88 FmpDevicePkg/FmpDxe/FmpDxe.inf {
89 <Defines>
90 #
91 # FILE_GUID is used as ESRT GUID
92 #
93 FILE_GUID = $(DEVICE_FMP_ESRT_GUID)
94 }
95
96 [BuildOptions]
97 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES