VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/vbox-tools_def.txt@ 91942

Last change on this file since 91942 was 84676, checked in by vboxsync, 4 years ago

EFI: Adjustments for VC++ 14.2. bugref:8489

  • Property svn:eol-style set to native
File size: 34.2 KB
Line 
1#
2# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
3# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4# Portions copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>
5# Copyright (c) 2015, Hewlett-Packard Development Company, L.P.<BR>
6# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
7#
8# SPDX-License-Identifier: BSD-2-Clause-Patent
9#
10
11IDENTIFIER = Default TOOL_CHAIN_CONF
12
13# common path macros
14DEFINE VS2010_BIN = @PATH_VS2010@/bin
15DEFINE VS2010_DLL = @PATH_VS2010@/bin
16DEFINE VS2010_BINX64 = @PATH_VS2010_AMD64_BIN@
17DEFINE VS2010_BIN64 = DEF(VS2010_BIN)\x86_ia64
18
19DEFINE VS2017_DLL = @PATH_VS2017_BIN_HOST@
20DEFINE VS2017_BIN_HOST = @PATH_VS2017_BIN_HOST@
21DEFINE VS2017_BIN_IA32 = @PATH_VS2017_X86_BIN@
22DEFINE VS2017_BIN_X64 = @PATH_VS2017_AMD64_BIN@
23DEFINE VS2017_BIN_ARM = c:\no\such\directory
24DEFINE VS2017_BIN_AARCH64 = c:\no\such\directory
25
26DEFINE WINSDK7_BIN = c:\no\such\directory
27DEFINE WINSDK10_BIN = @PATH_SDK_WINSDK10_BIN@
28
29# These defines are needed for certain Microsoft Visual Studio tools that
30# are used by other toolchains. An example is that ICC on Windows normally
31# uses Microsoft's nmake.exe.
32
33# Some MS_VS_BIN options: DEF(VS2008_BIN), DEF(VS2008x86_BIN)
34DEFINE MS_VS_BIN = DEF(VS2010_BIN)
35# Some MS_VS_DLL options: DEF(VS2008_DLL), DEF(VS2008x86_DLL)
36DEFINE MS_VS_DLL = DEF(VS2010_DLL)
37
38DEFINE WINDDK_BIN16 = ENV(WINDDK3790_PREFIX)bin16
39DEFINE WINDDK_BINX64 = ENV(WINDDK3790_PREFIX)win64\x86\amd64
40
41DEFINE EBC_BIN = C:\Program Files\Intel\EBC\Bin
42DEFINE EBC_BINx86 = C:\Program Files (x86)\Intel\EBC\Bin
43
44
45DEFINE GCC48_IA32_PREFIX = @VBOX_PATH_PREFIX_GCC32@
46DEFINE GCC48_X64_PREFIX = @VBOX_PATH_PREFIX_GCC64@
47
48DEFINE UNIX_IASL_BIN = @VBOX_IASLCMD@
49DEFINE WIN_IASL_BIN = @VBOX_IASLCMD@
50
51DEFINE IASL_FLAGS =
52DEFINE IASL_OUTFLAGS = -p
53
54DEFINE DEFAULT_WIN_ASL_BIN = DEF(WIN_IASL_BIN)
55DEFINE DEFAULT_WIN_ASL_FLAGS = DEF(IASL_FLAGS)
56DEFINE DEFAULT_WIN_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
57
58DEFINE MSFT_ASLPP_FLAGS = /nologo /E /C /FIAutoGen.h
59DEFINE MSFT_ASLCC_FLAGS = /nologo /c /FIAutoGen.h /TC /Dmain=ReferenceAcpiTable
60DEFINE MSFT_ASLDLINK_FLAGS = /NODEFAULTLIB /ENTRY:ReferenceAcpiTable /SUBSYSTEM:CONSOLE
61
62DEFINE DTCPP_BIN = ENV(DTCPP_PREFIX)cpp
63DEFINE DTC_BIN = ENV(DTC_PREFIX)dtc
64
65####################################################################################
66#
67# format: TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE = <string>
68# priority:
69# TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE (Highest)
70# ******_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE
71# TARGET_*********_ARCH_COMMANDTYPE_ATTRIBUTE
72# ******_*********_ARCH_COMMANDTYPE_ATTRIBUTE
73# TARGET_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE
74# ******_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE
75# TARGET_*********_****_COMMANDTYPE_ATTRIBUTE
76# ******_*********_****_COMMANDTYPE_ATTRIBUTE
77# TARGET_TOOLCHAIN_ARCH_***********_ATTRIBUTE
78# ******_TOOLCHAIN_ARCH_***********_ATTRIBUTE
79# TARGET_*********_ARCH_***********_ATTRIBUTE
80# ******_*********_ARCH_***********_ATTRIBUTE
81# TARGET_TOOLCHAIN_****_***********_ATTRIBUTE
82# ******_TOOLCHAIN_****_***********_ATTRIBUTE
83# TARGET_*********_****_***********_ATTRIBUTE
84# ******_*********_****_***********_ATTRIBUTE (Lowest)
85#
86####################################################################################
87####################################################################################
88#
89# Supported Tool Chains
90# =====================
91# VS2010 -win32- Requires:
92# Microsoft Visual Studio 2010 Premium Edition
93# Microsoft Windows Server 2003 Driver Development Kit (Microsoft WINDDK) version 3790.1830
94# Optional:
95# Required to build EBC drivers:
96# Intel(r) Compiler for Efi Byte Code (Intel(r) EBC Compiler)
97# Required to build platforms or ACPI tables:
98# Intel(r) ACPI Compiler (iasl.exe) from
99# https://acpica.org/downloads
100# GCC48 -Linux,Windows- Requires:
101# GCC 4.8 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi
102# Optional:
103# Required to build platforms or ACPI tables:
104# Intel(r) ACPI Compiler from
105# https://acpica.org/downloads
106####################################################################################
107####################################################################################
108#
109# Supported Tool Chain Family
110# ===========================
111# MSFT - Microsoft
112# GCC - GNU GCC
113####################################################################################
114
115
116
117####################################################################################
118#
119# Microsoft Visual Studio 2010
120#
121# VS2010 - Microsoft Visual Studio 2010 Premium Edition with Intel ASL
122# ASL - Intel ACPI Source Language Compiler
123####################################################################################
124# VS2010 - Microsoft Visual Studio 2010 Premium Edition
125*_VS2010_*_*_FAMILY = MSFT
126
127*_VS2010_*_MAKE_PATH = DEF(VS2010_BIN)/nmake.exe
128*_VS2010_*_MAKE_FLAGS = /nologo
129*_VS2010_*_RC_PATH = rc.exe
130
131*_VS2010_*_SLINK_FLAGS = /NOLOGO /LTCG
132*_VS2010_*_APP_FLAGS = /nologo /E /TC
133*_VS2010_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
134*_VS2010_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
135
136*_VS2010_*_ASM16_PATH = DEF(VS2010_BIN)\ml.exe
137
138##################
139# ASL definitions
140##################
141*_VS2010_*_ASL_PATH = DEF(DEFAULT_WIN_ASL_BIN)
142*_VS2010_*_ASL_FLAGS = DEF(DEFAULT_WIN_ASL_FLAGS)
143*_VS2010_*_ASL_OUTFLAGS = DEF(DEFAULT_WIN_ASL_OUTFLAGS)
144*_VS2010_*_ASLCC_FLAGS = DEF(MSFT_ASLCC_FLAGS)
145*_VS2010_*_ASLPP_FLAGS = DEF(MSFT_ASLPP_FLAGS)
146*_VS2010_*_ASLDLINK_FLAGS = DEF(MSFT_ASLDLINK_FLAGS)
147
148##################
149# IA32 definitions
150##################
151*_VS2010_IA32_*_DLL = DEF(VS2010_DLL)
152
153*_VS2010_IA32_MAKE_PATH = DEF(VS2010_BIN)\nmake.exe
154*_VS2010_IA32_CC_PATH = DEF(VS2010_BIN)\cl.exe
155*_VS2010_IA32_VFRPP_PATH = DEF(VS2010_BIN)\cl.exe
156*_VS2010_IA32_SLINK_PATH = DEF(VS2010_BIN)\lib.exe
157*_VS2010_IA32_DLINK_PATH = DEF(VS2010_BIN)\link.exe
158*_VS2010_IA32_APP_PATH = DEF(VS2010_BIN)\cl.exe
159*_VS2010_IA32_PP_PATH = DEF(VS2010_BIN)\cl.exe
160*_VS2010_IA32_ASM_PATH = DEF(VS2010_BIN)\ml.exe
161*_VS2010_IA32_ASLCC_PATH = DEF(VS2010_BIN)\cl.exe
162*_VS2010_IA32_ASLPP_PATH = DEF(VS2010_BIN)\cl.exe
163*_VS2010_IA32_ASLDLINK_PATH = DEF(VS2010_BIN)\link.exe
164
165 *_VS2010_IA32_MAKE_FLAGS = /nologo
166 DEBUG_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Z7 /MP
167RELEASE_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /MP
168NOOPT_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /MP
169
170 DEBUG_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
171RELEASE_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd
172NOOPT_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
173
174 DEBUG_VS2010_IA32_NASM_FLAGS = -Ox -f win32 -g
175RELEASE_VS2010_IA32_NASM_FLAGS = -Ox -f win32
176NOOPT_VS2010_IA32_NASM_FLAGS = -O0 -f win32 -g
177
178 DEBUG_VS2010_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
179RELEASE_VS2010_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data /DEBUG
180NOOPT_VS2010_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
181
182##################
183# X64 definitions
184##################
185*_VS2010_X64_*_DLL = DEF(VS2010_DLL)
186
187*_VS2010_X64_CC_PATH = DEF(VS2010_BINX64)\cl.exe
188*_VS2010_X64_PP_PATH = DEF(VS2010_BINX64)\cl.exe
189*_VS2010_X64_APP_PATH = DEF(VS2010_BINX64)\cl.exe
190*_VS2010_X64_VFRPP_PATH = DEF(VS2010_BINX64)\cl.exe
191*_VS2010_X64_ASM_PATH = DEF(VS2010_BINX64)\ml64.exe
192*_VS2010_X64_SLINK_PATH = DEF(VS2010_BINX64)\lib.exe
193*_VS2010_X64_DLINK_PATH = DEF(VS2010_BINX64)\link.exe
194*_VS2010_X64_ASLCC_PATH = DEF(VS2010_BINX64)\cl.exe
195*_VS2010_X64_ASLPP_PATH = DEF(VS2010_BINX64)\cl.exe
196*_VS2010_X64_ASLDLINK_PATH = DEF(VS2010_BINX64)\link.exe
197
198 DEBUG_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /MP
199RELEASE_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /MP
200NOOPT_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Od /MP
201
202 DEBUG_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
203RELEASE_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd
204NOOPT_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
205
206 DEBUG_VS2010_X64_NASM_FLAGS = -Ox -f win64 -g
207RELEASE_VS2010_X64_NASM_FLAGS = -Ox -f win64
208NOOPT_VS2010_X64_NASM_FLAGS = -O0 -f win64 -g
209
210 DEBUG_VS2010_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
211RELEASE_VS2010_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data /DEBUG
212NOOPT_VS2010_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
213
214##################
215# EBC definitions
216##################
217*_VS2010_EBC_*_FAMILY = INTEL
218*_VS2010_EBC_*_DLL = DEF(VS2010_DLL)
219
220*_VS2010_EBC_MAKE_PATH = DEF(VS2010_BIN)\nmake.exe
221*_VS2010_EBC_PP_PATH = DEF(EBC_BIN)\iec.exe
222*_VS2010_EBC_VFRPP_PATH = DEF(EBC_BIN)\iec.exe
223*_VS2010_EBC_CC_PATH = DEF(EBC_BIN)\iec.exe
224*_VS2010_EBC_SLINK_PATH = DEF(VS2010_BIN)\link.exe
225*_VS2010_EBC_DLINK_PATH = DEF(VS2010_BIN)\link.exe
226
227*_VS2010_EBC_MAKE_FLAGS = /nologo
228*_VS2010_EBC_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
229*_VS2010_EBC_CC_FLAGS = /nologo /c /WX /W3 /FIAutoGen.h /D$(MODULE_ENTRY_POINT)=$(ARCH_ENTRY_POINT)
230*_VS2010_EBC_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
231*_VS2010_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC
232*_VS2010_EBC_DLINK_FLAGS = "C:\Program Files\Intel\EBC\Lib\EbcLib.lib" /NOLOGO /NODEFAULTLIB /MACHINE:EBC /OPT:REF /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /MAP /ALIGN:32 /DRIVER
233
234
235####################################################################################
236# VS2017 - Microsoft Visual Studio 2017 with Intel ASL
237# ASL - Intel ACPI Source Language Compiler (iasl.exe)
238####################################################################################
239# VS2017 - Microsoft Visual Studio 2017 professional Edition with Intel ASL
240*_VS2017_*_*_FAMILY = MSFT
241*_VS2017_*_*_DLL = DEF(VS2017_BIN_HOST)
242
243*_VS2017_*_MAKE_PATH = DEF(VS2017_BIN_HOST)\nmake.exe
244*_VS2017_*_MAKE_FLAG = /nologo
245*_VS2017_*_RC_PATH = DEF(WINSDK10_BIN)\rc.exe
246
247*_VS2017_*_MAKE_FLAGS = /nologo
248*_VS2017_*_SLINK_FLAGS = /NOLOGO /LTCG
249*_VS2017_*_APP_FLAGS = /nologo /E /TC
250*_VS2017_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
251*_VS2017_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
252*_VS2017_*_DLINK2_FLAGS = /WHOLEARCHIVE
253*_VS2017_*_ASM16_PATH = DEF(VS2017_BIN_IA32)\ml.exe
254
255##################
256# ASL definitions
257##################
258*_VS2017_*_ASL_PATH = DEF(WIN_IASL_BIN)
259*_VS2017_*_ASL_FLAGS = DEF(DEFAULT_WIN_ASL_FLAGS)
260*_VS2017_*_ASL_OUTFLAGS = DEF(DEFAULT_WIN_ASL_OUTFLAGS)
261*_VS2017_*_ASLCC_FLAGS = DEF(MSFT_ASLCC_FLAGS)
262*_VS2017_*_ASLPP_FLAGS = DEF(MSFT_ASLPP_FLAGS)
263*_VS2017_*_ASLDLINK_FLAGS = DEF(MSFT_ASLDLINK_FLAGS)
264
265##################
266# IA32 definitions
267##################
268*_VS2017_IA32_CC_PATH = DEF(VS2017_BIN_IA32)\cl.exe
269*_VS2017_IA32_VFRPP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
270*_VS2017_IA32_ASLCC_PATH = DEF(VS2017_BIN_IA32)\cl.exe
271*_VS2017_IA32_ASLPP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
272*_VS2017_IA32_SLINK_PATH = DEF(VS2017_BIN_IA32)\lib.exe
273*_VS2017_IA32_DLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
274*_VS2017_IA32_ASLDLINK_PATH= DEF(VS2017_BIN_IA32)\link.exe
275*_VS2017_IA32_APP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
276*_VS2017_IA32_PP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
277*_VS2017_IA32_ASM_PATH = DEF(VS2017_BIN_IA32)\ml.exe
278
279 *_VS2017_IA32_MAKE_FLAGS = /nologo
280 DEBUG_VS2017_IA32_CC_FLAGS = /nologo /arch:IA32 /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Z7 /Gw /MP
281RELEASE_VS2017_IA32_CC_FLAGS = /nologo /arch:IA32 /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /MP
282NOOPT_VS2017_IA32_CC_FLAGS = /nologo /arch:IA32 /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Z7 /Od /MP
283
284 DEBUG_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
285RELEASE_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd
286NOOPT_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
287
288 DEBUG_VS2017_IA32_NASM_FLAGS = -Ox -f win32 -g
289RELEASE_VS2017_IA32_NASM_FLAGS = -Ox -f win32
290NOOPT_VS2017_IA32_NASM_FLAGS = -O0 -f win32 -g
291
292 DEBUG_VS2017_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
293RELEASE_VS2017_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data /DEBUG
294NOOPT_VS2017_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
295
296##################
297# X64 definitions
298##################
299*_VS2017_X64_CC_PATH = DEF(VS2017_BIN_X64)\cl.exe
300*_VS2017_X64_PP_PATH = DEF(VS2017_BIN_X64)\cl.exe
301*_VS2017_X64_APP_PATH = DEF(VS2017_BIN_X64)\cl.exe
302*_VS2017_X64_VFRPP_PATH = DEF(VS2017_BIN_X64)\cl.exe
303*_VS2017_X64_ASLCC_PATH = DEF(VS2017_BIN_X64)\cl.exe
304*_VS2017_X64_ASLPP_PATH = DEF(VS2017_BIN_X64)\cl.exe
305*_VS2017_X64_ASM_PATH = DEF(VS2017_BIN_X64)\ml64.exe
306*_VS2017_X64_SLINK_PATH = DEF(VS2017_BIN_X64)\lib.exe
307*_VS2017_X64_DLINK_PATH = DEF(VS2017_BIN_X64)\link.exe
308*_VS2017_X64_ASLDLINK_PATH = DEF(VS2017_BIN_X64)\link.exe
309
310 DEBUG_VS2017_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /MP
311RELEASE_VS2017_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Gw /MP
312NOOPT_VS2017_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Od /MP
313
314 DEBUG_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
315RELEASE_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd
316NOOPT_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
317
318 DEBUG_VS2017_X64_NASM_FLAGS = -Ox -f win64 -g
319RELEASE_VS2017_X64_NASM_FLAGS = -Ox -f win64
320NOOPT_VS2017_X64_NASM_FLAGS = -O0 -f win64 -g
321
322 DEBUG_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
323RELEASE_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data /DEBUG
324NOOPT_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
325
326#################
327# ARM definitions
328#################
329*_VS2017_ARM_CC_PATH = DEF(VS2017_BIN_ARM)\cl.exe
330*_VS2017_ARM_VFRPP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
331*_VS2017_ARM_SLINK_PATH = DEF(VS2017_BIN_ARM)\lib.exe
332*_VS2017_ARM_DLINK_PATH = DEF(VS2017_BIN_ARM)\link.exe
333*_VS2017_ARM_APP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
334*_VS2017_ARM_PP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
335*_VS2017_ARM_ASM_PATH = DEF(VS2017_BIN_ARM)\armasm.exe
336*_VS2017_ARM_ASLCC_PATH = DEF(VS2017_BIN_ARM)\cl.exe
337*_VS2017_ARM_ASLPP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
338*_VS2017_ARM_ASLDLINK_PATH = DEF(VS2017_BIN_ARM)\link.exe
339
340 *_VS2017_ARM_MAKE_FLAGS = /nologo
341 DEBUG_VS2017_ARM_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Gw /Oi-
342RELEASE_VS2017_ARM_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /Oi-
343NOOPT_VS2017_ARM_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /Oi-
344
345 DEBUG_VS2017_ARM_ASM_FLAGS = /nologo /g
346RELEASE_VS2017_ARM_ASM_FLAGS = /nologo
347NOOPT_VS2017_ARM_ASM_FLAGS = /nologo
348
349 DEBUG_VS2017_ARM_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
350RELEASE_VS2017_ARM_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data /DEBUG
351NOOPT_VS2017_ARM_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG
352
353#####################
354# AARCH64 definitions
355#####################
356*_VS2017_AARCH64_CC_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
357*_VS2017_AARCH64_VFRPP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
358*_VS2017_AARCH64_SLINK_PATH = DEF(VS2017_BIN_AARCH64)\lib.exe
359*_VS2017_AARCH64_DLINK_PATH = DEF(VS2017_BIN_AARCH64)\link.exe
360*_VS2017_AARCH64_APP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
361*_VS2017_AARCH64_PP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
362*_VS2017_AARCH64_ASM_PATH = DEF(VS2017_BIN_AARCH64)\armasm64.exe
363*_VS2017_AARCH64_ASLCC_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
364*_VS2017_AARCH64_ASLPP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
365*_VS2017_AARCH64_ASLDLINK_PATH = DEF(VS2017_BIN_AARCH64)\link.exe
366
367 *_VS2017_AARCH64_MAKE_FLAGS = /nologo
368 DEBUG_VS2017_AARCH64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Gw /Oi-
369RELEASE_VS2017_AARCH64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /Oi-
370NOOPT_VS2017_AARCH64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /Oi-
371
372 DEBUG_VS2017_AARCH64_ASM_FLAGS = /nologo /g
373RELEASE_VS2017_AARCH64_ASM_FLAGS = /nologo
374NOOPT_VS2017_AARCH64_ASM_FLAGS = /nologo
375
376 DEBUG_VS2017_AARCH64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /DRIVER /DEBUG
377RELEASE_VS2017_AARCH64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /DRIVER /MERGE:.rdata=.data /DEBUG
378NOOPT_VS2017_AARCH64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:ARM64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /DRIVER /DEBUG
379
380##################
381# EBC definitions
382##################
383*_VS2017_EBC_*_FAMILY = INTEL
384
385*_VS2017_EBC_PP_PATH = DEF(EBC_BINx86)\iec.exe
386*_VS2017_EBC_VFRPP_PATH = DEF(EBC_BINx86)\iec.exe
387*_VS2017_EBC_CC_PATH = DEF(EBC_BINx86)\iec.exe
388*_VS2017_EBC_SLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
389*_VS2017_EBC_DLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
390
391*_VS2017_EBC_MAKE_FLAGS = /nologo
392*_VS2017_EBC_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
393*_VS2017_EBC_CC_FLAGS = /nologo /c /WX /W3 /FIAutoGen.h /D$(MODULE_ENTRY_POINT)=$(ARCH_ENTRY_POINT)
394*_VS2017_EBC_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
395*_VS2017_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC
396*_VS2017_EBC_DLINK_FLAGS = "C:\Program Files (x86)\Intel\EBC\Lib\EbcLib.lib" /NOLOGO /NODEFAULTLIB /MACHINE:EBC /OPT:REF /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /MAP /ALIGN:32 /DRIVER
397
398
399####################################################################################
400# GCC Common
401####################################################################################
402
403*_*_*_OBJCOPY_PATH = echo
404*_*_*_OBJCOPY_FLAGS = objcopy not needed for
405*_*_*_SYMRENAME_PATH = echo
406*_*_*_SYMRENAME_FLAGS = Symbol renaming not needed for
407DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
408RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
409NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
410*_*_*_DTC_FLAGS = -H epapr
411*_*_*_DTCPP_PATH = DEF(DTCPP_BIN)
412*_*_*_DTC_PATH = DEF(DTC_BIN)
413
414DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -include AutoGen.h -fno-common
415DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe @VBOX_MINGW32_Wno@
416DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe @VBOX_MINGW32_Wno@
417DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie
418DEFINE GCC_DLINK2_FLAGS_COMMON = -Wl,--script=$(EDK_TOOLS_PATH)/Scripts/GccBase.lds
419DEFINE GCC_IA32_X64_DLINK_COMMON = DEF(GCC_DLINK_FLAGS_COMMON) --gc-sections
420DEFINE GCC_IA32_X64_ASLDLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
421DEFINE GCC_IA32_X64_DLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _$(IMAGE_ENTRY_POINT) --file-alignment 0x20 --section-alignment 0x20 -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map
422DEFINE GCC_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
423DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
424DEFINE GCC_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h
425DEFINE GCC_ASLPP_FLAGS = -x c -E -include AutoGen.h
426DEFINE GCC_ASLCC_FLAGS = -x c
427DEFINE GCC_WINDRES_FLAGS = -J rc -O coff
428DEFINE GCC_DTCPP_FLAGS = -E -x assembler-with-cpp -imacros $(DEST_DIR_DEBUG)/AutoGen.h -nostdinc -undef
429DEFINE GCC_IA32_RC_FLAGS = -I binary -O elf32-i386 -B i386 --rename-section .data=.hii
430DEFINE GCC_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii
431
432DEFINE GCC48_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
433DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20
434DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-pie -fno-pic
435DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address
436DEFINE GCC48_IA32_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
437DEFINE GCC48_IA32_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
438DEFINE GCC48_IA32_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 DEF(GCC_DLINK2_FLAGS_COMMON)
439DEFINE GCC48_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie
440DEFINE GCC48_X64_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x228 DEF(GCC_DLINK2_FLAGS_COMMON)
441DEFINE GCC48_ASM_FLAGS = DEF(GCC_ASM_FLAGS)
442DEFINE GCC48_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
443
444####################################################################################
445#
446# GCC 4.8 - This configuration is used to compile under Linux to produce
447# PE/COFF binaries using GCC 4.8.
448#
449####################################################################################
450*_GCC48_*_*_FAMILY = GCC
451
452*_GCC48_*_MAKE_PATH = @KMK@
453*_GCC48_*_*_DLL = ENV(GCC48_DLL)
454*_GCC48_*_ASL_PATH = DEF(UNIX_IASL_BIN)
455
456*_GCC48_*_PP_FLAGS = DEF(GCC_PP_FLAGS)
457*_GCC48_*_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS)
458*_GCC48_*_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
459*_GCC48_*_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
460*_GCC48_*_APP_FLAGS =
461*_GCC48_*_ASL_FLAGS = DEF(IASL_FLAGS)
462*_GCC48_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
463
464##################
465# GCC48 IA32 definitions
466##################
467*_GCC48_IA32_OBJCOPY_PATH = DEF(GCC48_IA32_PREFIX)objcopy
468*_GCC48_IA32_CC_PATH = DEF(GCC48_IA32_PREFIX)gcc
469*_GCC48_IA32_SLINK_PATH = DEF(GCC48_IA32_PREFIX)ar
470*_GCC48_IA32_DLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
471*_GCC48_IA32_ASLDLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
472*_GCC48_IA32_ASM_PATH = DEF(GCC48_IA32_PREFIX)gcc
473*_GCC48_IA32_PP_PATH = DEF(GCC48_IA32_PREFIX)gcc
474*_GCC48_IA32_VFRPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
475*_GCC48_IA32_ASLCC_PATH = DEF(GCC48_IA32_PREFIX)gcc
476*_GCC48_IA32_ASLPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
477*_GCC48_IA32_RC_PATH = DEF(GCC48_IA32_PREFIX)objcopy
478
479*_GCC48_IA32_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m32
480*_GCC48_IA32_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
481*_GCC48_IA32_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m32 -march=i386
482*_GCC48_IA32_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
483*_GCC48_IA32_DLINK2_FLAGS = DEF(GCC48_IA32_DLINK2_FLAGS)
484*_GCC48_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
485*_GCC48_IA32_OBJCOPY_FLAGS =
486*_GCC48_IA32_NASM_FLAGS = -f elf32
487
488 DEBUG_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -Os
489RELEASE_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -Os -Wno-unused-but-set-variable
490 NOOPT_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -O0
491
492##################
493# GCC48 X64 definitions
494##################
495*_GCC48_X64_OBJCOPY_PATH = DEF(GCC48_X64_PREFIX)objcopy
496*_GCC48_X64_CC_PATH = DEF(GCC48_X64_PREFIX)gcc
497*_GCC48_X64_SLINK_PATH = DEF(GCC48_X64_PREFIX)ar
498*_GCC48_X64_DLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
499*_GCC48_X64_ASLDLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
500*_GCC48_X64_ASM_PATH = DEF(GCC48_X64_PREFIX)gcc
501*_GCC48_X64_PP_PATH = DEF(GCC48_X64_PREFIX)gcc
502*_GCC48_X64_VFRPP_PATH = DEF(GCC48_X64_PREFIX)gcc
503*_GCC48_X64_ASLCC_PATH = DEF(GCC48_X64_PREFIX)gcc
504*_GCC48_X64_ASLPP_PATH = DEF(GCC48_X64_PREFIX)gcc
505*_GCC48_X64_RC_PATH = DEF(GCC48_X64_PREFIX)objcopy
506
507*_GCC48_X64_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m64
508*_GCC48_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
509*_GCC48_X64_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m64
510*_GCC48_X64_DLINK_FLAGS = DEF(GCC48_X64_DLINK_FLAGS)
511*_GCC48_X64_DLINK2_FLAGS = DEF(GCC48_X64_DLINK2_FLAGS)
512*_GCC48_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
513*_GCC48_X64_OBJCOPY_FLAGS =
514*_GCC48_X64_NASM_FLAGS = -f elf64
515
516 DEBUG_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -Os
517RELEASE_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -Os -Wno-unused-but-set-variable
518 NOOPT_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -O0
519
520#################
521# ASM 16 linker definitions
522#################
523*_*_*_ASMLINK_PATH = DEF(WINDDK_BIN16)\link16.exe
524*_*_*_ASMLINK_FLAGS = /nologo /tiny
525
526##################
527# VfrCompiler definitions
528##################
529*_*_*_VFR_PATH = VfrCompile
530*_*_*_VFR_FLAGS = -l -n
531
532##################
533# OptionRom tool definitions
534##################
535*_*_*_OPTROM_PATH = EfiRom
536*_*_*_OPTROM_FLAGS = -e
537
538##################
539# GenFw tool definitions
540##################
541*_*_*_GENFW_PATH = GenFw
542*_*_*_GENFW_FLAGS =
543
544##################
545# Asl Compiler definitions
546##################
547*_*_*_ASLCC_FLAGS = /nologo /c /FIAutoGen.h /TC /Dmain=ReferenceAcpiTable
548*_*_*_ASLDLINK_FLAGS = /NODEFAULTLIB /ENTRY:ReferenceAcpiTable /SUBSYSTEM:CONSOLE
549*_*_*_ASLPP_FLAGS = /nologo /EP /C
550*_*_*_ASL_FLAGS =
551
552##################
553# GenCrc32 tool definitions
554##################
555*_*_*_CRC32_PATH = GenCrc32
556*_*_*_CRC32_GUID = FC1BCDB0-7D31-49AA-936A-A4600D9DD083
557
558##################
559# Rsa2048Sha256Sign tool definitions
560#
561# Notes: This tool definition uses a test signing key for development purposes only.
562# The tool Rsa2048Sha256GenerateKeys can be used to generate a new private/public key
563# and the gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value.
564# A custom tool/script can be implemented using the new private/public key with
565# the Rsa2048Sha256Sign tool and this tool definition can be updated to use a
566# custom tool/script.
567#
568# Generate new private/public key and gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value
569#
570# Rsa2048Sha256GenerateKeys.py -o MyKey.pem --public-key-hash-c MyKey.pcd
571#
572# Custom script example (MyRsa2048Sha256Sign.cmd):
573#
574# Rsa2048Sha256Sign --private-key MyKey.pem %1 %2 %3 %4 %5 %6 %7 %8 %9
575#
576# WARNING: Vendors that uses private keys are responsible for proper management and protection
577# of private keys. Vendors may choose to use infrastructure such as signing servers
578# or signing portals to support the management and protection of private keys.
579#
580##################
581*_*_*_RSA2048SHA256SIGN_PATH = Rsa2048Sha256Sign
582*_*_*_RSA2048SHA256SIGN_GUID = A7717414-C616-4977-9420-844712A735BF
583
584##################
585# BrotliCompress tool definitions
586##################
587*_*_*_BROTLI_PATH = BrotliCompress
588*_*_*_BROTLI_GUID = 3D532050-5CDA-4FD0-879E-0F7F630D5AFB
589
590##################
591# LzmaCompress tool definitions
592##################
593*_*_*_LZMA_PATH = LzmaCompress
594*_*_*_LZMA_GUID = EE4E5898-3914-4259-9D6E-DC7BD79403CF
595
596##################
597# LzmaF86Compress tool definitions with converter for x86 code.
598# It can improve the compression ratio if the input file is IA32 or X64 PE image.
599##################
600*_*_*_LZMAF86_PATH = LzmaF86Compress
601*_*_*_LZMAF86_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889
602
603##################
604# TianoCompress tool definitions
605##################
606*_*_*_TIANO_PATH = TianoCompress
607*_*_*_TIANO_GUID = A31280AD-481E-41B6-95E8-127F4C984779
608
609##################
610# BPDG tool definitions
611##################
612*_*_*_VPDTOOL_PATH = BPDG
613*_*_*_VPDTOOL_GUID = 8C3D856A-9BE6-468E-850A-24F7A8D38E08
614
615##################
616# Pkcs7Sign tool definitions
617##################
618*_*_*_PKCS7SIGN_PATH = Pkcs7Sign
619*_*_*_PKCS7SIGN_GUID = 4AAFD29D-68DF-49EE-8AA9-347D375665A7
620
621##################
622# NASM tool definitions
623##################
624*_*_*_NASM_PATH = @VBOX_NASMCMD@
625# NASMB uses NASM produce a .bin from a .nasmb NASM source file
626*_*_*_NASMB_FLAGS = -f bin -DVBOX
627
628#################
629# Build rule order
630#################
631*_*_*_*_BUILDRULEORDER = nasm asm Asm ASM S s nasmb asm16
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette