1 | # $Id: Makefile.kmk 87728 2021-02-12 02:24:07Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Make sure our Config.kmk is included.
|
---|
22 | ifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
|
---|
23 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
24 | endif
|
---|
25 |
|
---|
26 | # Include sub-makefiles.
|
---|
27 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
28 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
|
---|
30 | include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
|
---|
31 | ifdef VBOX_WITH_TESTCASES
|
---|
32 | include $(PATH_SUB_CURRENT)/Samples/Makefile.kmk
|
---|
33 | endif
|
---|
34 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
35 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
36 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
37 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
38 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
39 | endif
|
---|
40 | endif
|
---|
41 | endif
|
---|
42 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
43 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
44 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
45 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
46 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
47 | endif
|
---|
48 |
|
---|
49 | #
|
---|
50 | # Main targets.
|
---|
51 | #
|
---|
52 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
53 | LIBRARIES += ServicesR0
|
---|
54 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
55 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxDDR0
|
---|
56 | ifdef VBOX_WITH_RAW_MODE
|
---|
57 | SYSMODS += VBoxDDRC
|
---|
58 | endif
|
---|
59 | else
|
---|
60 | DLLS += VBoxDDU
|
---|
61 | endif
|
---|
62 |
|
---|
63 |
|
---|
64 | #
|
---|
65 | # VBoxDDU (shared object)
|
---|
66 | #
|
---|
67 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
68 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
69 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
70 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
71 | if defined(VBOX_WITH_VUSB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
72 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
73 | endif
|
---|
74 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
75 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
76 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
77 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
78 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
79 | endif
|
---|
80 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
81 | VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
82 | endif
|
---|
83 | else
|
---|
84 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
85 | endif
|
---|
86 | VBoxDDU_SOURCES = \
|
---|
87 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
88 | Storage/VSCSI/VSCSILun.cpp \
|
---|
89 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
90 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
91 | Storage/VSCSI/VSCSISense.cpp \
|
---|
92 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
93 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
94 | build/VBoxDDUDeps.cpp
|
---|
95 |
|
---|
96 | ifdef VBOX_WITH_VSCSI_SSC
|
---|
97 | VBoxDDU_SOURCES += Storage/VSCSI/VSCSILunSsc.cpp
|
---|
98 | VBoxDDU_DEFS += VBOX_WITH_VSCSI_SSC
|
---|
99 | endif
|
---|
100 | VBoxDDU_LIBS = \
|
---|
101 | $(LIB_RUNTIME) \
|
---|
102 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
103 | VBoxDDU_LIBS.freebsd += \
|
---|
104 | geom
|
---|
105 | VBoxDDU_LIBS.solaris += \
|
---|
106 | efi
|
---|
107 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
108 | VBoxDDU_LIBS += \
|
---|
109 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
110 | VBoxDDU_LIBS.win += \
|
---|
111 | $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
|
---|
112 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
|
---|
113 | endif
|
---|
114 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
115 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
116 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
117 | endif
|
---|
118 |
|
---|
119 | VBoxDDU_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
120 | $(call VBOX_SET_VER_INFO_DLL,VBoxDDU,VirtualBox VMM Devices and Drivers Utilities)
|
---|
121 |
|
---|
122 |
|
---|
123 | endif # VBOX_ONLY_EXTPACKS
|
---|
124 | if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" # Goes on almost to the end of the file.
|
---|
125 |
|
---|
126 |
|
---|
127 | #
|
---|
128 | # VBoxDD (shared object)
|
---|
129 | #
|
---|
130 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
131 | #
|
---|
132 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
133 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
134 | #
|
---|
135 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
136 | #
|
---|
137 | TEMPLATE_VBoxDDOldGCC := VBoxDDOldGCC
|
---|
138 | TEMPLATE_VBoxDDOldGCC_EXTENDS := VBoxR3DllWarnNoPic
|
---|
139 | TEMPLATE_VBoxDDOldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDOldGCC_EXTENDS)_CXXFLAGS))
|
---|
140 |
|
---|
141 | VBoxDD_TEMPLATE = VBoxDDOldGCC
|
---|
142 | else
|
---|
143 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
144 | endif
|
---|
145 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
146 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
147 | VBoxDD_INCS = \
|
---|
148 | build \
|
---|
149 | Network/slirp \
|
---|
150 | $(VBOX_GRAPHICS_INCS)
|
---|
151 | VBoxDD_DEFS = \
|
---|
152 | VBOX_HGCM_HOST_CODE \
|
---|
153 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
154 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
155 | VBOX_WITH_DMI_CHASSIS \
|
---|
156 | VBOX_WITH_DMI_OEMSTRINGS \
|
---|
157 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,)
|
---|
158 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
159 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
160 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
161 | endif
|
---|
162 | VBoxDD_SOURCES = \
|
---|
163 | build/VBoxDD.cpp \
|
---|
164 | \
|
---|
165 | Input/DevPS2.cpp \
|
---|
166 | Input/DevPS2K.cpp \
|
---|
167 | Input/DevPS2M.cpp \
|
---|
168 | Input/UsbKbd.cpp \
|
---|
169 | Input/UsbMouse.cpp \
|
---|
170 | Bus/DevPCI.cpp \
|
---|
171 | Bus/DevPciIch9.cpp \
|
---|
172 | Bus/MsiCommon.cpp \
|
---|
173 | Bus/MsixCommon.cpp \
|
---|
174 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
175 | EFI/DevSmc.cpp \
|
---|
176 | EFI/DevFlash.cpp \
|
---|
177 | EFI/FlashCore.cpp \
|
---|
178 | Graphics/DevVGA.cpp \
|
---|
179 | Storage/DevATA.cpp \
|
---|
180 | PC/DevPit-i8254.cpp \
|
---|
181 | PC/DevPIC.cpp \
|
---|
182 | PC/DevACPI.cpp \
|
---|
183 | PC/ACPI/VBoxAcpi.cpp \
|
---|
184 | PC/DevRTC.cpp \
|
---|
185 | PC/DevPcBios.cpp \
|
---|
186 | PC/DevFwCommon.cpp \
|
---|
187 | PC/DevPcArch.cpp \
|
---|
188 | PC/DevQemuFwCfg.cpp \
|
---|
189 | PC/DevLpc.cpp \
|
---|
190 | GIMDev/GIMDev.cpp \
|
---|
191 | GIMDev/DrvUDP.cpp \
|
---|
192 | VMMDev/VMMDev.cpp \
|
---|
193 | $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
|
---|
194 | VMMDev/VMMDevTesting.cpp \
|
---|
195 | Network/DevPCNet.cpp \
|
---|
196 | PC/DevDMA.cpp \
|
---|
197 | PC/DevHPET.cpp \
|
---|
198 | PC/DevIoApic.cpp \
|
---|
199 | Storage/DevFdc.cpp \
|
---|
200 | Parallel/DevParallel.cpp \
|
---|
201 | \
|
---|
202 | Input/DrvKeyboardQueue.cpp \
|
---|
203 | Input/DrvMouseQueue.cpp \
|
---|
204 | Network/DrvIntNet.cpp \
|
---|
205 | Network/DrvDedicatedNic.cpp \
|
---|
206 | PC/DrvACPI.cpp \
|
---|
207 | PC/DrvAcpiCpu.cpp \
|
---|
208 | Serial/DevSerial.cpp \
|
---|
209 | Serial/DevOxPcie958.cpp \
|
---|
210 | Serial/UartCore.cpp \
|
---|
211 | Serial/DrvChar.cpp \
|
---|
212 | Serial/DrvHostSerial.cpp \
|
---|
213 | Serial/DrvNamedPipe.cpp \
|
---|
214 | Serial/DrvTCP.cpp \
|
---|
215 | Serial/DrvRawFile.cpp \
|
---|
216 | Storage/Debug.cpp \
|
---|
217 | Storage/DrvVD.cpp \
|
---|
218 | Storage/ATAPIPassthrough.cpp \
|
---|
219 | Storage/IOBufMgmt.cpp \
|
---|
220 | Network/DrvNetSniffer.cpp \
|
---|
221 | Network/Pcap.cpp \
|
---|
222 | Trace/DrvIfsTrace.cpp \
|
---|
223 | Trace/DrvIfsTrace-serial.cpp
|
---|
224 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
225 | VBoxDD_SOURCES += Storage/DrvHostBase.cpp
|
---|
226 | endif
|
---|
227 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
228 | VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
|
---|
229 | endif
|
---|
230 | ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
|
---|
231 | VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
|
---|
232 | endif
|
---|
233 |
|
---|
234 |
|
---|
235 | ifn1of ($(KBUILD_TARGET), darwin)
|
---|
236 | VBoxDD_SOURCES += Storage/HBDMgmt-generic.cpp
|
---|
237 | endif
|
---|
238 |
|
---|
239 | VBoxDD_SOURCES.darwin += \
|
---|
240 | Storage/HBDMgmt-darwin.cpp \
|
---|
241 | Storage/DrvHostBase-darwin.cpp
|
---|
242 |
|
---|
243 | VBoxDD_SOURCES.freebsd += \
|
---|
244 | Storage/DrvHostBase-freebsd.cpp
|
---|
245 |
|
---|
246 | VBoxDD_SOURCES.linux += \
|
---|
247 | Storage/DrvHostBase-linux.cpp
|
---|
248 |
|
---|
249 | VBoxDD_SOURCES.solaris += \
|
---|
250 | Storage/DrvHostBase-solaris.cpp
|
---|
251 |
|
---|
252 | VBoxDD_SOURCES.win += \
|
---|
253 | Storage/DrvHostBase-win.cpp
|
---|
254 |
|
---|
255 | #VBoxDD_SOURCES.win += Storage/HBDMgmt-win.cpp #Disabled until remaining issues are sorted out
|
---|
256 |
|
---|
257 | VBoxDD_LIBS = # more later.
|
---|
258 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
259 | -framework CoreAudio \
|
---|
260 | -framework AudioUnit \
|
---|
261 | -framework AudioToolbox \
|
---|
262 | -framework IOKit \
|
---|
263 | -framework Carbon \
|
---|
264 | -framework DiskArbitration \
|
---|
265 | -framework SystemConfiguration \
|
---|
266 | -framework AVFoundation \
|
---|
267 | -framework Foundation
|
---|
268 | VBoxDD_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
269 |
|
---|
270 | # --- Tracing bits. ---
|
---|
271 |
|
---|
272 | ifdef VBOX_WITH_DTRACE_R3
|
---|
273 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
274 | VBoxDD_USES += dtrace
|
---|
275 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
276 | endif
|
---|
277 |
|
---|
278 | # --- Graphics bits. ---
|
---|
279 |
|
---|
280 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
281 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
282 | endif
|
---|
283 | ifdef VBOXWDDM_WITH_VBVA
|
---|
284 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
285 | endif
|
---|
286 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
287 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
288 | endif
|
---|
289 |
|
---|
290 | ifdef VBOX_WITH_HGSMI
|
---|
291 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
292 | VBoxDD_SOURCES += \
|
---|
293 | Graphics/DevVGA_VBVA.cpp \
|
---|
294 | Graphics/HGSMI/HGSMIHost.cpp
|
---|
295 | VBoxDD_LIBS += \
|
---|
296 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
297 | endif
|
---|
298 |
|
---|
299 | ifdef VBOX_WITH_WDDM
|
---|
300 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
301 | VBoxDD_SOURCES += \
|
---|
302 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
303 | endif
|
---|
304 |
|
---|
305 | ifdef VBOX_WITH_VMSVGA
|
---|
306 | VBoxDD_DEFS += VBOX_WITH_VMSVGA
|
---|
307 | VBoxDD_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
308 | VBoxDD_SOURCES += \
|
---|
309 | Graphics/DevVGA-SVGA.cpp \
|
---|
310 | Graphics/DevVGA-SVGA-cmd.cpp
|
---|
311 | endif
|
---|
312 | ifdef VBOX_WITH_VMSVGA3D
|
---|
313 | if1of ($(KBUILD_TARGET), linux win)
|
---|
314 | # Dynamically load 3D library (opengl32, libGL).
|
---|
315 | # This is a temporary solution. In future the 3D backend will be in a separate library.
|
---|
316 | VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD = 1
|
---|
317 | endif
|
---|
318 | VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
|
---|
319 | VBoxDD_SOURCES += \
|
---|
320 | Graphics/DevVGA-SVGA3d.cpp \
|
---|
321 | Graphics/DevVGA-SVGA3d-hlp.cpp \
|
---|
322 | Graphics/DevVGA-SVGA3d-info.cpp \
|
---|
323 | Graphics/DevVGA-SVGA3d-shared.cpp \
|
---|
324 | Graphics/DevVGA-SVGA3d-savedstate.cpp
|
---|
325 | if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_WITH_VMSVGA3D_USE_OPENGL)
|
---|
326 | ifdef VBOX_WITH_VMSVGA3D_DX
|
---|
327 | VBoxDD_DEFS += VMSVGA3D_DX
|
---|
328 | VBoxDD_SOURCES += \
|
---|
329 | Graphics/DevVGA-SVGA3d-win-dx.cpp
|
---|
330 | else
|
---|
331 | VBoxDD_DEFS += VMSVGA3D_DIRECT3D
|
---|
332 | VBoxDD_SOURCES += \
|
---|
333 | Graphics/DevVGA-SVGA3d-win.cpp \
|
---|
334 | Graphics/DevVGA-SVGA3d-win-d3d9.cpp
|
---|
335 | VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
336 | VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
|
---|
337 | endif
|
---|
338 | else
|
---|
339 | VBoxDD_DEFS += VMSVGA3D_OPENGL
|
---|
340 | VBoxDD_SOURCES += \
|
---|
341 | Graphics/DevVGA-SVGA3d-ogl.cpp \
|
---|
342 | Graphics/DevVGA-SVGA3d-glHlp.cpp \
|
---|
343 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
344 | VBoxDD_SOURCES.darwin += \
|
---|
345 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm
|
---|
346 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
347 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
348 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
349 | $(QUIET)$(RM) -f -- "$@"
|
---|
350 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
|
---|
351 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3DObjC.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
352 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
353 | $(QUIET)$(RM) -f -- "$@"
|
---|
354 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3DObjC --output "$@" $(filter %.def, $^)
|
---|
355 |
|
---|
356 | ifdef VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD
|
---|
357 | VBoxDD_DEFS += VMSVGA3D_DYNAMIC_LOAD
|
---|
358 | VBoxDD_SOURCES += \
|
---|
359 | Graphics/DevVGA-SVGA3d-glLdr.cpp
|
---|
360 | else
|
---|
361 | VBoxDD_LIBS.linux += X11 GL
|
---|
362 | VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
363 | endif
|
---|
364 | VBoxDD_LDFLAGS.darwin += -framework OpenGL
|
---|
365 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
366 | if 0 # Use the OpenGL 3.2 Core profile (see also VBoxSVGA3D_DEFS.darwin and VBoxSVGA3DObjC_DEFS.darwin).
|
---|
367 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
368 | else
|
---|
369 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
370 | endif
|
---|
371 | endif
|
---|
372 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.6 10.5 10.4)
|
---|
373 | Graphics/DevVGA-SVGA3d.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
374 | Graphics/DevVGA-SVGA3d-info.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
375 | Graphics/DevVGA-SVGA3d-shared.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
376 | Graphics/DevVGA-SVGA3d-savedstate.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
377 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
378 | else if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.14 10.15 10.16 11.0)
|
---|
379 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
380 | endif
|
---|
381 | endif
|
---|
382 |
|
---|
383 | ifdef VBOX_WITH_VDMA
|
---|
384 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
385 | VBoxDD_SOURCES += \
|
---|
386 | Graphics/DevVGA_VDMA.cpp
|
---|
387 | endif
|
---|
388 |
|
---|
389 | ifdef VBOX_WITH_PXE_ROM
|
---|
390 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
391 | endif
|
---|
392 |
|
---|
393 | # --- USB bits. ---
|
---|
394 |
|
---|
395 | ifdef VBOX_WITH_USB
|
---|
396 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
397 | VBoxDD_SOURCES += \
|
---|
398 | USB/vrdp/USBProxyDevice-vrdp.cpp \
|
---|
399 | USB/usbip/USBProxyDevice-usbip.cpp
|
---|
400 |
|
---|
401 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
402 | VBoxDD_SOURCES.darwin += \
|
---|
403 | USB/USBProxyDevice.cpp \
|
---|
404 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
405 | # if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.9) # Hack, shouldn't be needed
|
---|
406 | # USB/darwin/USBProxyDevice-darwin.cpp_SDKS = MACOSX1010
|
---|
407 | # endif
|
---|
408 |
|
---|
409 | VBoxDD_DEFS.linux += \
|
---|
410 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
411 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
412 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
413 | VBoxDD_SOURCES.linux += \
|
---|
414 | USB/USBProxyDevice.cpp \
|
---|
415 | USB/linux/USBProxyDevice-linux.cpp
|
---|
416 |
|
---|
417 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
418 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
419 | VBoxDD_SOURCES.os2 += \
|
---|
420 | USB/USBProxyDevice.cpp \
|
---|
421 | USB/os2/USBProxyDevice-os2.cpp
|
---|
422 |
|
---|
423 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
424 | VBoxDD_SOURCES.win += \
|
---|
425 | USB/USBProxyDevice.cpp \
|
---|
426 | USB/win/USBProxyDevice-win.cpp
|
---|
427 |
|
---|
428 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
429 | VBoxDD_SOURCES.solaris+= \
|
---|
430 | USB/USBProxyDevice.cpp \
|
---|
431 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
432 |
|
---|
433 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
434 | VBoxDD_SOURCES.freebsd+= \
|
---|
435 | USB/USBProxyDevice.cpp \
|
---|
436 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
437 |
|
---|
438 | ifdef VBOX_WITH_SCSI
|
---|
439 | VBoxDD_SOURCES += \
|
---|
440 | Storage/UsbMsd.cpp
|
---|
441 | endif
|
---|
442 |
|
---|
443 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
444 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
445 | VBoxDD_SOURCES += \
|
---|
446 | USB/DevEHCI.cpp
|
---|
447 | endif
|
---|
448 |
|
---|
449 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
450 | VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
451 | VBoxDD_SOURCES += \
|
---|
452 | USB/DevXHCI.cpp
|
---|
453 | endif
|
---|
454 |
|
---|
455 | if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
456 | if1of ($(KBUILD_TARGET), linux)
|
---|
457 | VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
|
---|
458 | VBoxDD_SOURCES += \
|
---|
459 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
|
---|
460 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
|
---|
461 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
|
---|
462 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
|
---|
463 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
|
---|
464 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
|
---|
465 | $(VBOX_JPEG_INCS)
|
---|
466 | VBoxDD_SOURCES.linux += \
|
---|
467 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
|
---|
468 | VBoxDD_LIBS += \
|
---|
469 | $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
|
---|
470 | endif
|
---|
471 | endif
|
---|
472 |
|
---|
473 | endif # VBOX_WITH_USB
|
---|
474 |
|
---|
475 | ifdef VBOX_WITH_VUSB
|
---|
476 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
477 | VBoxDD_SOURCES += \
|
---|
478 | USB/DevOHCI.cpp \
|
---|
479 | USB/DrvVUSBRootHub.cpp \
|
---|
480 | USB/VUSBDevice.cpp \
|
---|
481 | USB/VUSBSniffer.cpp \
|
---|
482 | USB/VUSBSnifferPcapNg.cpp \
|
---|
483 | USB/VUSBSnifferUsbMon.cpp \
|
---|
484 | USB/VUSBSnifferVmx.cpp \
|
---|
485 | USB/VUSBUrb.cpp \
|
---|
486 | USB/VUSBUrbPool.cpp \
|
---|
487 | USB/VUSBUrbTrace.cpp
|
---|
488 | endif
|
---|
489 |
|
---|
490 | # --- Networking bits. ---
|
---|
491 |
|
---|
492 | ifdef VBOX_WITH_INIP
|
---|
493 | ifndef LWIP_SOURCES
|
---|
494 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk
|
---|
495 | endif
|
---|
496 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
497 | VBoxDD_SOURCES += \
|
---|
498 | Network/DevINIP.cpp \
|
---|
499 | $(addprefix Network/lwip-new/,$(LWIP_SOURCES))
|
---|
500 | VBoxDD_INCS += \
|
---|
501 | Network \
|
---|
502 | $(addprefix Network/lwip-new/,$(LWIP_INCS))
|
---|
503 | endif # VBOX_WITH_INIP
|
---|
504 |
|
---|
505 | ifdef VBOX_WITH_E1000
|
---|
506 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
507 | VBoxDD_SOURCES += \
|
---|
508 | Network/DevE1000.cpp \
|
---|
509 | Network/DevE1000Phy.cpp \
|
---|
510 | Network/DevEEPROM.cpp
|
---|
511 | endif
|
---|
512 |
|
---|
513 | ifdef VBOX_WITH_VIRTIO
|
---|
514 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
515 | VBoxDD_SOURCES += \
|
---|
516 | VirtIO/Virtio.cpp \
|
---|
517 | VirtIO/VirtioCore.cpp \
|
---|
518 | Network/DevVirtioNet.cpp
|
---|
519 | endif
|
---|
520 |
|
---|
521 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0)
|
---|
522 | VBoxDD_DEFS += VBOX_WITH_VIRTIO_NET_1_0
|
---|
523 | VBoxDD_SOURCES += \
|
---|
524 | Network/DevVirtioNet_1_0.cpp
|
---|
525 | endif
|
---|
526 |
|
---|
527 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
528 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
529 | VBoxDD_SOURCES += \
|
---|
530 | Network/DrvUDPTunnel.cpp
|
---|
531 | endif
|
---|
532 |
|
---|
533 | ifdef VBOX_WITH_VDE
|
---|
534 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
535 | VBoxDD_SOURCES += \
|
---|
536 | Network/DrvVDE.cpp \
|
---|
537 | Network/VDEPlug.cpp
|
---|
538 | endif
|
---|
539 |
|
---|
540 | ifdef VBOX_WITH_NETSHAPER
|
---|
541 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
542 | VBoxDD_SOURCES += \
|
---|
543 | Network/DrvNetShaper.cpp
|
---|
544 | endif
|
---|
545 |
|
---|
546 | # --- Storage bits. ---
|
---|
547 |
|
---|
548 | ifdef VBOX_WITH_AHCI
|
---|
549 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
550 | VBoxDD_SOURCES += \
|
---|
551 | Storage/DevAHCI.cpp
|
---|
552 | endif
|
---|
553 |
|
---|
554 | ifdef VBOX_WITH_BUSLOGIC
|
---|
555 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
556 | VBoxDD_SOURCES += \
|
---|
557 | Storage/DevBusLogic.cpp \
|
---|
558 | Storage/VBoxSCSI.cpp
|
---|
559 | endif
|
---|
560 |
|
---|
561 | ifdef VBOX_WITH_LSILOGIC
|
---|
562 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
563 | VBoxDD_SOURCES += \
|
---|
564 | Storage/DevLsiLogicSCSI.cpp
|
---|
565 | endif
|
---|
566 |
|
---|
567 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
568 | VBoxDD_DEFS += VBOX_WITH_NVME_IMPL
|
---|
569 | VBoxDD_SOURCES += \
|
---|
570 | Storage/DevNVMe.cpp
|
---|
571 | endif
|
---|
572 |
|
---|
573 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
574 | VBoxDD_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
575 | VBoxDD_SOURCES += \
|
---|
576 | Storage/DevVirtioSCSI.cpp
|
---|
577 | endif
|
---|
578 |
|
---|
579 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
580 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
581 | endif
|
---|
582 |
|
---|
583 | ifdef VBOX_WITH_SCSI
|
---|
584 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
585 | VBoxDD_SOURCES += \
|
---|
586 | Storage/DrvSCSI.cpp
|
---|
587 | endif
|
---|
588 |
|
---|
589 | ifdef VBOX_WITH_ISCSI
|
---|
590 | $(eval $(call def_vbox_lwip_flags, \
|
---|
591 | VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
|
---|
592 | endif
|
---|
593 |
|
---|
594 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
595 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
596 | VBoxDD_SOURCES += \
|
---|
597 | Storage/DrvDiskIntegrity.cpp \
|
---|
598 | Storage/DrvRamDisk.cpp
|
---|
599 | endif
|
---|
600 |
|
---|
601 | ifdef VBOX_WITH_EFI
|
---|
602 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
603 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
604 | EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
|
---|
605 | EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
|
---|
606 | EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
|
---|
607 | EFI/DevEFI.cpp_INCS.arm32 += EFI/Firmware/BaseTools/Source/C/Include/Arm
|
---|
608 | EFI/DevEFI.cpp_INCS.arm64 += EFI/Firmware/BaseTools/Source/C/Include/Aarch64
|
---|
609 | endif
|
---|
610 |
|
---|
611 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
612 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
613 | VBoxDD_SOURCES += \
|
---|
614 | Bus/DevPciRaw.cpp \
|
---|
615 | Bus/DrvPciRaw.cpp
|
---|
616 | endif
|
---|
617 |
|
---|
618 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
619 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
620 | endif
|
---|
621 |
|
---|
622 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
623 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
624 | endif
|
---|
625 |
|
---|
626 | # --- Audio bits (see also VBOX_AUDIO_DEFS in ./Config.kmk). ---
|
---|
627 |
|
---|
628 | VBoxDD_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
629 | VBoxDD_SOURCES += \
|
---|
630 | Audio/DevIchAc97.cpp \
|
---|
631 | Audio/DevSB16.cpp \
|
---|
632 | Audio/DevHDA.cpp \
|
---|
633 | Audio/DevHDACommon.cpp \
|
---|
634 | Audio/HDACodec.cpp \
|
---|
635 | Audio/HDAStream.cpp \
|
---|
636 | Audio/HDAStreamChannel.cpp \
|
---|
637 | Audio/HDAStreamMap.cpp \
|
---|
638 | Audio/HDAStreamPeriod.cpp \
|
---|
639 | Audio/AudioMixBuffer.cpp \
|
---|
640 | Audio/AudioMixer.cpp \
|
---|
641 | Audio/DrvAudio.cpp \
|
---|
642 | Audio/DrvAudioCommon.cpp \
|
---|
643 | Audio/DrvHostNullAudio.cpp
|
---|
644 |
|
---|
645 | ifdef VBOX_WITH_AUDIO_DEBUG
|
---|
646 | VBoxDD_DEFS += VBOX_WITH_AUDIO_DEBUG
|
---|
647 | VBoxDD_SOURCES += \
|
---|
648 | Audio/DrvHostDebugAudio.cpp
|
---|
649 | endif
|
---|
650 |
|
---|
651 | ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
652 | VBoxDD_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
653 | VBoxDD_SOURCES += \
|
---|
654 | Audio/DrvHostValidationKit.cpp
|
---|
655 | endif
|
---|
656 |
|
---|
657 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
658 | VBoxDD_SOURCES += \
|
---|
659 | Audio/DrvHostCoreAudio.cpp \
|
---|
660 | Audio/DrvHostCoreAudio-auth.mm
|
---|
661 | endif
|
---|
662 |
|
---|
663 | ifeq ($(KBUILD_TARGET),win)
|
---|
664 | VBoxDD_SOURCES += \
|
---|
665 | Audio/DrvHostDSound.cpp
|
---|
666 | ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
667 | VBoxDD_SOURCES += \
|
---|
668 | Audio/VBoxMMNotificationClient.cpp
|
---|
669 | VBoxDD_DEFS += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
670 | endif
|
---|
671 | endif
|
---|
672 |
|
---|
673 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
674 | VBoxDD_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
675 | VBoxDD_SOURCES += \
|
---|
676 | Audio/DrvHostOSSAudio.cpp
|
---|
677 | endif
|
---|
678 |
|
---|
679 | ifdef VBOX_WITH_AUDIO_ALSA
|
---|
680 | VBoxDD_DEFS += VBOX_WITH_AUDIO_ALSA
|
---|
681 | VBoxDD_SOURCES += \
|
---|
682 | Audio/DrvHostALSAAudio.cpp \
|
---|
683 | Audio/alsa_stubs.c
|
---|
684 | endif
|
---|
685 |
|
---|
686 | ifdef VBOX_WITH_AUDIO_PULSE
|
---|
687 | VBoxDD_DEFS += VBOX_WITH_AUDIO_PULSE
|
---|
688 | VBoxDD_SOURCES += \
|
---|
689 | Audio/DrvHostPulseAudio.cpp \
|
---|
690 | Audio/pulse_stubs.c
|
---|
691 | endif
|
---|
692 |
|
---|
693 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
694 | VBOX_SLIRP_SOURCES = \
|
---|
695 | Network/DrvNAT.cpp \
|
---|
696 | Network/slirp/bootp.c \
|
---|
697 | Network/slirp/debug.c \
|
---|
698 | Network/slirp/ip_icmp.c \
|
---|
699 | Network/slirp/ip_input.c \
|
---|
700 | Network/slirp/ip_output.c \
|
---|
701 | Network/slirp/misc.c \
|
---|
702 | Network/slirp/sbuf.c \
|
---|
703 | Network/slirp/slirp.c \
|
---|
704 | Network/slirp/slirp_dns.c \
|
---|
705 | Network/slirp/socket.c \
|
---|
706 | Network/slirp/tcp_input.c \
|
---|
707 | Network/slirp/tcp_output.c \
|
---|
708 | Network/slirp/tcp_subr.c \
|
---|
709 | Network/slirp/tcp_timer.c \
|
---|
710 | Network/slirp/udp.c \
|
---|
711 | Network/slirp/hostres.c \
|
---|
712 | Network/slirp/dnsproxy/hash.c \
|
---|
713 | Network/slirp/tftp.c \
|
---|
714 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
715 |
|
---|
716 | ifeq ($(KBUILD_TARGET), win)
|
---|
717 | VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
|
---|
718 | else ifneq ($(KBUILD_TARGET),darwin)
|
---|
719 | # helper for debugging unprivileged
|
---|
720 | # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER
|
---|
721 | # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c
|
---|
722 | endif
|
---|
723 |
|
---|
724 | ifneq ($(KBUILD_TARGET), win)
|
---|
725 | VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
|
---|
726 | endif
|
---|
727 |
|
---|
728 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
729 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
730 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
731 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
732 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
733 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
734 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
735 | Network/slirp/libalias/alias.c \
|
---|
736 | Network/slirp/libalias/alias_db.c \
|
---|
737 | Network/slirp/libalias/alias_mod.c \
|
---|
738 | Network/slirp/libalias/alias_proxy.c \
|
---|
739 | Network/slirp/libalias/alias_ftp.c \
|
---|
740 | Network/slirp/libalias/alias_nbt.c \
|
---|
741 | Network/slirp/libalias/alias_util.c
|
---|
742 |
|
---|
743 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
744 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
745 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
|
---|
746 |
|
---|
747 | # dump memory related operations.
|
---|
748 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
749 |
|
---|
750 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
751 | define def_vbox_slirp_cflags
|
---|
752 | $(file)_DEFS += \
|
---|
753 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
754 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
755 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
756 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
757 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
758 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
759 | $(file)_INCS += \
|
---|
760 | $(1)/slirp/bsd/sys \
|
---|
761 | $(1)/slirp/bsd/sys/sys \
|
---|
762 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
763 | $(1)/slirp/bsd/netinet \
|
---|
764 | $(1)/slirp \
|
---|
765 | $(1)/slirp/libalias
|
---|
766 | ifeq ($(KBUILD_TARGET),win)
|
---|
767 | $(file)_CFLAGS = -wd4018
|
---|
768 | else
|
---|
769 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
770 | endif
|
---|
771 | endef
|
---|
772 |
|
---|
773 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
774 |
|
---|
775 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
776 | define def_vbox_slirp_alias_cflags
|
---|
777 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
778 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
779 | $(file)_INCS += \
|
---|
780 | $(1)/slirp/libalias \
|
---|
781 | $(1)/slirp \
|
---|
782 | $(1)/slirp/dnsproxy
|
---|
783 | ifneq ($(KBUILD_TARGET),win)
|
---|
784 | $(file)_CFLAGS += -Wno-shadow
|
---|
785 | endif
|
---|
786 | endef
|
---|
787 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
788 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
789 |
|
---|
790 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
791 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
792 | define def_vbox_slirp_bsd_cflags
|
---|
793 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
794 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
795 | endef
|
---|
796 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
797 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
798 |
|
---|
799 |
|
---|
800 | # --- OS specific driver hacks. ---
|
---|
801 |
|
---|
802 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
803 | VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
|
---|
804 | endif # freebsd
|
---|
805 |
|
---|
806 | VBoxDD_SOURCES.linux += \
|
---|
807 | Network/DrvTAP.cpp \
|
---|
808 | Parallel/DrvHostParallel.cpp
|
---|
809 |
|
---|
810 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
811 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
812 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
813 | endif
|
---|
814 | endif
|
---|
815 |
|
---|
816 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
817 | VBoxDD_SOURCES.win += \
|
---|
818 | Parallel/DrvHostParallel.cpp
|
---|
819 |
|
---|
820 | ifdef VBOX_WITH_VIRTUALKD
|
---|
821 | VBoxDD_DEFS.win += VBOX_WITH_VIRTUALKD
|
---|
822 | VBoxDD_SOURCES.win += \
|
---|
823 | Misc/DevVirtualKD.cpp
|
---|
824 | endif
|
---|
825 |
|
---|
826 | if defined(VBOX_WITH_NETFLT)
|
---|
827 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
828 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
829 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
830 | endif
|
---|
831 | endif
|
---|
832 |
|
---|
833 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
834 |
|
---|
835 | VBoxDD_LIBS += \
|
---|
836 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
837 | $(LIB_VMM) \
|
---|
838 | $(LIB_RUNTIME)
|
---|
839 | ifeq ($(KBUILD_TARGET),win)
|
---|
840 | VBoxDD_LIBS += \
|
---|
841 | $(LIB_DDU) \
|
---|
842 | $(PATH_STAGE_LIB)/VBoxDD2.lib \
|
---|
843 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
844 | else
|
---|
845 | VBoxDD_LIBS += \
|
---|
846 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
847 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
848 | endif
|
---|
849 |
|
---|
850 | ifdef VBOX_WITH_NETFLT
|
---|
851 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfig.lib
|
---|
852 | endif
|
---|
853 |
|
---|
854 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
855 | VBoxDD_LIBS += adm
|
---|
856 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
857 | VBoxDD_LIBS += secdb
|
---|
858 | endif
|
---|
859 | ifdef VBOX_WITH_USB
|
---|
860 | VBoxDD_LIBS += aio
|
---|
861 | endif
|
---|
862 | endif
|
---|
863 |
|
---|
864 | VBoxDD_LIBS.darwin += \
|
---|
865 | $(LIB_REM)
|
---|
866 |
|
---|
867 |
|
---|
868 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
869 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
870 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
871 |
|
---|
872 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
873 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
874 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
875 |
|
---|
876 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
877 |
|
---|
878 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
879 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
880 | VBoxDD_CLEAN += \
|
---|
881 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
882 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
883 | $(VBoxDD_0_OUTDIR)/vboxaml.aml.tmp \
|
---|
884 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
885 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml \
|
---|
886 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml.tmp \
|
---|
887 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
888 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml \
|
---|
889 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.tmp \
|
---|
890 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.pre
|
---|
891 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
892 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
893 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
894 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex
|
---|
895 |
|
---|
896 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
897 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
898 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
899 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
900 | $(QUIET)$(SED) -e "s/vboxaml_aml_code/AmlCode/g" \
|
---|
901 | --output $@ $@.tmp
|
---|
902 | $(QUIET)$(RM) -f $@.tmp
|
---|
903 |
|
---|
904 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
905 |
|
---|
906 | $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
907 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
908 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
909 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
910 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
911 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_standard_aml_code/AmlCodeSsdtStandard/g" \
|
---|
912 | --output $@ $@.tmp
|
---|
913 | $(QUIET)$(RM) -f $@.tmp
|
---|
914 |
|
---|
915 |
|
---|
916 | vboxssdt_standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex
|
---|
917 |
|
---|
918 | $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
919 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
920 | $(QUIET)$(RM) -f $@ $@.tmp $@.pre
|
---|
921 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
|
---|
922 | $(QUIET)$(SED) -e "s/<NL>/\n/g" \
|
---|
923 | --output $@.pre1 $@.pre
|
---|
924 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1
|
---|
925 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
926 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" \
|
---|
927 | --output $@ $@.tmp
|
---|
928 | $(QUIET)$(RM) -f $@.tmp $@.pre $@.pre1
|
---|
929 |
|
---|
930 |
|
---|
931 | vboxssdt_cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex
|
---|
932 |
|
---|
933 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
934 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
935 |
|
---|
936 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
937 | Bus/DevPCI.cpp_INCS = Bus
|
---|
938 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
939 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
940 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
941 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
942 |
|
---|
943 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
944 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR) $(VBOX_GRAPHICS_INCS)
|
---|
945 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
946 |
|
---|
947 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD,VirtualBox VMM Devices and Drivers) # (last!)
|
---|
948 |
|
---|
949 |
|
---|
950 | ifdef VBOX_WITH_RAW_MODE
|
---|
951 | #
|
---|
952 | # VBoxDDRC (sysmod)
|
---|
953 | #
|
---|
954 | VBoxDDRC_TEMPLATE = VBoxRc
|
---|
955 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
956 | VBoxDDRC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
957 | endif
|
---|
958 | VBoxDDRC_DEFS = $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,)
|
---|
959 | VBoxDDRC_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
960 | VBoxDDRC_SOURCES = \
|
---|
961 | Bus/DevPCI.cpp \
|
---|
962 | Bus/DevPciIch9.cpp \
|
---|
963 | Bus/MsiCommon.cpp \
|
---|
964 | Bus/MsixCommon.cpp \
|
---|
965 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
966 | EFI/DevSmc.cpp \
|
---|
967 | Graphics/DevVGA.cpp \
|
---|
968 | Input/DevPS2.cpp \
|
---|
969 | Input/DevPS2K.cpp \
|
---|
970 | Input/DevPS2M.cpp \
|
---|
971 | PC/DevACPI.cpp \
|
---|
972 | PC/DevIoApic.cpp \
|
---|
973 | PC/DevPit-i8254.cpp \
|
---|
974 | PC/DevPIC.cpp \
|
---|
975 | PC/DevRTC.cpp \
|
---|
976 | PC/DevDMA.cpp \
|
---|
977 | PC/DevHPET.cpp \
|
---|
978 | Storage/DevATA.cpp \
|
---|
979 | Network/DevPCNet.cpp \
|
---|
980 | Serial/DevSerial.cpp \
|
---|
981 | Serial/DevOxPcie958.cpp \
|
---|
982 | Serial/UartCore.cpp \
|
---|
983 | Parallel/DevParallel.cpp \
|
---|
984 | VMMDev/VMMDev.cpp \
|
---|
985 | VMMDev/VMMDevTesting.cpp
|
---|
986 |
|
---|
987 | VBoxDDRC_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
988 | VBoxDDRC_SOURCES += \
|
---|
989 | Audio/DevHDA.cpp \
|
---|
990 | Audio/DevHDACommon.cpp \
|
---|
991 | Audio/DevIchAc97.cpp
|
---|
992 |
|
---|
993 | VBoxDDRC_DEFS += \
|
---|
994 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
995 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
996 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
997 |
|
---|
998 | ifdef VBOX_WITH_E1000
|
---|
999 | VBoxDDRC_DEFS += VBOX_WITH_E1000
|
---|
1000 | VBoxDDRC_SOURCES += \
|
---|
1001 | Network/DevE1000.cpp \
|
---|
1002 | Network/DevE1000Phy.cpp
|
---|
1003 | endif
|
---|
1004 |
|
---|
1005 | ifdef VBOX_WITH_VIRTIO
|
---|
1006 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO
|
---|
1007 | VBoxDDRC_SOURCES += \
|
---|
1008 | VirtIO/Virtio.cpp \
|
---|
1009 | VirtIO/VirtioCore.cpp \
|
---|
1010 | Network/DevVirtioNet.cpp
|
---|
1011 | endif
|
---|
1012 |
|
---|
1013 | ifdef defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0)
|
---|
1014 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO_NET_1_0
|
---|
1015 | VBoxDDRC_SOURCES += \
|
---|
1016 | Network/DevVirtioNet_1_0.cpp
|
---|
1017 | endif
|
---|
1018 |
|
---|
1019 | ifdef VBOX_WITH_HGSMI
|
---|
1020 | VBoxDDRC_DEFS += VBOX_WITH_HGSMI
|
---|
1021 | endif
|
---|
1022 | ifdef VBOX_WITH_WDDM
|
---|
1023 | VBoxDDRC_DEFS += VBOX_WITH_WDDM
|
---|
1024 | endif
|
---|
1025 | ifdef VBOX_WITH_VDMA
|
---|
1026 | VBoxDDRC_DEFS += VBOX_WITH_VDMA
|
---|
1027 | endif
|
---|
1028 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1029 | VBoxDDRC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1030 | endif
|
---|
1031 | ifdef VBOX_WITH_VMSVGA
|
---|
1032 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA
|
---|
1033 | VBoxDDRC_SOURCES += \
|
---|
1034 | Graphics/DevVGA-SVGA.cpp
|
---|
1035 | endif
|
---|
1036 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1037 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1038 | endif
|
---|
1039 |
|
---|
1040 | ifdef VBOX_WITH_VUSB
|
---|
1041 | VBoxDDRC_DEFS += VBOX_WITH_VUSB
|
---|
1042 | VBoxDDRC_SOURCES += \
|
---|
1043 | USB/DevOHCI.cpp
|
---|
1044 | endif
|
---|
1045 |
|
---|
1046 | ifdef VBOX_WITH_USB
|
---|
1047 | VBoxDDRC_DEFS += VBOX_WITH_USB
|
---|
1048 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1049 | VBoxDDRC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1050 | VBoxDDRC_SOURCES += \
|
---|
1051 | USB/DevEHCI.cpp
|
---|
1052 | endif
|
---|
1053 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1054 | VBoxDDRC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1055 | VBoxDDRC_SOURCES += \
|
---|
1056 | USB/DevXHCI.cpp
|
---|
1057 | endif
|
---|
1058 | endif
|
---|
1059 |
|
---|
1060 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1061 | VBoxDDRC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1062 | endif
|
---|
1063 |
|
---|
1064 | ifdef VBOX_WITH_AHCI
|
---|
1065 | VBoxDDRC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
1066 | VBoxDDRC_SOURCES += \
|
---|
1067 | Storage/DevAHCI.cpp
|
---|
1068 | endif
|
---|
1069 |
|
---|
1070 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1071 | VBoxDDRC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1072 | VBoxDDRC_SOURCES += \
|
---|
1073 | Storage/DevBusLogic.cpp
|
---|
1074 | endif
|
---|
1075 |
|
---|
1076 | ifdef VBOX_WITH_LSILOGIC
|
---|
1077 | VBoxDDRC_DEFS += VBOX_WITH_LSILOGIC
|
---|
1078 | VBoxDDRC_SOURCES += \
|
---|
1079 | Storage/DevLsiLogicSCSI.cpp
|
---|
1080 | endif
|
---|
1081 |
|
---|
1082 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1083 | VBoxDDGC_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1084 | VBoxDDGC_SOURCES += \
|
---|
1085 | Storage/DevNVMe.cpp
|
---|
1086 | endif
|
---|
1087 |
|
---|
1088 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1089 | VBoxDDRC_LIBS = \
|
---|
1090 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1091 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1092 | endif
|
---|
1093 | $(call VBOX_SET_VER_INFO_RC,VBoxDDRC,VirtualBox VMM Devices and Drivers$(COMMA) raw-mode) # last!
|
---|
1094 | endif # VBOX_WITH_RAW_MODE
|
---|
1095 |
|
---|
1096 |
|
---|
1097 | #
|
---|
1098 | # VBoxDD2 (shared object)
|
---|
1099 | #
|
---|
1100 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
1101 | VBoxDD2_DEFS = \
|
---|
1102 | IN_VBOXDD2 \
|
---|
1103 | $(if $(VBOX_WITH_PXE_ROM),VBOX_WITH_PXE_ROM,)
|
---|
1104 | VBoxDD2_INCS := \
|
---|
1105 | build \
|
---|
1106 | $(PATH_SUB_CURRENT)
|
---|
1107 | VBoxDD2_SOURCES = \
|
---|
1108 | build/VBoxDD2.cpp
|
---|
1109 | VBoxDD2_LIBS = \
|
---|
1110 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1111 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1112 | $(if $(VBOX_WITH_PXE_ROM),\
|
---|
1113 | $(if $(VBOX_WITH_INTEL_PXE),\
|
---|
1114 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),\
|
---|
1115 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1116 | $(LIB_VMM) \
|
---|
1117 | $(LIB_RUNTIME)
|
---|
1118 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
1119 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1120 | VBoxDD2_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
1121 | if defined(VBOX_WITH_EFI) && !defined(VBOX_WITH_EFIFW_PACKING)
|
---|
1122 | VBoxDD_DEFS += VBOX_WITH_EFI_IN_DD2
|
---|
1123 | VBoxDD2_DEFS += VBOX_WITH_EFI
|
---|
1124 | VBoxDD2_SOURCES.x86 += EFI/DevEFI-binaries.asm
|
---|
1125 | VBoxDD2_SOURCES.amd64 += EFI/DevEFI-binaries.asm
|
---|
1126 | EFI/DevEFI-binaries.asm_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1127 | EFI/DevEFI-binaries.asm_DEPS = \
|
---|
1128 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1129 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1130 |
|
---|
1131 | VBoxDD2_SOURCES.arm64 += EFI/DevEFI-binaries.S
|
---|
1132 | EFI/DevEFI-binaries.S_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1133 | EFI/DevEFI-binaries.S_DEPS = \
|
---|
1134 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1135 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1136 | endif
|
---|
1137 |
|
---|
1138 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD2,VirtualBox VMM Devices and Drivers 2) # (last!)
|
---|
1139 |
|
---|
1140 | #
|
---|
1141 | # VBoxDDR0 (sysmod)
|
---|
1142 | #
|
---|
1143 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
1144 | #
|
---|
1145 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
1146 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
1147 | #
|
---|
1148 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
1149 | #
|
---|
1150 | TEMPLATE_VBoxDDR0OldGCC := VBoxDDR0OldGCC
|
---|
1151 | TEMPLATE_VBoxDDR0OldGCC_EXTENDS := VBoxR0
|
---|
1152 | TEMPLATE_VBoxDDR0OldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDR0OldGCC_EXTENDS)_CXXFLAGS))
|
---|
1153 |
|
---|
1154 | VBoxDDR0_TEMPLATE = VBoxDDR0OldGCC
|
---|
1155 | else
|
---|
1156 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1157 | endif
|
---|
1158 | VBoxDDR0_DEFS = \
|
---|
1159 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1160 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1161 | IN_RT_R0 # - WTF is IN_RT_R0 doing here?
|
---|
1162 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1163 | VBoxDDR0_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1164 | VBoxDDR0_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
1165 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1166 | VBoxDDR0_SOURCES = \
|
---|
1167 | build/VBoxDDR0.cpp \
|
---|
1168 | Bus/DevPCI.cpp \
|
---|
1169 | Bus/DevPciIch9.cpp \
|
---|
1170 | Bus/MsiCommon.cpp \
|
---|
1171 | Bus/MsixCommon.cpp \
|
---|
1172 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1173 | EFI/DevSmc.cpp \
|
---|
1174 | EFI/DevFlash.cpp \
|
---|
1175 | EFI/FlashCore.cpp \
|
---|
1176 | Graphics/DevVGA.cpp \
|
---|
1177 | Input/DevPS2.cpp \
|
---|
1178 | Input/DevPS2K.cpp \
|
---|
1179 | Input/DevPS2M.cpp \
|
---|
1180 | PC/DevACPI.cpp \
|
---|
1181 | PC/DevIoApic.cpp \
|
---|
1182 | PC/DevPit-i8254.cpp \
|
---|
1183 | PC/DevPIC.cpp \
|
---|
1184 | PC/DevRTC.cpp \
|
---|
1185 | PC/DevDMA.cpp \
|
---|
1186 | PC/DevHPET.cpp \
|
---|
1187 | Storage/DevATA.cpp \
|
---|
1188 | Network/DevPCNet.cpp \
|
---|
1189 | Serial/DevSerial.cpp \
|
---|
1190 | Serial/DevOxPcie958.cpp \
|
---|
1191 | Serial/UartCore.cpp \
|
---|
1192 | Parallel/DevParallel.cpp \
|
---|
1193 | GIMDev/GIMDev.cpp \
|
---|
1194 | VMMDev/VMMDev.cpp \
|
---|
1195 | VMMDev/VMMDevTesting.cpp \
|
---|
1196 | Network/DrvIntNet.cpp \
|
---|
1197 | Network/DrvDedicatedNic.cpp
|
---|
1198 |
|
---|
1199 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1200 |
|
---|
1201 | VBoxDDR0_DEFS += \
|
---|
1202 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
1203 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM,) \
|
---|
1204 | $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \
|
---|
1205 | $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \
|
---|
1206 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1207 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1208 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1209 |
|
---|
1210 | VBoxDDR0_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1211 | VBoxDDR0_SOURCES += \
|
---|
1212 | Audio/DevHDA.cpp \
|
---|
1213 | Audio/DevHDACommon.cpp \
|
---|
1214 | Audio/DevIchAc97.cpp
|
---|
1215 |
|
---|
1216 | ifdef VBOX_WITH_E1000
|
---|
1217 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1218 | VBoxDDR0_SOURCES += \
|
---|
1219 | Network/DevE1000.cpp \
|
---|
1220 | Network/DevE1000Phy.cpp
|
---|
1221 | endif
|
---|
1222 |
|
---|
1223 | ifdef VBOX_WITH_VIRTIO
|
---|
1224 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1225 | VBoxDDR0_SOURCES += \
|
---|
1226 | VirtIO/Virtio.cpp \
|
---|
1227 | VirtIO/VirtioCore.cpp \
|
---|
1228 | Network/DevVirtioNet.cpp
|
---|
1229 | endif
|
---|
1230 |
|
---|
1231 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0)
|
---|
1232 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_NET_1_0
|
---|
1233 | VBoxDDR0_SOURCES += \
|
---|
1234 | Network/DevVirtioNet_1_0.cpp
|
---|
1235 | endif
|
---|
1236 |
|
---|
1237 | ifdef VBOX_WITH_NETSHAPER
|
---|
1238 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1239 | VBoxDDR0_SOURCES += \
|
---|
1240 | Network/DrvNetShaper.cpp
|
---|
1241 | endif
|
---|
1242 |
|
---|
1243 | ifdef VBOX_WITH_VMSVGA
|
---|
1244 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1245 | VBoxDDR0_SOURCES += \
|
---|
1246 | Graphics/DevVGA-SVGA.cpp
|
---|
1247 | endif
|
---|
1248 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1249 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1250 | endif
|
---|
1251 |
|
---|
1252 | ifdef VBOX_WITH_VUSB
|
---|
1253 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1254 | VBoxDDR0_SOURCES += \
|
---|
1255 | USB/DevOHCI.cpp
|
---|
1256 | endif
|
---|
1257 | ifdef VBOX_WITH_USB
|
---|
1258 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1259 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1260 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1261 | VBoxDDR0_SOURCES += \
|
---|
1262 | USB/DevEHCI.cpp
|
---|
1263 | endif
|
---|
1264 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1265 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1266 | VBoxDDR0_SOURCES += \
|
---|
1267 | USB/DevXHCI.cpp
|
---|
1268 | endif
|
---|
1269 | endif
|
---|
1270 |
|
---|
1271 | ifdef VBOX_WITH_EFI
|
---|
1272 | VBoxDDR0_DEFS += VBOX_WITH_EFI
|
---|
1273 | VBoxDDR0_SOURCES += EFI/DevEFI.cpp
|
---|
1274 | endif
|
---|
1275 |
|
---|
1276 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1277 | VBoxDDR0_SOURCES += \
|
---|
1278 | Bus/DevPciRaw.cpp
|
---|
1279 | endif
|
---|
1280 |
|
---|
1281 | ifdef VBOX_WITH_AHCI
|
---|
1282 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1283 | VBoxDDR0_SOURCES += \
|
---|
1284 | Storage/DevAHCI.cpp
|
---|
1285 | endif
|
---|
1286 |
|
---|
1287 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1288 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1289 | VBoxDDR0_SOURCES += \
|
---|
1290 | Storage/DevBusLogic.cpp
|
---|
1291 | endif
|
---|
1292 |
|
---|
1293 | ifdef VBOX_WITH_LSILOGIC
|
---|
1294 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1295 | VBoxDDR0_SOURCES += \
|
---|
1296 | Storage/DevLsiLogicSCSI.cpp
|
---|
1297 | endif
|
---|
1298 |
|
---|
1299 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1300 | VBoxDDR0_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1301 | VBoxDDR0_SOURCES += \
|
---|
1302 | Storage/DevNVMe.cpp
|
---|
1303 | endif
|
---|
1304 |
|
---|
1305 | if defined (VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
1306 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
1307 | VBoxDDR0_SOURCES += \
|
---|
1308 | Storage/DevVirtioSCSI.cpp
|
---|
1309 | endif
|
---|
1310 |
|
---|
1311 | ifdef VBOX_WITH_HGSMI
|
---|
1312 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1313 | endif
|
---|
1314 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1315 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1316 | endif
|
---|
1317 |
|
---|
1318 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1319 | VBoxDDR0_LIBS = \
|
---|
1320 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1321 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1322 | endif
|
---|
1323 |
|
---|
1324 | $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
|
---|
1325 |
|
---|
1326 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS
|
---|
1327 | # Wrapper kmod for VBoxDDR0.r0
|
---|
1328 | INSTALLS.linux += vbox_vboxddr0-src
|
---|
1329 | vbox_vboxddr0-src_INST = bin/src/vbox_vboxddr0/
|
---|
1330 | vbox_vboxddr0-src_SYMLINKS = \
|
---|
1331 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1332 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1333 | vbox_vboxddr0-src_SOURCES = \
|
---|
1334 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxddr0.gmk=>Makefile \
|
---|
1335 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.r0=>VBoxDDR0.r0 \
|
---|
1336 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.debug=>VBoxDDR0.debug
|
---|
1337 | endif
|
---|
1338 |
|
---|
1339 | #
|
---|
1340 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1341 | #
|
---|
1342 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1343 | ServicesR0_DEFS = VBOX_IN_VMM IN_INTNET_R0 IN_RT_R0 $(VMM_COMMON_DEFS) \
|
---|
1344 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1345 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1346 | ServicesR0_SOURCES = \
|
---|
1347 | Network/SrvIntNetR0.cpp \
|
---|
1348 | # $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1349 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1350 |
|
---|
1351 |
|
---|
1352 | #
|
---|
1353 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1354 | #
|
---|
1355 | ifdef VBOX_WITH_TESTCASES
|
---|
1356 | PROGRAMS += tstIntNetR0
|
---|
1357 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
1358 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1359 | tstIntNetR0_SOURCES = \
|
---|
1360 | Network/testcase/tstIntNetR0.cpp
|
---|
1361 | ifneq ($(KBUILD_TARGET),win)
|
---|
1362 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1363 | endif
|
---|
1364 | endif
|
---|
1365 |
|
---|
1366 |
|
---|
1367 | #
|
---|
1368 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1369 | #
|
---|
1370 | ifdef VBOX_WITH_TESTCASES
|
---|
1371 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1372 | PROGRAMS += tstIntNetHardened-1
|
---|
1373 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1374 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1375 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1376 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR="tstIntNet-1"
|
---|
1377 | else
|
---|
1378 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1379 | endif
|
---|
1380 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
1381 |
|
---|
1382 | DLLS += tstIntNet-1
|
---|
1383 | tstIntNet-1_TEMPLATE = VBoxR3HardenedTstDll
|
---|
1384 | else
|
---|
1385 | PROGRAMS += tstIntNet-1
|
---|
1386 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
1387 | endif
|
---|
1388 | tstIntNet-1_SOURCES = \
|
---|
1389 | Network/testcase/tstIntNet-1.cpp \
|
---|
1390 | Network/Pcap.cpp
|
---|
1391 | endif
|
---|
1392 |
|
---|
1393 |
|
---|
1394 | #
|
---|
1395 | # EEPROM device unit test requires cppunit
|
---|
1396 | #
|
---|
1397 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
1398 | ifdef VBOX_WITH_E1000
|
---|
1399 | PROGRAMS += tstDevEEPROM
|
---|
1400 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
1401 | tstDevEEPROM_SOURCES = \
|
---|
1402 | Network/testcase/tstDevEEPROM.cpp
|
---|
1403 | tstDevEEPROM_LIBS = \
|
---|
1404 | $(TARGET_VBoxDD)
|
---|
1405 | PROGRAMS += tstDevPhy
|
---|
1406 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
1407 | tstDevPhy_SOURCES = \
|
---|
1408 | Network/testcase/tstDevPhy.cpp \
|
---|
1409 | Network/DevE1000Phy.cpp
|
---|
1410 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1411 | endif
|
---|
1412 | endif
|
---|
1413 |
|
---|
1414 | #
|
---|
1415 | # Apple SMC Utility.
|
---|
1416 | #
|
---|
1417 | ifdef VBOX_WITH_TESTCASES
|
---|
1418 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1419 | VBoxSmcUtil-darwin_TEMPLATE = VBOXR3TSTEXE
|
---|
1420 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1421 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1422 | endif
|
---|
1423 |
|
---|
1424 | #
|
---|
1425 | # PDM device testcase framework.
|
---|
1426 | #
|
---|
1427 | ifdef VBOX_WITH_TESTCASES_TSTDEV
|
---|
1428 | PROGRAMS += tstDevice
|
---|
1429 | tstDevice_TEMPLATE = VBOXR3TSTEXE
|
---|
1430 | tstDevice_DEFS += IN_SUP_R3
|
---|
1431 | tstDevice_SOURCES = \
|
---|
1432 | testcase/tstDevice.cpp \
|
---|
1433 | testcase/tstDeviceCfg.cpp \
|
---|
1434 | testcase/tstDevicePdmDevHlp.cpp \
|
---|
1435 | testcase/tstDevicePdmThread.cpp \
|
---|
1436 | testcase/tstDeviceSsmFuzz.cpp
|
---|
1437 | endif
|
---|
1438 |
|
---|
1439 | endif # !VBOX_ONLY_EXTPACKS && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1440 |
|
---|
1441 |
|
---|
1442 | if defined(VBOX_WITH_EXTPACK) && defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1443 | #
|
---|
1444 | # The EHCI (USB 2.0) Extension Pack Modules.
|
---|
1445 | #
|
---|
1446 | if defined(VBOX_WITH_USB)
|
---|
1447 | DLLS += VBoxEhciR3
|
---|
1448 | VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1449 | VBoxEhciR3_SOURCES = \
|
---|
1450 | USB/DevEHCI.cpp \
|
---|
1451 | USB/DevXHCI.cpp
|
---|
1452 | $(call VBOX_SET_VER_INFO_DLL,VBoxEhciR3,PUEL Extension Pack - EHCI Device)
|
---|
1453 |
|
---|
1454 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxEhciR0
|
---|
1455 | VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1456 | VBoxEhciR0_SOURCES = \
|
---|
1457 | USB/DevEHCI.cpp \
|
---|
1458 | USB/DevXHCI.cpp
|
---|
1459 | $(call VBOX_SET_VER_INFO_R0,VBoxEhciR0,PUEL Extension Pack - EHCI Device$(COMMA) ring-0)
|
---|
1460 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
|
---|
1461 | INSTALLS.linux += vbox_vboxehcir0-src
|
---|
1462 | vbox_vboxehcir0-src_INST = bin/src/vbox_vboxehcir0/
|
---|
1463 | vbox_vboxehcir0-src_SYMLINKS = \
|
---|
1464 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1465 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1466 | vbox_vboxehcir0-src_SOURCES = \
|
---|
1467 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxehcir0.gmk=>Makefile \
|
---|
1468 | $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.r0=>VBoxEhciR0.r0 \
|
---|
1469 | $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.debug=>VBoxEhciR0.debug
|
---|
1470 | endif
|
---|
1471 |
|
---|
1472 | ifdef VBOX_WITH_RAW_MODE
|
---|
1473 | SYSMODS += VBoxEhciRC
|
---|
1474 | VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1475 | VBoxEhciRC_SOURCES = \
|
---|
1476 | USB/DevEHCI.cpp \
|
---|
1477 | USB/DevXHCI.cpp
|
---|
1478 | $(call VBOX_SET_VER_INFO_RC,VBoxEhciRC,PUEL Extension Pack - EHCI Device$(COMMA) raw-mode)
|
---|
1479 | endif
|
---|
1480 |
|
---|
1481 | # Hacky but MSI support *must* be enabled
|
---|
1482 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1483 | VBoxEhciR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1484 | VBoxEhciR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1485 | VBoxEhciRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1486 | endif
|
---|
1487 |
|
---|
1488 | endif
|
---|
1489 |
|
---|
1490 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL)
|
---|
1491 | DLLS += VBoxPciRawR3
|
---|
1492 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1493 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1494 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawR3,PUEL Extension Pack - PCI Passthrough Device)
|
---|
1495 |
|
---|
1496 | DLLS += VBoxPciRawDrv
|
---|
1497 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1498 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1499 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawDrv,PUEL Extension Pack - PCI Passthrough Driver)
|
---|
1500 |
|
---|
1501 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxPciRawR0
|
---|
1502 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1503 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1504 | $(call VBOX_SET_VER_INFO_R0,VBoxPciRawR0,PUEL Extension Pack - PCI Passthrough Driver$(COMMA) ring-0)
|
---|
1505 |
|
---|
1506 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1507 | endif
|
---|
1508 |
|
---|
1509 | #
|
---|
1510 | # The NVMe Extension Pack Modules.
|
---|
1511 | #
|
---|
1512 | if defined(VBOX_WITH_NVME_IMPL)
|
---|
1513 | DLLS += VBoxNvmeR3
|
---|
1514 | VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1515 | VBoxNvmeR3_SOURCES = \
|
---|
1516 | Storage/DevNVMe.cpp
|
---|
1517 | $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
|
---|
1518 |
|
---|
1519 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxNvmeR0
|
---|
1520 | VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1521 | VBoxNvmeR0_SOURCES = \
|
---|
1522 | Storage/DevNVMe.cpp
|
---|
1523 | $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
|
---|
1524 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
|
---|
1525 | INSTALLS.linux += vbox_vboxnvmer0-src
|
---|
1526 | vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
|
---|
1527 | vbox_vboxnvmer0-src_SYMLINKS = \
|
---|
1528 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1529 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1530 | vbox_vboxnvmer0-src_SOURCES = \
|
---|
1531 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
|
---|
1532 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
|
---|
1533 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
|
---|
1534 | endif
|
---|
1535 |
|
---|
1536 | ifdef VBOX_WITH_RAW_MODE
|
---|
1537 | SYSMODS += VBoxNvmeRC
|
---|
1538 | VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1539 | VBoxNvmeRC_SOURCES = \
|
---|
1540 | Storage/DevNVMe.cpp
|
---|
1541 | $(call VBOX_SET_VER_INFO_RC,VBoxNvmeRC,PUEL Extension Pack - NVMe Device$(COMMA) raw-mode)
|
---|
1542 | endif
|
---|
1543 |
|
---|
1544 | # Hacky but MSI support *must* be enabled
|
---|
1545 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1546 | VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1547 | VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1548 | VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1549 | endif
|
---|
1550 |
|
---|
1551 | endif
|
---|
1552 |
|
---|
1553 |
|
---|
1554 | #
|
---|
1555 | # The Intel PXE ROM.
|
---|
1556 | #
|
---|
1557 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1558 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1559 | ifdef PXE_EXPERIMENTAL_BUILD_SETUP
|
---|
1560 | VBoxExtPackPuelInsRoms_SOURCES = $(PATH_OUT)/obj/NetBiosBin/NetBiosBin.rom=>PXE-Intel.rom
|
---|
1561 | else
|
---|
1562 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1563 | endif
|
---|
1564 | endif # VBOX_WITH_EXTPACK_PUEL && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1565 |
|
---|
1566 |
|
---|
1567 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1568 | #
|
---|
1569 | # Template used for VBoxSVGA3D. (Strips away compiler options.)
|
---|
1570 | #
|
---|
1571 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1572 | TEMPLATE_VBoxSVGA3D_EXTENDS := VBOXR3
|
---|
1573 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1574 | if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
|
---|
1575 | # -wd4777: glsl_shader.c(1542): warning C4777: 'sprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 2 has type 'DWORD'
|
---|
1576 | TEMPLATE_VBoxSVGA3D_CFLAGS.win = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS.win) \
|
---|
1577 | -wd4777
|
---|
1578 | endif
|
---|
1579 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1580 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1581 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1582 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1583 | else
|
---|
1584 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1585 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1586 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1587 | endif
|
---|
1588 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_LDFLAGS.darwin) \
|
---|
1589 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1590 |
|
---|
1591 |
|
---|
1592 | #
|
---|
1593 | # The shader library used by the SVGA3D implementation.
|
---|
1594 | #
|
---|
1595 | DLLS += VBoxSVGA3D
|
---|
1596 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1597 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1598 | VBoxSVGA3D_DEFS = \
|
---|
1599 | __WINESRC__ \
|
---|
1600 | _REENTRANT \
|
---|
1601 | WINE_NOWINSOCK \
|
---|
1602 | VBOX_WITH_VMSVGA \
|
---|
1603 | VBOX_WITH_VMSVGA3D \
|
---|
1604 | _USE_MATH_DEFINES \
|
---|
1605 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1606 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1607 | IN_vmsvgashader_STATIC \
|
---|
1608 | IN_VMSVGA3D \
|
---|
1609 | VBOX_WINE_WITH_IPRT
|
---|
1610 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1611 | VBoxSVGA3D_DEFS += \
|
---|
1612 | WINE_UNICODE_API= \
|
---|
1613 | DLLDIR="" \
|
---|
1614 | BINDIR="" \
|
---|
1615 | LIB_TO_BINDIR="" \
|
---|
1616 | LIB_TO_DLLDIR="" \
|
---|
1617 | BIN_TO_DLLDIR="" \
|
---|
1618 | LIB_TO_DATADIR="" \
|
---|
1619 | BIN_TO_DATADIR=""
|
---|
1620 | else
|
---|
1621 | VBoxSVGA3D_DEFS += \
|
---|
1622 | WINE_UNICODE_API="" \
|
---|
1623 | DLLDIR=\"\" \
|
---|
1624 | BINDIR=\"\" \
|
---|
1625 | LIB_TO_BINDIR=\"\" \
|
---|
1626 | LIB_TO_DLLDIR=\"\" \
|
---|
1627 | BIN_TO_DLLDIR=\"\" \
|
---|
1628 | LIB_TO_DATADIR=\"\" \
|
---|
1629 | BIN_TO_DATADIR=\"\"
|
---|
1630 | endif
|
---|
1631 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1632 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1633 | endif
|
---|
1634 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1635 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1636 | VBoxSVGA3D_DEFS.win += \
|
---|
1637 | USE_WIN32_OPENGL \
|
---|
1638 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1639 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1640 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1641 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1642 | else
|
---|
1643 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1644 | endif
|
---|
1645 |
|
---|
1646 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1647 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1648 | __builtin_ms_va_list=va_list \
|
---|
1649 | __stdcall= \
|
---|
1650 | ms_abi=
|
---|
1651 | VBoxSVGA3D_INCS = $(VBOX_GRAPHICS_INCS)
|
---|
1652 | VBoxSVGA3D_INCS.win := \
|
---|
1653 | Graphics/shaderlib/libWineStub/include
|
---|
1654 | VBoxSVGA3D_INCS.linux := \
|
---|
1655 | Graphics/shaderlib/wine/include
|
---|
1656 | VBoxSVGA3D_INCS.darwin := \
|
---|
1657 | Graphics/ \
|
---|
1658 | Graphics/shaderlib/wine/include
|
---|
1659 | VBoxSVGA3D_SOURCES := \
|
---|
1660 | Graphics/shaderlib/glsl_shader.c \
|
---|
1661 | Graphics/shaderlib/shader.c \
|
---|
1662 | Graphics/shaderlib/shader_sm1.c \
|
---|
1663 | Graphics/shaderlib/shader_sm4.c \
|
---|
1664 | Graphics/shaderlib/shaderapi.c \
|
---|
1665 | Graphics/shaderlib/utils.c \
|
---|
1666 | Graphics/shaderlib/stateblock.c \
|
---|
1667 | Graphics/shaderlib/directx.c \
|
---|
1668 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1669 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1670 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1671 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1672 | VBoxSVGA3D_LIBS += GL
|
---|
1673 | endif
|
---|
1674 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1675 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1676 | $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
|
---|
1677 | # -wd4100: unreferenced format parameter
|
---|
1678 | # -wd4204: nonstandard extension used : non-constant initializer
|
---|
1679 | # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
|
---|
1680 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
1681 | VBoxSVGA3D_CFLAGS.win = -wd4100 -wd4204 -wd4245 -wd4305
|
---|
1682 | ifneq ($(KBUILD_TARGET),win)
|
---|
1683 | VBoxSVGA3D_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
---|
1684 | endif
|
---|
1685 |
|
---|
1686 | #
|
---|
1687 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1688 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1689 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1690 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1691 | #
|
---|
1692 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1693 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1694 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS) IN_VMSVGA3DCOCOA
|
---|
1695 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1696 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1697 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1698 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1699 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1700 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1701 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1702 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1703 | -framework OpenGL
|
---|
1704 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1705 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1706 |
|
---|
1707 |
|
---|
1708 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1709 |
|
---|
1710 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|