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