1 | ## @file
|
---|
2 | # Source Level Debug Package.
|
---|
3 | #
|
---|
4 | # Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # Copyright (c) 2020, AMD Incorporated. All rights reserved.<BR>
|
---|
6 | #
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | ##
|
---|
10 |
|
---|
11 | ################################################################################
|
---|
12 | #
|
---|
13 | # Defines Section - statements that will be processed to create a Makefile.
|
---|
14 | #
|
---|
15 | ################################################################################
|
---|
16 | [Defines]
|
---|
17 | PLATFORM_NAME = SourceLevelDebugPkg
|
---|
18 | PLATFORM_GUID = 38C85805-883F-4ee8-A854-95B966ED73AA
|
---|
19 | PLATFORM_VERSION = 0.96
|
---|
20 | DSC_SPECIFICATION = 0x00010005
|
---|
21 | OUTPUT_DIRECTORY = Build/SourceLevelDebugPkg
|
---|
22 | SUPPORTED_ARCHITECTURES = IA32|X64
|
---|
23 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
---|
24 | SKUID_IDENTIFIER = DEFAULT
|
---|
25 |
|
---|
26 | !include MdePkg/MdeLibs.dsc.inc
|
---|
27 |
|
---|
28 | [LibraryClasses.common]
|
---|
29 | DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
---|
30 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
---|
31 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
---|
32 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
---|
33 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
---|
34 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
---|
35 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
---|
36 | SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
---|
37 | LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
|
---|
38 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
---|
39 | SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
---|
40 | PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
|
---|
41 | TimerLib|UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
|
---|
42 | ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
---|
43 | PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
|
---|
44 | PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
---|
45 | PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
|
---|
46 |
|
---|
47 | !ifdef $(SOURCE_DEBUG_USE_USB)
|
---|
48 | DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.inf
|
---|
49 | !else
|
---|
50 | !ifndef $(SOURCE_DEBUG_USE_USB3)
|
---|
51 | DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
|
---|
52 | !endif
|
---|
53 | !endif
|
---|
54 |
|
---|
55 | [LibraryClasses.common.PEIM]
|
---|
56 | PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
---|
57 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
---|
58 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
---|
59 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
---|
60 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
---|
61 | DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
---|
62 | !ifdef $(SOURCE_DEBUG_USE_USB3)
|
---|
63 | DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.inf
|
---|
64 | !endif
|
---|
65 |
|
---|
66 | [LibraryClasses.common.DXE_DRIVER]
|
---|
67 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
---|
68 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
---|
69 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
---|
70 | UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
---|
71 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
72 | HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
---|
73 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
---|
74 | DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
---|
75 | !ifdef $(SOURCE_DEBUG_USE_USB3)
|
---|
76 | DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.inf
|
---|
77 | !endif
|
---|
78 |
|
---|
79 | ###################################################################################################
|
---|
80 | #
|
---|
81 | # Components Section - list of the modules and components that will be processed by compilation
|
---|
82 | # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
|
---|
83 | #
|
---|
84 | # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
|
---|
85 | # into firmware volume images. This section is just a list of modules to compile from
|
---|
86 | # source into UEFI-compliant binaries.
|
---|
87 | # It is the FDF file that contains information on combining binary files into firmware
|
---|
88 | # volume images, whose concept is beyond UEFI and is described in PI specification.
|
---|
89 | # Binary modules do not need to be listed in this section, as they should be
|
---|
90 | # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
|
---|
91 | # Logo (Logo.bmp), and etc.
|
---|
92 | # There may also be modules listed in this section that are not required in the FDF file,
|
---|
93 | # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
|
---|
94 | # generated for it, but the binary will not be put into any firmware volume.
|
---|
95 | #
|
---|
96 | ###################################################################################################
|
---|
97 |
|
---|
98 | [Components.common]
|
---|
99 | SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.inf
|
---|
100 | SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.inf
|
---|
101 | SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
|
---|
102 | SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.inf
|
---|
103 | SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
|
---|
104 | SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
---|
105 | SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
---|
106 | SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
|
---|
107 | SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf
|
---|
108 | SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf
|
---|
109 |
|
---|
110 | [BuildOptions]
|
---|
111 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
---|