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