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