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