VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/Makefile.kmk@ 78223

Last change on this file since 78223 was 77669, checked in by vboxsync, 6 years ago

EFI: Switched yasm to nasm, misc build fixes; work in progress.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.6 KB
Line 
1# $Id: Makefile.kmk 77669 2019-03-12 16:34:13Z vboxsync $
2## @file
3# Toplevel sub-makefile for the EFI firmwares.
4#
5# Note! kBuild is only used for the build tools, the rest is handled by the
6# very custom EFI build system.
7#
8
9#
10# Copyright (C) 2013-2019 Oracle Corporation
11#
12# This file is part of VirtualBox Open Source Edition (OSE), as
13# available from http://www.virtualbox.org. This file is free software;
14# you can redistribute it and/or modify it under the terms of the GNU
15# General Public License (GPL) as published by the Free Software
16# Foundation, in version 2 as it comes in the "COPYING" file of the
17# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19#
20# The contents of this file may alternatively be used under the terms
21# of the Common Development and Distribution License Version 1.0
22# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
23# VirtualBox OSE distribution, in which case the provisions of the
24# CDDL are applicable instead of those of the GPL.
25#
26# You may elect to license modified versions of this file under the
27# terms and conditions of either the GPL or the CDDL or both.
28#
29
30SUB_DEPTH = ../../../../..
31include $(KBUILD_PATH)/subheader.kmk
32
33#
34# Make sure our Config.kmk is included.
35#
36ifndef VBOX_EFI_FIRMWARE_CONFIG_KMK_INCLUDED
37 include $(PATH_SUB_CURRENT)/Config.kmk
38endif
39
40
41#
42# Include sub-makefiles.
43#
44VBOX_EFI_BLDPROGS := $(BLDPROGS)
45include $(PATH_SUB_CURRENT)/BaseTools/Makefile.kmk
46VBOX_EFI_BLDPROGS := $(filter-out $(VBOX_EFI_BLDPROGS),$(BLDPROGS)) VBoxEfiBldPythonWrappers
47
48#
49# Binary wrappers for python scripts.
50#
51VBOX_EFI_PYTHON_WRAPPERS = \
52 BPDG \
53 build \
54 Ecc \
55 GenFds \
56 GenPatchPcdTable \
57 PatchPcdValue \
58 Trim \
59 TargetTool \
60 UPT
61
62INSTALLS += VBoxEfiBldPythonWrappers
63VBoxEfiBldPythonWrappers_TEMPLATE = VBoxEfiBldProg
64if1of ($(KBUILD_HOST), win os2)
65 VBoxEfiBldPythonWrappers_EXEC_SOURCES = \
66 $(foreach PyWrap,$(VBOX_EFI_PYTHON_WRAPPERS),$(VBoxEfiBldPythonWrappers_0_OUTDIR)/$(PyWrap).cmd)
67else
68 VBoxEfiBldPythonWrappers_EXEC_SOURCES = \
69 $(addprefix $(VBoxEfiBldPythonWrappers_0_OUTDIR)/,$(VBOX_EFI_PYTHON_WRAPPERS))
70endif
71VBoxEfiBldPythonWrappers_CLEAN = $(VBoxEfiBldPythonWrappers_EXEC_SOURCES)
72
73if1of ($(KBUILD_HOST), win os2)
74 define VBoxEfiBldPythonWrappersRuleTemplate
75 $$$$(VBoxEfiBldPythonWrappers_0_OUTDIR)/$(PyWrap).cmd: | $$$$(dir $$$$@)
76 $$(APPEND) -tn "$$@" \
77 '@SET PYTHONPATH=$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python' \
78 '@"$$(VBOX_BLD_PYTHON_2X)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" %*'
79 endef
80else
81 define VBoxEfiBldPythonWrappersRuleTemplate
82 $$$$(VBoxEfiBldPythonWrappers_0_OUTDIR)/$(PyWrap): | $$$$(dir $$$$@)
83 $$(APPEND) -tn "$$@" \
84 '#!$(ASH)' \
85 'export PYTHONPATH="$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python"' \
86 'exec "$$(VBOX_BLD_PYTHON_2X)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" "$$(DOLLAR)@"'
87 $$(CHMOD) a+x "$$@"
88 endef
89endif
90$(foreach PyWrap,$(VBOX_EFI_PYTHON_WRAPPERS),$(eval $(VBoxEfiBldPythonWrappersRuleTemplate)))
91
92#
93# Rules for building and installing the VBox EFI firmware images.
94#
95INSTALLS += VBoxEfiFirmware
96VBoxEfiFirmware_INST = $(INST_BIN)
97VBoxEfiFirmware_MODE = 0644
98VBoxEfiFirmware_SOURCES = \
99 $(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/FV/OVMF.fd=>VBoxEFI32.fd \
100 $(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/FV/OVMF.fd=>VBoxEFI64.fd
101VBoxEfiFirmware_BLDDIRS = \
102 $(VBoxEfiFirmware_0_OUTDIR)/x86/ \
103 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/ \
104 $(VBoxEfiFirmware_0_OUTDIR)/amd64/ \
105 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/
106VBoxEfiFirmware_CLEAN = \
107 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/target.txt \
108 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/build_rule.txt \
109 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/tools_def.txt \
110 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/target.txt \
111 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/build_rule.txt \
112 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/tools_def.txt
113
114# Install the debug info.
115INSTALLS += VBoxEfiFirmwareDbg32
116VBoxEfiFirmwareDbg32_INST = $(INST_VBOXDBG_SYMS)x86/
117VBoxEfiFirmwareDbg32_MODE = 0644
118if1of ($(KBUILD_HOST), win)
119 VBoxEfiFirmwareDbg32_SOURCES = \
120 $(foreach mod,$(VBOX_EFI_MODULES),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).pdb)
121else
122 VBoxEfiFirmwareDbg32_SOURCES = \
123 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).debug)
124endif
125
126INSTALLS += VBoxEfiFirmwareDbg64
127VBoxEfiFirmwareDbg64_INST = $(INST_VBOXDBG_SYMS)amd64/
128VBoxEfiFirmwareDbg64_MODE = 0644
129if1of ($(KBUILD_HOST), win)
130 VBoxEfiFirmwareDbg64_SOURCES = \
131 $(foreach mod,$(VBOX_EFI_MODULES),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).pdb)
132else
133 VBoxEfiFirmwareDbg64_SOURCES = \
134 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).debug)
135endif
136
137
138#
139# Install a custom clean up rule for dealing with the EFI build system output.
140#
141PASS_CLEAN_trgs += VBoxEfiFirmwareCleanup
142VBoxEfiFirmwareCleanup:
143 $(if $(VBoxEfiFirmware_0_OUTDIR),,exit 1)
144 $(RM) -Rf -- "$(VBoxEfiFirmware_0_OUTDIR)/amd64/" "$(VBoxEfiFirmware_0_OUTDIR)/x86/"
145.PHONY: VBoxEfiFirmwareCleanup
146
147
148#
149# The zipfile.
150#
151include $(KBUILD_PATH)/tools/ZIP.kmk
152ifndef TOOL_ZIP_PACK
153 TOOL_ZIP_PACK = zip
154endif
155VBoxEfiFirmware.zip: $(PATH_STAGE)/VBoxEfiFirmware.zip
156$(PATH_STAGE)/VBoxEfiFirmware.zip:
157 $(REDIRECT) -C "$(PATH_STAGE_BIN)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X $@ \
158 VBoxEFI32.fd \
159 VBoxEFI64.fd
160 $(REDIRECT) -C "$(PATH_STAGE)/$(INST_VBOXDBG_SYMS)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X $@ \
161 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),amd64/$(mod)$(VBOX_EFI_DBG_SUFF)) \
162 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),x86/$(mod)$(VBOX_EFI_DBG_SUFF))
163
164#
165# Include the footer early so that we can use VBoxEfiFirmware_0_OUTDIR below.
166#
167include $(FILE_KBUILD_SUB_FOOTER)
168
169#
170# Incomplete list of dependencies relative.
171#
172VBOX_EFI_DEPENDENCIES = \
173 $(VBOX_PATH_EFI_FIRMWARE)/../DevEFI.h \
174 $(VBOX_PATH_EFI_FIRMWARE)/VBoxPkg/Library/VBoxDebugAgentLib/VBoxDebugAgentLib.c \
175 $(VBOX_PATH_EFI_FIRMWARE)/VBoxPkg/Library/VBoxDebugAgentLib/VBoxDebugAgentLib.inf \
176 $(VBOX_PATH_EFI_FIRMWARE)/VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.c \
177 $(VBOX_PATH_EFI_FIRMWARE)/VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.inf \
178 $(VBOX_PATH_EFI_FIRMWARE)/VBoxPkg/VBoxPkg.dec \
179 \
180 $(VBOX_PATH_EFI_FIRMWARE)/OvmfPkg/OvmfPkg.dec \
181 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c \
182 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c \
183 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c \
184 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c \
185 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c \
186 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf \
187 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsStrings.uni \
188 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/InternalBdsLib.h \
189 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/String.c \
190 $(VBOX_PATH_EFI_FIRMWARE)/IntelFrameworkModulePkg/Library/GenericBdsLib/String.h \
191
192#
193# The common build.py invocation part.
194# Note! windir isn't set in cygwin on tinderwin2a. SystemRoot is.
195# Note! MAKEFLAGS must be zapped on Windows so nmake don't get confused.
196#
197if1of ($(KBUILD_HOST), win)
198 VBOX_EFI_REDIRECT_E_EQUAL:=$(EQUAL)
199 VBOX_EFI_BUILD_CMD = $(REDIRECT) \
200 -E 'PATH=$(VBOX_PATH_STAGE_EFI_BLDPROGS)$(VBOX_SEP)$(PATH);' \
201 -E 'INCLUDE=$(PATH_ROOT)/include$(VBOX_SEP)$(PATH_OUT)$(VBOX_SEP)$(VBOX_SEP)$(PATH_TOOL_$(VBOX_VCC_TOOL)_INC)$(INCLUDE);' \
202 -E 'COMSPEC=$(firstword $(windir) $(SystemRoot) C:\windows)\system32\cmd.exe' \
203 -E 'MAKEFLAGS='
204else
205 VBOX_EFI_REDIRECT_E_EQUAL:=
206VBOX_EFI_BUILD_CMD = $(REDIRECT) \
207 -E "PATH=$(VBOX_PATH_STAGE_EFI_BLDPROGS)$(VBOX_SEP)$(PATH)" \
208 -E "C_INCLUDE_PATH=$(PATH_ROOT)/include$(VBOX_SEP)$(PATH_OUT)$(VBOX_SEP)$(C_INCLUDE_PATH)" \
209 -E "CPLUS_INCLUDE_PATH=$(PATH_ROOT)/include$(VBOX_SEP)$(PATH_OUT)$(VBOX_SEP)$(C_INCLUDE_PATH)"
210endif
211VBOX_EFI_BUILD_CMD += \
212 -E 'PYTHONPATH=$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python' \
213 -E 'PYTHONDONTWRITEBYTECODE=1' \
214 -E 'IASL_BIN=$(VBOX_IASLCMD)' \
215 -E 'NASM_BIN=$(VBOX_NASMCMD)' \
216 -E 'CONF_PATH=$(abspath $(@D)/../../Conf)' \
217 -E 'WORKSPACE=$(VBOX_PATH_EFI_FIRMWARE)' \
218 -E 'EDK_TOOLS_PATH=$(VBOX_PATH_EFI_FIRMWARE)/BaseTools' \
219 -E 'EFI_SOURCE$(VBOX_EFI_REDIRECT_E_EQUAL)' \
220 -E 'ECP_SOURCE$(VBOX_EFI_REDIRECT_E_EQUAL)' \
221 -E 'EDK_SOURCE$(VBOX_EFI_REDIRECT_E_EQUAL)' \
222 -E 'X64_PETOOLS_PREFIX$(VBOX_EFI_REDIRECT_E_EQUAL)' \
223 -E 'ARCH$(VBOX_EFI_REDIRECT_E_EQUAL)' \
224 -E 'IPF_PETOOLS_PREFIX=__no_ipf__' \
225 -E $(if-expr "$(KBUILD_VERBOSE)" != "",'EFI_QUIET=','EFI_QUIET=@') \
226 -C '$(VBOX_PATH_EFI_FIRMWARE)' \
227 -- $(VBOX_BLD_PYTHON_2X) "$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/build/build.py" \
228 -D VBOX=1 \
229 -D VBOX_WITH_OVMF=1 \
230 -D BUILD_NEW_SHELL=1 \
231 -D VBOX_REV=$(VBOX_SVN_REV) \
232 -D "VBOX_OUTPUT_BASE_DIR=$(VBoxEfiFirmware_0_OUTDIR)" \
233 -D "VBOX_PATH_ROOT=$(PATH_ROOT)" \
234 -D "FD_SIZE_2MB=1" \
235 $(if $(VBOX_OSE),-D "VBOX_OSE=1") \
236 $(if-expr "$(KBUILD_VERBOSE)" != "",$(if-expr "$(KBUILD_VERBOSE)" >= 3,-v,),--silent --quiet) \
237 --no-cache \
238 --buildtarget $(VBOX_EFI_BUILD_TARGET) \
239 --tagname $(VBOX_EFI_TOOL_CHAIN)
240
241#
242# Derive the number of parallel jobs (on windows) from KMK_OPTS_JOBS.
243#
244VBOX_EFI_MAX_THREADS := 1
245if defined(KMK_OPTS_JOBS) && "$(KBUILD_HOST)" == "win"
246 VBOX_EFI_MAX_THREADS := $(if-expr $(KMK_OPTS_JOBS) > 0,$(expr $(KMK_OPTS_JOBS) / 2),$(NUMBER_OF_PROCESSORS))
247endif
248
249#
250# Tools configurations.
251#
252$(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/tools_def.txt \
253$(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/tools_def.txt: \
254 $(VBOX_PATH_EFI_FIRMWARE)/vbox-tools_def.txt \
255 $(MAKEFILE) | $$(dir $$@)
256 $(RM) -f -- "$@"
257 $(SED) \
258 -e 's,@VBOX_IASLCMD@,$(VBOX_IASLCMD),' \
259 -e 's,@VBOX_YASMCMD@,$(VBOX_YASMCMD),' \
260 -e 's,@VBOX_NASMCMD@,$(VBOX_NASMCMD),' \
261 -e 's,@KMK@,$(MAKE),' \
262 \
263 -e 's,@VBOX_PATH_PREFIX_MINGW32@,$(VBOX_PATH_PREFIX_MINGW32),' \
264 -e 's,@VBOX_PATH_PREFIX_MINGW64@,$(VBOX_PATH_PREFIX_MINGW64),' \
265 -e 's,@VBOX_MINGW32_Wno@,-Wno-address $(VBOX_MINGW32_Wno-unused-but-set-variable) $(VBOX_MINGW32_Wno-maybe-uninitialized) $(VBOX_MINGW32_Wno-array-bounds),' \
266 -e 's,@VBOX_MINGW64_Wno@,-Wno-address $(VBOX_MINGW64_Wno-unused-but-set-variable) $(VBOX_MINGW64_Wno-maybe-uninitialized) $(VBOX_MINGW64_Wno-array-bounds),' \
267 -e 's,@VBOX_MINGW64_USER_LABEL_PREFIX@,$(VBOX_MINGW64_USER_LABEL_PREFIX),' \
268 \
269 -e 's,@PATH_VS2010@,$(PATH_TOOL_$(VBOX_VCC_TOOL)),' \
270 -e 's,@PATH_VS2010_AMD64_BIN@,$(PATH_TOOL_$(VBOX_VCC_TOOL))/bin/$(subst x86,x86_amd64,$(KBUILD_HOST_ARCH)),' \
271 \
272 --output $@ $<
273
274# This may not really need sed, just a plain file copy.
275$(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/build_rule.txt \
276$(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/build_rule.txt: \
277 $(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Conf/build_rule.template \
278 $(MAKEFILE) | $$(dir $$@)
279 $(RM) -f -- "$@"
280 $(SED) \
281 -e 's,@VBOX_IASLCMD@,$(VBOX_IASLCMD),' \
282 -e 's,@VBOX_YASMCMD@,$(VBOX_YASMCMD),' \
283 -e 's,@VBOX_NASMCMD@,$(VBOX_NASMCMD),' \
284 -e 's,@KMK@,$(MAKE),' \
285 \
286 -e 's,@VBOX_PATH_PREFIX_MINGW32@,$(VBOX_PATH_PREFIX_MINGW32),' \
287 -e 's,@VBOX_PATH_PREFIX_MINGW64@,$(VBOX_PATH_PREFIX_MINGW64),' \
288 -e 's,@VBOX_MINGW32_Wno@,-Wno-address $(VBOX_MINGW32_Wno-unused-but-set-variable) $(VBOX_MINGW32_Wno-maybe-uninitialized) $(VBOX_MINGW32_Wno-array-bounds),' \
289 -e 's,@VBOX_MINGW64_Wno@,-Wno-address $(VBOX_MINGW64_Wno-unused-but-set-variable) $(VBOX_MINGW64_Wno-maybe-uninitialized) $(VBOX_MINGW64_Wno-array-bounds),' \
290 -e 's,@VBOX_MINGW64_USER_LABEL_PREFIX@,$(VBOX_MINGW64_USER_LABEL_PREFIX),' \
291 \
292 -e 's,@PATH_VS2010@,$(PATH_TOOL_$(VBOX_VCC_TOOL)),' \
293 -e 's,@PATH_VS2010_AMD64_BIN@,$(PATH_TOOL_$(VBOX_VCC_TOOL))/bin/$(subst x86,x86_amd64,$(KBUILD_HOST_ARCH)),' \
294 \
295 --output $@ $<
296
297
298#
299# VBoxEFI32
300#
301$(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/target.txt: $(MAKEFILE) | $$(dir $$@) $(VBOX_EFI_BLDPROGS)
302 $(APPEND) -tn "$@" \
303 "# Automatically generated, do not edit" \
304 "" \
305 "# These variables cannot be overriden by the build.py command line." \
306 "TOOL_CHAIN_CONF = $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/tools_def.txt" \
307 "BUILD_RULE_CONF = $(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Conf/build_rule.template" \
308 "" \
309 "# These variables are overridden and this is just for show." \
310 "ACTIVE_PLATFORM = OvmfPkg/OvmfPkgIa32.dsc" \
311 "TARGET = $(VBOX_EFI_BUILD_TARGET)" \
312 "TARGET_ARCH = IA32" \
313 "TOOL_CHAIN_TAG = $(VBOX_EFI_TOOL_CHAIN)" \
314 "MAX_CONCURRENT_THREAD_NUMBER = $(VBOX_EFI_MAX_THREADS)"
315
316$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/FV/OVMF.fd \
317+ $(VBoxEfiFirmwareDbg32_SOURCES): \
318 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/target.txt \
319 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/tools_def.txt \
320 $(VBoxEfiFirmware_0_OUTDIR)/x86/Conf/build_rule.txt \
321 $$(VBoxEfiResetVector-x86_1_TARGET) \
322 $(VBOX_EFI_DEPENDENCIES) \
323 $(VBOX_PATH_EFI_FIRMWARE)/OvmfPkg/OvmfPkgIa32.dsc \
324 $(VBOX_PATH_EFI_FIRMWARE)/OvmfPkg/OvmfPkgIa32.fdf
325 + $(VBOX_EFI_BUILD_CMD) \
326 --arch IA32 \
327 --platform OvmfPkg/OvmfPkgIa32.dsc
328
329#
330# VBoxEFI64
331#
332$(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/target.txt: $(MAKEFILE) | $$(dir $$@) $(VBOX_EFI_BLDPROGS)
333 $(APPEND) -tn "$@" \
334 "# Automatically generated, do not edit" \
335 "" \
336 "# These variables cannot be overriden by the build.py command line." \
337 "TOOL_CHAIN_CONF = $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/tools_def.txt" \
338 "BUILD_RULE_CONF = $(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Conf/build_rule.template" \
339 "" \
340 "# These variables are overridden and this is just for show." \
341 "ACTIVE_PLATFORM = OvmfPkg/OvmfPkgX64.dsc" \
342 "TARGET = $(VBOX_EFI_BUILD_TARGET)" \
343 "TARGET_ARCH = X64" \
344 "TOOL_CHAIN_TAG = $(VBOX_EFI_TOOL_CHAIN)" \
345 "MAX_CONCURRENT_THREAD_NUMBER = $(VBOX_EFI_MAX_THREADS)"
346
347$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/FV/OVMF.fd \
348+ $(VBoxEfiFirmwareDbg64_SOURCES): \
349 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/target.txt \
350 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/tools_def.txt \
351 $(VBoxEfiFirmware_0_OUTDIR)/amd64/Conf/build_rule.txt \
352 $$(VBoxEfiResetVector-amd64_1_TARGET) \
353 $(VBOX_EFI_DEPENDENCIES) \
354 $(VBOX_PATH_EFI_FIRMWARE)/OvmfPkg/OvmfPkgX64.dsc \
355 $(VBOX_PATH_EFI_FIRMWARE)/OvmfPkg/OvmfPkgX64.fdf
356 + $(VBOX_EFI_BUILD_CMD) \
357 --arch X64 \
358 --platform OvmfPkg/OvmfPkgX64.dsc
359
360#
361# Some aliases.
362#
363build-efi-x86: $$(filter %VBoxEFI32.fd,$$(VBoxEfiFirmware_2_STAGE_TARGETS))
364build-efi-amd64: $$(filter %VBoxEFI64.fd,$$(VBoxEfiFirmware_2_STAGE_TARGETS))
365
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