Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / refind.inf
1 ## @file
2 #
3 # refind.inf file to build rEFInd using the EDK2/UDK2010/UDK2014 development
4 # kit.
5 #
6 # Copyright (c) 2012-2015 by Roderick W. Smith
7 # Released under the terms of the GPLv3 (or, at your discretion, any later
8 # version), a copy of which should come with this file.
9 #
10 ##
11
12 [Defines]
13 INF_VERSION = 0x00010005
14 BASE_NAME = REFIND
15 FILE_GUID = B8448DD1-B146-41B7-9D66-98B3A0A404D3
16 MODULE_TYPE = UEFI_APPLICATION
17 EDK_RELEASE_VERSION = 0x00020000
18 EFI_SPECIFICATION_VERSION = 0x00010000
19 VERSION_STRING = 1.0
20 ENTRY_POINT = efi_main
21
22 #
23 # The following information is for reference only and not required by the build tools.
24 #
25 # VALID_ARCHITECTURES = IA32 X64 IPF EBC
26 #
27
28 [Sources]
29 EfiLib/GenericBdsLib.h
30 EfiLib/BmLib.c
31 EfiLib/DevicePath.c #included into GenericBdsLib
32 EfiLib/BdsConnect.c #included into GenericBdsLib
33 EfiLib/BdsHelper.c
34 EfiLib/BdsTianoCore.c
35 EfiLib/legacy.c
36 mok/mok.c
37 mok/guid.c
38 mok/security_policy.c
39 mok/simple_file.c
40 refind/apple.c
41 refind/main.c
42 refind/config.c
43 refind/icns.c
44 refind/legacy.c
45 refind/lib.c
46 refind/line_edit.c
47 refind/menu.c
48 refind/mystrings.c
49 refind/screen.c
50 refind/driver_support.c
51 refind/gpt.c
52 refind/crc32.c
53 libeg/image.c
54 libeg/load_bmp.c
55 libeg/load_icns.c
56 libeg/lodepng.c
57 libeg/lodepng_xtra.c
58 libeg/screen.c
59 libeg/text.c
60
61 [Packages]
62 MdePkg/MdePkg.dec
63 MdeModulePkg/MdeModulePkg.dec
64 IntelFrameworkPkg/IntelFrameworkPkg.dec
65 IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
66
67 [LibraryClasses]
68 UefiApplicationEntryPoint
69 UefiBootServicesTableLib
70 UefiLib
71 MemoryAllocationLib
72 BaseMemoryLib
73 BaseLib
74 DevicePathLib
75 DebugLib
76 DxeServicesLib
77 DxeServicesTableLib
78 HobLib
79 MemoryAllocationLib
80 IoLib
81 PerformanceLib
82
83 [Guids]
84 gEfiAcpiTableGuid
85 gEfiAcpi10TableGuid
86 gEfiAcpi20TableGuid
87 gEfiDxeServicesTableGuid
88 gEfiEventReadyToBootGuid
89 gEfiEventVirtualAddressChangeGuid
90 gEfiEventExitBootServicesGuid
91 gEfiFileInfoGuid ## CONSUMES ## GUID
92 gEfiFileSystemInfoGuid ## CONSUMES ## GUID
93 gEfiFileSystemVolumeLabelInfoIdGuid
94 gEfiGlobalVariableGuid
95 gEfiPartTypeLegacyMbrGuid
96 gEfiPartTypeSystemPartGuid
97 gEfiSmbiosTableGuid
98 gEfiSasDevicePathGuid
99
100
101
102 [Ppis]
103
104 [Protocols]
105 gEfiComponentName2ProtocolGuid # ALWAYS_CONSUMED
106 gEfiDevicePathToTextProtocolGuid # ALWAYS_CONSUMED
107 gEfiSimpleFileSystemProtocolGuid # ALWAYS_CONSUMED
108 gEfiSimpleTextInProtocolGuid # ALWAYS_CONSUMED
109 gEfiSimpleTextInputExProtocolGuid # ALWAYS_CONSUMED
110 gEfiSimpleTextOutProtocolGuid # ALWAYS_CONSUMED
111 gEfiUnicodeCollationProtocolGuid # ALWAYS_CONSUMED
112 gEfiUnicodeCollation2ProtocolGuid # ALWAYS_CONSUMED
113
114 gEfiAcpiS3SaveProtocolGuid # PROTOCOL CONSUMES
115 gEfiBlockIoProtocolGuid # PROTOCOL CONSUMES
116 gEfiCpuArchProtocolGuid # PROTOCOL CONSUMES
117 gEfiDebugPortProtocolGuid # PROTOCOL CONSUMES
118 gEfiDevicePathProtocolGuid # PROTOCOL CONSUMES
119 gEfiDiskIoProtocolGuid # PROTOCOL CONSUMES
120 gEfiExtScsiPassThruProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
121 gEfiFirmwareVolume2ProtocolGuid # PROTOCOL CONSUMES
122 gEfiGraphicsOutputProtocolGuid # PROTOCOL SOMETIMES_CONSUMES
123 gEfiHiiFontProtocolGuid # PROTOCOL CONSUMES
124 gEfiLegacy8259ProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
125 gEfiLoadedImageProtocolGuid # PROTOCOL CONSUMES
126 gEfiOEMBadgingProtocolGuid # PROTOCOL CONSUMES
127 gEfiPciIoProtocolGuid # PROTOCOL CONSUMES
128 gEfiScsiIoProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
129 gEfiScsiPassThruProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
130 gEfiSimpleNetworkProtocolGuid # PROTOCOL CONSUMES
131 gEfiUgaDrawProtocolGuid |PcdUgaConsumeSupport # PROTOCOL SOMETIMES_CONSUMES
132
133 gEfiAbsolutePointerProtocolGuid
134 gEfiAcpiTableProtocolGuid
135 gEfiEdidActiveProtocolGuid
136 gEfiEdidDiscoveredProtocolGuid
137 gEfiHiiDatabaseProtocolGuid
138 gEfiHiiImageProtocolGuid
139 gEfiHiiProtocolGuid
140 gEfiSimplePointerProtocolGuid
141 gEfiSmbiosProtocolGuid
142 gEfiSecurityArchProtocolGuid
143 gEfiScsiIoProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
144 gEfiScsiPassThruProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
145 gEfiExtScsiPassThruProtocolGuid ## PROTOCOL SOMETIMES_CONSUMES
146
147 gEfiLegacyBiosProtocolGuid # PROTOCOL TO_START
148
149 gEfiLoadFile2ProtocolGuid
150 gEfiLoadFileProtocolGuid
151 gEfiHiiPackageListProtocolGuid
152
153 [FeaturePcd]
154 gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport
155
156 [Pcd]
157
158
159 [BuildOptions.IA32]
160 XCODE:*_*_*_CC_FLAGS = -Os
161 GCC:*_*_*_CC_FLAGS = -Os -DEFI32 -D__MAKEWITH_TIANO
162
163 [BuildOptions.X64]
164 XCODE:*_*_*_CC_FLAGS = -Os
165 GCC:*_*_*_CC_FLAGS = -Os -DEFIX64 -D__MAKEWITH_TIANO