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