VirtualBox

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

Last change on this file since 105381 was 99473, checked in by vboxsync, 20 months ago

Devices/EFI/Firmware: Add the necessary compiler definitions for the AArch64 and AArch32 firmware images, bugref:10400

  • Property svn:eol-style set to native
File size: 40.1 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@
47DEFINE GCC48_AARCH64_PREFIX = @VBOX_PATH_PREFIX_GCC_AARCH64@
48DEFINE GCC48_ARM_PREFIX = @VBOX_PATH_PREFIX_GCC_ARM@
49
50DEFINE UNIX_IASL_BIN = @VBOX_IASLCMD@
51DEFINE WIN_IASL_BIN = @VBOX_IASLCMD@
52
53DEFINE IASL_FLAGS =
54DEFINE IASL_OUTFLAGS = -p
55
56DEFINE DEFAULT_WIN_ASL_BIN = DEF(WIN_IASL_BIN)
57DEFINE DEFAULT_WIN_ASL_FLAGS = DEF(IASL_FLAGS)
58DEFINE DEFAULT_WIN_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
59
60DEFINE MSFT_ASLPP_FLAGS = /nologo /E /C /FIAutoGen.h
61DEFINE MSFT_ASLCC_FLAGS = /nologo /c /FIAutoGen.h /TC /Dmain=ReferenceAcpiTable
62DEFINE MSFT_ASLDLINK_FLAGS = /NODEFAULTLIB /ENTRY:ReferenceAcpiTable /SUBSYSTEM:CONSOLE
63
64DEFINE DTCPP_BIN = ENV(DTCPP_PREFIX)cpp
65DEFINE DTC_BIN = ENV(DTC_PREFIX)dtc
66
67####################################################################################
68#
69# format: TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE = <string>
70# priority:
71# TARGET_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE (Highest)
72# ******_TOOLCHAIN_ARCH_COMMANDTYPE_ATTRIBUTE
73# TARGET_*********_ARCH_COMMANDTYPE_ATTRIBUTE
74# ******_*********_ARCH_COMMANDTYPE_ATTRIBUTE
75# TARGET_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE
76# ******_TOOLCHAIN_****_COMMANDTYPE_ATTRIBUTE
77# TARGET_*********_****_COMMANDTYPE_ATTRIBUTE
78# ******_*********_****_COMMANDTYPE_ATTRIBUTE
79# TARGET_TOOLCHAIN_ARCH_***********_ATTRIBUTE
80# ******_TOOLCHAIN_ARCH_***********_ATTRIBUTE
81# TARGET_*********_ARCH_***********_ATTRIBUTE
82# ******_*********_ARCH_***********_ATTRIBUTE
83# TARGET_TOOLCHAIN_****_***********_ATTRIBUTE
84# ******_TOOLCHAIN_****_***********_ATTRIBUTE
85# TARGET_*********_****_***********_ATTRIBUTE
86# ******_*********_****_***********_ATTRIBUTE (Lowest)
87#
88####################################################################################
89####################################################################################
90#
91# Supported Tool Chains
92# =====================
93# VS2010 -win32- Requires:
94# Microsoft Visual Studio 2010 Premium Edition
95# Microsoft Windows Server 2003 Driver Development Kit (Microsoft WINDDK) version 3790.1830
96# Optional:
97# Required to build EBC drivers:
98# Intel(r) Compiler for Efi Byte Code (Intel(r) EBC Compiler)
99# Required to build platforms or ACPI tables:
100# Intel(r) ACPI Compiler (iasl.exe) from
101# https://acpica.org/downloads
102# GCC48 -Linux,Windows- Requires:
103# GCC 4.8 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi
104# Optional:
105# Required to build platforms or ACPI tables:
106# Intel(r) ACPI Compiler from
107# https://acpica.org/downloads
108####################################################################################
109####################################################################################
110#
111# Supported Tool Chain Family
112# ===========================
113# MSFT - Microsoft
114# GCC - GNU GCC
115####################################################################################
116
117
118
119####################################################################################
120#
121# Microsoft Visual Studio 2010
122#
123# VS2010 - Microsoft Visual Studio 2010 Premium Edition with Intel ASL
124# ASL - Intel ACPI Source Language Compiler
125####################################################################################
126# VS2010 - Microsoft Visual Studio 2010 Premium Edition
127*_VS2010_*_*_FAMILY = MSFT
128
129*_VS2010_*_MAKE_PATH = DEF(VS2010_BIN)/nmake.exe
130*_VS2010_*_MAKE_FLAGS = /nologo
131*_VS2010_*_RC_PATH = rc.exe
132
133*_VS2010_*_SLINK_FLAGS = /NOLOGO /LTCG
134*_VS2010_*_APP_FLAGS = /nologo /E /TC
135*_VS2010_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
136*_VS2010_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
137
138*_VS2010_*_ASM16_PATH = DEF(VS2010_BIN)\ml.exe
139
140##################
141# ASL definitions
142##################
143*_VS2010_*_ASL_PATH = DEF(DEFAULT_WIN_ASL_BIN)
144*_VS2010_*_ASL_FLAGS = DEF(DEFAULT_WIN_ASL_FLAGS)
145*_VS2010_*_ASL_OUTFLAGS = DEF(DEFAULT_WIN_ASL_OUTFLAGS)
146*_VS2010_*_ASLCC_FLAGS = DEF(MSFT_ASLCC_FLAGS)
147*_VS2010_*_ASLPP_FLAGS = DEF(MSFT_ASLPP_FLAGS)
148*_VS2010_*_ASLDLINK_FLAGS = DEF(MSFT_ASLDLINK_FLAGS)
149
150##################
151# IA32 definitions
152##################
153*_VS2010_IA32_*_DLL = DEF(VS2010_DLL)
154
155*_VS2010_IA32_MAKE_PATH = DEF(VS2010_BIN)\nmake.exe
156*_VS2010_IA32_CC_PATH = DEF(VS2010_BIN)\cl.exe
157*_VS2010_IA32_VFRPP_PATH = DEF(VS2010_BIN)\cl.exe
158*_VS2010_IA32_SLINK_PATH = DEF(VS2010_BIN)\lib.exe
159*_VS2010_IA32_DLINK_PATH = DEF(VS2010_BIN)\link.exe
160*_VS2010_IA32_APP_PATH = DEF(VS2010_BIN)\cl.exe
161*_VS2010_IA32_PP_PATH = DEF(VS2010_BIN)\cl.exe
162*_VS2010_IA32_ASM_PATH = DEF(VS2010_BIN)\ml.exe
163*_VS2010_IA32_ASLCC_PATH = DEF(VS2010_BIN)\cl.exe
164*_VS2010_IA32_ASLPP_PATH = DEF(VS2010_BIN)\cl.exe
165*_VS2010_IA32_ASLDLINK_PATH = DEF(VS2010_BIN)\link.exe
166
167 *_VS2010_IA32_MAKE_FLAGS = /nologo
168 DEBUG_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Z7 /MP
169RELEASE_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /MP
170NOOPT_VS2010_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /MP
171
172 DEBUG_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
173RELEASE_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd
174NOOPT_VS2010_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
175
176 DEBUG_VS2010_IA32_NASM_FLAGS = -Ox -f win32 -g
177RELEASE_VS2010_IA32_NASM_FLAGS = -Ox -f win32
178NOOPT_VS2010_IA32_NASM_FLAGS = -O0 -f win32 -g
179
180 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
181RELEASE_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
182NOOPT_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
183
184##################
185# X64 definitions
186##################
187*_VS2010_X64_*_DLL = DEF(VS2010_DLL)
188
189*_VS2010_X64_CC_PATH = DEF(VS2010_BINX64)\cl.exe
190*_VS2010_X64_PP_PATH = DEF(VS2010_BINX64)\cl.exe
191*_VS2010_X64_APP_PATH = DEF(VS2010_BINX64)\cl.exe
192*_VS2010_X64_VFRPP_PATH = DEF(VS2010_BINX64)\cl.exe
193*_VS2010_X64_ASM_PATH = DEF(VS2010_BINX64)\ml64.exe
194*_VS2010_X64_SLINK_PATH = DEF(VS2010_BINX64)\lib.exe
195*_VS2010_X64_DLINK_PATH = DEF(VS2010_BINX64)\link.exe
196*_VS2010_X64_ASLCC_PATH = DEF(VS2010_BINX64)\cl.exe
197*_VS2010_X64_ASLPP_PATH = DEF(VS2010_BINX64)\cl.exe
198*_VS2010_X64_ASLDLINK_PATH = DEF(VS2010_BINX64)\link.exe
199
200 DEBUG_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /MP
201RELEASE_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /MP
202NOOPT_VS2010_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Od /MP
203
204 DEBUG_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
205RELEASE_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd
206NOOPT_VS2010_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
207
208 DEBUG_VS2010_X64_NASM_FLAGS = -Ox -f win64 -g
209RELEASE_VS2010_X64_NASM_FLAGS = -Ox -f win64
210NOOPT_VS2010_X64_NASM_FLAGS = -O0 -f win64 -g
211
212 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
213RELEASE_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
214NOOPT_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
215
216##################
217# EBC definitions
218##################
219*_VS2010_EBC_*_FAMILY = INTEL
220*_VS2010_EBC_*_DLL = DEF(VS2010_DLL)
221
222*_VS2010_EBC_MAKE_PATH = DEF(VS2010_BIN)\nmake.exe
223*_VS2010_EBC_PP_PATH = DEF(EBC_BIN)\iec.exe
224*_VS2010_EBC_VFRPP_PATH = DEF(EBC_BIN)\iec.exe
225*_VS2010_EBC_CC_PATH = DEF(EBC_BIN)\iec.exe
226*_VS2010_EBC_SLINK_PATH = DEF(VS2010_BIN)\link.exe
227*_VS2010_EBC_DLINK_PATH = DEF(VS2010_BIN)\link.exe
228
229*_VS2010_EBC_MAKE_FLAGS = /nologo
230*_VS2010_EBC_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
231*_VS2010_EBC_CC_FLAGS = /nologo /c /WX /W3 /FIAutoGen.h /D$(MODULE_ENTRY_POINT)=$(ARCH_ENTRY_POINT)
232*_VS2010_EBC_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
233*_VS2010_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC
234*_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
235
236
237####################################################################################
238# VS2017 - Microsoft Visual Studio 2017 with Intel ASL
239# ASL - Intel ACPI Source Language Compiler (iasl.exe)
240####################################################################################
241# VS2017 - Microsoft Visual Studio 2017 professional Edition with Intel ASL
242*_VS2017_*_*_FAMILY = MSFT
243*_VS2017_*_*_DLL = DEF(VS2017_BIN_HOST)
244
245*_VS2017_*_MAKE_PATH = DEF(VS2017_BIN_HOST)\nmake.exe
246*_VS2017_*_MAKE_FLAG = /nologo
247*_VS2017_*_RC_PATH = DEF(WINSDK10_BIN)\rc.exe
248
249*_VS2017_*_MAKE_FLAGS = /nologo
250*_VS2017_*_SLINK_FLAGS = /NOLOGO /LTCG
251*_VS2017_*_APP_FLAGS = /nologo /E /TC
252*_VS2017_*_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
253*_VS2017_*_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
254*_VS2017_*_DLINK2_FLAGS = /WHOLEARCHIVE
255*_VS2017_*_ASM16_PATH = DEF(VS2017_BIN_IA32)\ml.exe
256
257##################
258# ASL definitions
259##################
260*_VS2017_*_ASL_PATH = DEF(WIN_IASL_BIN)
261*_VS2017_*_ASL_FLAGS = DEF(DEFAULT_WIN_ASL_FLAGS)
262*_VS2017_*_ASL_OUTFLAGS = DEF(DEFAULT_WIN_ASL_OUTFLAGS)
263*_VS2017_*_ASLCC_FLAGS = DEF(MSFT_ASLCC_FLAGS)
264*_VS2017_*_ASLPP_FLAGS = DEF(MSFT_ASLPP_FLAGS)
265*_VS2017_*_ASLDLINK_FLAGS = DEF(MSFT_ASLDLINK_FLAGS)
266
267##################
268# IA32 definitions
269##################
270*_VS2017_IA32_CC_PATH = DEF(VS2017_BIN_IA32)\cl.exe
271*_VS2017_IA32_VFRPP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
272*_VS2017_IA32_ASLCC_PATH = DEF(VS2017_BIN_IA32)\cl.exe
273*_VS2017_IA32_ASLPP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
274*_VS2017_IA32_SLINK_PATH = DEF(VS2017_BIN_IA32)\lib.exe
275*_VS2017_IA32_DLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
276*_VS2017_IA32_ASLDLINK_PATH= DEF(VS2017_BIN_IA32)\link.exe
277*_VS2017_IA32_APP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
278*_VS2017_IA32_PP_PATH = DEF(VS2017_BIN_IA32)\cl.exe
279*_VS2017_IA32_ASM_PATH = DEF(VS2017_BIN_IA32)\ml.exe
280
281 *_VS2017_IA32_MAKE_FLAGS = /nologo
282 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
283RELEASE_VS2017_IA32_CC_FLAGS = /nologo /arch:IA32 /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /MP
284NOOPT_VS2017_IA32_CC_FLAGS = /nologo /arch:IA32 /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Z7 /Od /MP
285
286 DEBUG_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
287RELEASE_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd
288NOOPT_VS2017_IA32_ASM_FLAGS = /nologo /c /WX /W3 /Cx /coff /Zd /Zi
289
290 DEBUG_VS2017_IA32_NASM_FLAGS = -Ox -f win32 -g
291RELEASE_VS2017_IA32_NASM_FLAGS = -Ox -f win32
292NOOPT_VS2017_IA32_NASM_FLAGS = -O0 -f win32 -g
293
294 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
295RELEASE_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
296NOOPT_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
297
298##################
299# X64 definitions
300##################
301*_VS2017_X64_CC_PATH = DEF(VS2017_BIN_X64)\cl.exe
302*_VS2017_X64_PP_PATH = DEF(VS2017_BIN_X64)\cl.exe
303*_VS2017_X64_APP_PATH = DEF(VS2017_BIN_X64)\cl.exe
304*_VS2017_X64_VFRPP_PATH = DEF(VS2017_BIN_X64)\cl.exe
305*_VS2017_X64_ASLCC_PATH = DEF(VS2017_BIN_X64)\cl.exe
306*_VS2017_X64_ASLPP_PATH = DEF(VS2017_BIN_X64)\cl.exe
307*_VS2017_X64_ASM_PATH = DEF(VS2017_BIN_X64)\ml64.exe
308*_VS2017_X64_SLINK_PATH = DEF(VS2017_BIN_X64)\lib.exe
309*_VS2017_X64_DLINK_PATH = DEF(VS2017_BIN_X64)\link.exe
310*_VS2017_X64_ASLDLINK_PATH = DEF(VS2017_BIN_X64)\link.exe
311
312 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
313RELEASE_VS2017_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Gw /MP
314NOOPT_VS2017_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Od /MP
315
316 DEBUG_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
317RELEASE_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd
318NOOPT_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi
319
320 DEBUG_VS2017_X64_NASM_FLAGS = -Ox -f win64 -g
321RELEASE_VS2017_X64_NASM_FLAGS = -Ox -f win64
322NOOPT_VS2017_X64_NASM_FLAGS = -O0 -f win64 -g
323
324 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
325RELEASE_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
326NOOPT_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
327
328#################
329# ARM definitions
330#################
331*_VS2017_ARM_CC_PATH = DEF(VS2017_BIN_ARM)\cl.exe
332*_VS2017_ARM_VFRPP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
333*_VS2017_ARM_SLINK_PATH = DEF(VS2017_BIN_ARM)\lib.exe
334*_VS2017_ARM_DLINK_PATH = DEF(VS2017_BIN_ARM)\link.exe
335*_VS2017_ARM_APP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
336*_VS2017_ARM_PP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
337*_VS2017_ARM_ASM_PATH = DEF(VS2017_BIN_ARM)\armasm.exe
338*_VS2017_ARM_ASLCC_PATH = DEF(VS2017_BIN_ARM)\cl.exe
339*_VS2017_ARM_ASLPP_PATH = DEF(VS2017_BIN_ARM)\cl.exe
340*_VS2017_ARM_ASLDLINK_PATH = DEF(VS2017_BIN_ARM)\link.exe
341
342 *_VS2017_ARM_MAKE_FLAGS = /nologo
343 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-
344RELEASE_VS2017_ARM_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /Oi-
345NOOPT_VS2017_ARM_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /Oi-
346
347 DEBUG_VS2017_ARM_ASM_FLAGS = /nologo /g
348RELEASE_VS2017_ARM_ASM_FLAGS = /nologo
349NOOPT_VS2017_ARM_ASM_FLAGS = /nologo
350
351 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
352RELEASE_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
353NOOPT_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
354
355#####################
356# AARCH64 definitions
357#####################
358*_VS2017_AARCH64_CC_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
359*_VS2017_AARCH64_VFRPP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
360*_VS2017_AARCH64_SLINK_PATH = DEF(VS2017_BIN_AARCH64)\lib.exe
361*_VS2017_AARCH64_DLINK_PATH = DEF(VS2017_BIN_AARCH64)\link.exe
362*_VS2017_AARCH64_APP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
363*_VS2017_AARCH64_PP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
364*_VS2017_AARCH64_ASM_PATH = DEF(VS2017_BIN_AARCH64)\armasm64.exe
365*_VS2017_AARCH64_ASLCC_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
366*_VS2017_AARCH64_ASLPP_PATH = DEF(VS2017_BIN_AARCH64)\cl.exe
367*_VS2017_AARCH64_ASLDLINK_PATH = DEF(VS2017_BIN_AARCH64)\link.exe
368
369 *_VS2017_AARCH64_MAKE_FLAGS = /nologo
370 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-
371RELEASE_VS2017_AARCH64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Gw /Oi-
372NOOPT_VS2017_AARCH64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /FIAutoGen.h /EHs-c- /GR- /GF /Gy /Zi /Gm /Od /Oi-
373
374 DEBUG_VS2017_AARCH64_ASM_FLAGS = /nologo /g
375RELEASE_VS2017_AARCH64_ASM_FLAGS = /nologo
376NOOPT_VS2017_AARCH64_ASM_FLAGS = /nologo
377
378 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
379RELEASE_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
380NOOPT_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
381
382##################
383# EBC definitions
384##################
385*_VS2017_EBC_*_FAMILY = INTEL
386
387*_VS2017_EBC_PP_PATH = DEF(EBC_BINx86)\iec.exe
388*_VS2017_EBC_VFRPP_PATH = DEF(EBC_BINx86)\iec.exe
389*_VS2017_EBC_CC_PATH = DEF(EBC_BINx86)\iec.exe
390*_VS2017_EBC_SLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
391*_VS2017_EBC_DLINK_PATH = DEF(VS2017_BIN_IA32)\link.exe
392
393*_VS2017_EBC_MAKE_FLAGS = /nologo
394*_VS2017_EBC_PP_FLAGS = /nologo /E /TC /FIAutoGen.h
395*_VS2017_EBC_CC_FLAGS = /nologo /c /WX /W3 /FIAutoGen.h /D$(MODULE_ENTRY_POINT)=$(ARCH_ENTRY_POINT)
396*_VS2017_EBC_VFRPP_FLAGS = /nologo /E /TC /DVFRCOMPILE /FI$(MODULE_NAME)StrDefs.h
397*_VS2017_EBC_SLINK_FLAGS = /lib /NOLOGO /MACHINE:EBC
398*_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
399
400
401####################################################################################
402# GCC Common
403####################################################################################
404
405*_*_*_OBJCOPY_PATH = echo
406*_*_*_OBJCOPY_FLAGS = objcopy not needed for
407*_*_*_SYMRENAME_PATH = echo
408*_*_*_SYMRENAME_FLAGS = Symbol renaming not needed for
409DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
410RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
411NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug
412*_*_*_DTC_FLAGS = -H epapr
413*_*_*_DTCPP_PATH = DEF(DTCPP_BIN)
414*_*_*_DTC_PATH = DEF(DTC_BIN)
415
416DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -include AutoGen.h -fno-common
417DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -fno-pic -fno-pie
418DEFINE 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@
419DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe @VBOX_MINGW32_Wno@
420DEFINE GCC_ARM_CC_XIPFLAGS = -mno-unaligned-access
421DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18
422DEFINE GCC_AARCH64_CC_XIPFLAGS = -mstrict-align -mgeneral-regs-only
423DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie
424DEFINE GCC_DLINK2_FLAGS_COMMON = -Wl,--script=$(EDK_TOOLS_PATH)/Scripts/GccBase.lds
425DEFINE GCC_IA32_X64_DLINK_COMMON = DEF(GCC_DLINK_FLAGS_COMMON) --gc-sections
426DEFINE GCC_ARM_AARCH64_DLINK_COMMON= -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u $(IMAGE_ENTRY_POINT) -Wl,-e,$(IMAGE_ENTRY_POINT),-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map
427DEFINE GCC_ARM_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON) -z common-page-size=0x20 -Wl,--pic-veneer
428DEFINE GCC_AARCH64_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON) -z common-page-size=0x20
429DEFINE GCC_ARM_AARCH64_ASLDLINK_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0 DEF(GCC_DLINK2_FLAGS_COMMON) -z common-page-size=0x20
430DEFINE GCC_IA32_X64_ASLDLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
431DEFINE GCC_ARM_ASLDLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT) DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
432DEFINE GCC_AARCH64_ASLDLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT) DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
433DEFINE 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
434DEFINE GCC_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
435DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
436DEFINE GCC_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h
437DEFINE GCC_ASLPP_FLAGS = -x c -E -include AutoGen.h
438DEFINE GCC_ASLCC_FLAGS = -x c
439DEFINE GCC_WINDRES_FLAGS = -J rc -O coff
440DEFINE GCC_DTCPP_FLAGS = -E -x assembler-with-cpp -imacros $(DEST_DIR_DEBUG)/AutoGen.h -nostdinc -undef
441DEFINE GCC_IA32_RC_FLAGS = -I binary -O elf32-i386 -B i386 --rename-section .data=.hii
442DEFINE GCC_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii
443DEFINE GCC_ARM_RC_FLAGS = -I binary -O elf32-littlearm -B arm --rename-section .data=.hii
444DEFINE GCC_AARCH64_RC_FLAGS = -I binary -O elf64-littleaarch64 -B aarch64 --rename-section .data=.hii
445
446DEFINE 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
447DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20
448DEFINE 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
449DEFINE 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
450DEFINE GCC48_IA32_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
451DEFINE 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
452DEFINE GCC48_IA32_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 DEF(GCC_DLINK2_FLAGS_COMMON)
453DEFINE GCC48_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie
454DEFINE GCC48_X64_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x228 DEF(GCC_DLINK2_FLAGS_COMMON)
455DEFINE GCC48_ASM_FLAGS = DEF(GCC_ASM_FLAGS)
456DEFINE GCC48_ARM_ASM_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_ASM_FLAGS) -mlittle-endian
457DEFINE GCC48_AARCH64_ASM_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_ASM_FLAGS) -mlittle-endian
458DEFINE GCC48_ARM_CC_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_ARM_CC_FLAGS) -fstack-protector -mword-relocations
459DEFINE GCC48_ARM_CC_XIPFLAGS = DEF(GCC_ARM_CC_XIPFLAGS)
460DEFINE GCC48_AARCH64_CC_FLAGS = $(PLATFORM_FLAGS) -mcmodel=large DEF(GCC_AARCH64_CC_FLAGS)
461DEFINE GCC48_AARCH64_CC_XIPFLAGS = DEF(GCC_AARCH64_CC_XIPFLAGS)
462DEFINE GCC48_ARM_DLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--oformat=elf32-littlearm
463DEFINE GCC48_ARM_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--defsym=PECOFF_HEADER_SIZE=0x220
464DEFINE GCC48_AARCH64_DLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS)
465DEFINE GCC48_AARCH64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--defsym=PECOFF_HEADER_SIZE=0x228
466DEFINE GCC48_ARM_ASLDLINK_FLAGS = DEF(GCC_ARM_ASLDLINK_FLAGS) -Wl,--oformat=elf32-littlearm
467DEFINE GCC48_AARCH64_ASLDLINK_FLAGS = DEF(GCC_AARCH64_ASLDLINK_FLAGS)
468DEFINE GCC48_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
469
470####################################################################################
471#
472# GCC 4.8 - This configuration is used to compile under Linux to produce
473# PE/COFF binaries using GCC 4.8.
474#
475####################################################################################
476*_GCC48_*_*_FAMILY = GCC
477
478*_GCC48_*_MAKE_PATH = @KMK@
479*_GCC48_*_*_DLL = ENV(GCC48_DLL)
480*_GCC48_*_ASL_PATH = DEF(UNIX_IASL_BIN)
481
482*_GCC48_*_PP_FLAGS = DEF(GCC_PP_FLAGS)
483*_GCC48_*_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS)
484*_GCC48_*_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
485*_GCC48_*_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
486*_GCC48_*_APP_FLAGS =
487*_GCC48_*_ASL_FLAGS = DEF(IASL_FLAGS)
488*_GCC48_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
489
490##################
491# GCC48 IA32 definitions
492##################
493*_GCC48_IA32_OBJCOPY_PATH = DEF(GCC48_IA32_PREFIX)objcopy
494*_GCC48_IA32_CC_PATH = DEF(GCC48_IA32_PREFIX)gcc
495*_GCC48_IA32_SLINK_PATH = DEF(GCC48_IA32_PREFIX)ar
496*_GCC48_IA32_DLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
497*_GCC48_IA32_ASLDLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
498*_GCC48_IA32_ASM_PATH = DEF(GCC48_IA32_PREFIX)gcc
499*_GCC48_IA32_PP_PATH = DEF(GCC48_IA32_PREFIX)gcc
500*_GCC48_IA32_VFRPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
501*_GCC48_IA32_ASLCC_PATH = DEF(GCC48_IA32_PREFIX)gcc
502*_GCC48_IA32_ASLPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
503*_GCC48_IA32_RC_PATH = DEF(GCC48_IA32_PREFIX)objcopy
504
505*_GCC48_IA32_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m32
506*_GCC48_IA32_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
507*_GCC48_IA32_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m32 -march=i386
508*_GCC48_IA32_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
509*_GCC48_IA32_DLINK2_FLAGS = DEF(GCC48_IA32_DLINK2_FLAGS)
510*_GCC48_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
511*_GCC48_IA32_OBJCOPY_FLAGS =
512*_GCC48_IA32_NASM_FLAGS = -f elf32
513
514 DEBUG_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -Os
515RELEASE_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -Os -Wno-unused-but-set-variable
516 NOOPT_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -O0
517
518##################
519# GCC48 X64 definitions
520##################
521*_GCC48_X64_OBJCOPY_PATH = DEF(GCC48_X64_PREFIX)objcopy
522*_GCC48_X64_CC_PATH = DEF(GCC48_X64_PREFIX)gcc
523*_GCC48_X64_SLINK_PATH = DEF(GCC48_X64_PREFIX)ar
524*_GCC48_X64_DLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
525*_GCC48_X64_ASLDLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
526*_GCC48_X64_ASM_PATH = DEF(GCC48_X64_PREFIX)gcc
527*_GCC48_X64_PP_PATH = DEF(GCC48_X64_PREFIX)gcc
528*_GCC48_X64_VFRPP_PATH = DEF(GCC48_X64_PREFIX)gcc
529*_GCC48_X64_ASLCC_PATH = DEF(GCC48_X64_PREFIX)gcc
530*_GCC48_X64_ASLPP_PATH = DEF(GCC48_X64_PREFIX)gcc
531*_GCC48_X64_RC_PATH = DEF(GCC48_X64_PREFIX)objcopy
532
533*_GCC48_X64_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m64
534*_GCC48_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
535*_GCC48_X64_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m64
536*_GCC48_X64_DLINK_FLAGS = DEF(GCC48_X64_DLINK_FLAGS)
537*_GCC48_X64_DLINK2_FLAGS = DEF(GCC48_X64_DLINK2_FLAGS)
538*_GCC48_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
539*_GCC48_X64_OBJCOPY_FLAGS =
540*_GCC48_X64_NASM_FLAGS = -f elf64
541
542 DEBUG_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -Os
543RELEASE_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -Os -Wno-unused-but-set-variable
544 NOOPT_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -O0
545
546##################
547# GCC48 ARM definitions
548##################
549*_GCC48_ARM_CC_PATH = DEF(GCC48_ARM_PREFIX)gcc
550*_GCC48_ARM_SLINK_PATH = DEF(GCC48_ARM_PREFIX)ar
551*_GCC48_ARM_DLINK_PATH = DEF(GCC48_ARM_PREFIX)gcc
552*_GCC48_ARM_ASLDLINK_PATH = DEF(GCC48_ARM_PREFIX)gcc
553*_GCC48_ARM_ASM_PATH = DEF(GCC48_ARM_PREFIX)gcc
554*_GCC48_ARM_PP_PATH = DEF(GCC48_ARM_PREFIX)gcc
555*_GCC48_ARM_VFRPP_PATH = DEF(GCC48_ARM_PREFIX)gcc
556*_GCC48_ARM_ASLCC_PATH = DEF(GCC48_ARM_PREFIX)gcc
557*_GCC48_ARM_ASLPP_PATH = DEF(GCC48_ARM_PREFIX)gcc
558*_GCC48_ARM_RC_PATH = DEF(GCC48_ARM_PREFIX)objcopy
559
560*_GCC48_ARM_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS)
561*_GCC48_ARM_ASLDLINK_FLAGS = DEF(GCC48_ARM_ASLDLINK_FLAGS)
562*_GCC48_ARM_ASM_FLAGS = DEF(GCC48_ARM_ASM_FLAGS)
563*_GCC48_ARM_DLINK_FLAGS = DEF(GCC48_ARM_DLINK_FLAGS)
564*_GCC48_ARM_DLINK2_FLAGS = DEF(GCC48_ARM_DLINK2_FLAGS)
565*_GCC48_ARM_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
566*_GCC48_ARM_PLATFORM_FLAGS = -march=armv7-a
567*_GCC48_ARM_PP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
568*_GCC48_ARM_RC_FLAGS = DEF(GCC_ARM_RC_FLAGS)
569*_GCC48_ARM_VFRPP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
570*_GCC48_ARM_CC_XIPFLAGS = DEF(GCC48_ARM_CC_XIPFLAGS)
571
572 DEBUG_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -O0
573RELEASE_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -Wno-unused-but-set-variable
574 NOOPT_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -O0
575
576##################
577# GCC48 AARCH64 definitions
578##################
579*_GCC48_AARCH64_CC_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
580*_GCC48_AARCH64_SLINK_PATH = DEF(GCC48_AARCH64_PREFIX)ar
581*_GCC48_AARCH64_DLINK_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
582*_GCC48_AARCH64_ASLDLINK_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
583*_GCC48_AARCH64_ASM_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
584*_GCC48_AARCH64_PP_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
585*_GCC48_AARCH64_VFRPP_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
586*_GCC48_AARCH64_ASLCC_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
587*_GCC48_AARCH64_ASLPP_PATH = DEF(GCC48_AARCH64_PREFIX)gcc
588*_GCC48_AARCH64_RC_PATH = DEF(GCC48_AARCH64_PREFIX)objcopy
589
590*_GCC48_AARCH64_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS)
591*_GCC48_AARCH64_ASLDLINK_FLAGS = DEF(GCC48_AARCH64_ASLDLINK_FLAGS)
592*_GCC48_AARCH64_ASM_FLAGS = DEF(GCC48_AARCH64_ASM_FLAGS)
593*_GCC48_AARCH64_DLINK_FLAGS = DEF(GCC48_AARCH64_DLINK_FLAGS)
594*_GCC48_AARCH64_DLINK2_FLAGS = DEF(GCC48_AARCH64_DLINK2_FLAGS)
595*_GCC48_AARCH64_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
596*_GCC48_AARCH64_PLATFORM_FLAGS =
597*_GCC48_AARCH64_PP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
598*_GCC48_AARCH64_RC_FLAGS = DEF(GCC_AARCH64_RC_FLAGS)
599*_GCC48_AARCH64_VFRPP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
600*_GCC48_AARCH64_CC_XIPFLAGS = DEF(GCC48_AARCH64_CC_XIPFLAGS)
601
602 DEBUG_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -O0
603RELEASE_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable
604 NOOPT_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -O0
605
606#################
607# ASM 16 linker definitions
608#################
609*_*_*_ASMLINK_PATH = DEF(WINDDK_BIN16)\link16.exe
610*_*_*_ASMLINK_FLAGS = /nologo /tiny
611
612##################
613# VfrCompiler definitions
614##################
615*_*_*_VFR_PATH = VfrCompile
616*_*_*_VFR_FLAGS = -l -n
617
618##################
619# OptionRom tool definitions
620##################
621*_*_*_OPTROM_PATH = EfiRom
622*_*_*_OPTROM_FLAGS = -e
623
624##################
625# GenFw tool definitions
626##################
627*_*_*_GENFW_PATH = GenFw
628*_*_*_GENFW_FLAGS =
629
630##################
631# Asl Compiler definitions
632##################
633*_*_*_ASLCC_FLAGS = /nologo /c /FIAutoGen.h /TC /Dmain=ReferenceAcpiTable
634*_*_*_ASLDLINK_FLAGS = /NODEFAULTLIB /ENTRY:ReferenceAcpiTable /SUBSYSTEM:CONSOLE
635*_*_*_ASLPP_FLAGS = /nologo /EP /C
636*_*_*_ASL_FLAGS =
637
638##################
639# GenCrc32 tool definitions
640##################
641*_*_*_CRC32_PATH = GenCrc32
642*_*_*_CRC32_GUID = FC1BCDB0-7D31-49AA-936A-A4600D9DD083
643
644##################
645# Rsa2048Sha256Sign tool definitions
646#
647# Notes: This tool definition uses a test signing key for development purposes only.
648# The tool Rsa2048Sha256GenerateKeys can be used to generate a new private/public key
649# and the gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value.
650# A custom tool/script can be implemented using the new private/public key with
651# the Rsa2048Sha256Sign tool and this tool definition can be updated to use a
652# custom tool/script.
653#
654# Generate new private/public key and gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer PCD value
655#
656# Rsa2048Sha256GenerateKeys.py -o MyKey.pem --public-key-hash-c MyKey.pcd
657#
658# Custom script example (MyRsa2048Sha256Sign.cmd):
659#
660# Rsa2048Sha256Sign --private-key MyKey.pem %1 %2 %3 %4 %5 %6 %7 %8 %9
661#
662# WARNING: Vendors that uses private keys are responsible for proper management and protection
663# of private keys. Vendors may choose to use infrastructure such as signing servers
664# or signing portals to support the management and protection of private keys.
665#
666##################
667*_*_*_RSA2048SHA256SIGN_PATH = Rsa2048Sha256Sign
668*_*_*_RSA2048SHA256SIGN_GUID = A7717414-C616-4977-9420-844712A735BF
669
670##################
671# BrotliCompress tool definitions
672##################
673*_*_*_BROTLI_PATH = BrotliCompress
674*_*_*_BROTLI_GUID = 3D532050-5CDA-4FD0-879E-0F7F630D5AFB
675
676##################
677# LzmaCompress tool definitions
678##################
679*_*_*_LZMA_PATH = LzmaCompress
680*_*_*_LZMA_GUID = EE4E5898-3914-4259-9D6E-DC7BD79403CF
681
682##################
683# LzmaF86Compress tool definitions with converter for x86 code.
684# It can improve the compression ratio if the input file is IA32 or X64 PE image.
685##################
686*_*_*_LZMAF86_PATH = LzmaF86Compress
687*_*_*_LZMAF86_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889
688
689##################
690# TianoCompress tool definitions
691##################
692*_*_*_TIANO_PATH = TianoCompress
693*_*_*_TIANO_GUID = A31280AD-481E-41B6-95E8-127F4C984779
694
695##################
696# BPDG tool definitions
697##################
698*_*_*_VPDTOOL_PATH = BPDG
699*_*_*_VPDTOOL_GUID = 8C3D856A-9BE6-468E-850A-24F7A8D38E08
700
701##################
702# Pkcs7Sign tool definitions
703##################
704*_*_*_PKCS7SIGN_PATH = Pkcs7Sign
705*_*_*_PKCS7SIGN_GUID = 4AAFD29D-68DF-49EE-8AA9-347D375665A7
706
707##################
708# NASM tool definitions
709##################
710*_*_*_NASM_PATH = @VBOX_NASMCMD@
711# NASMB uses NASM produce a .bin from a .nasmb NASM source file
712*_*_*_NASMB_FLAGS = -f bin -DVBOX
713
714#################
715# Build rule order
716#################
717*_*_*_*_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