1 | # $Id: Makefile.kmk 46766 2013-06-24 21:31:10Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 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 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
29 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
30 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
31 | if !defined(VBOX_WITHOUT_ETHERBOOT)
|
---|
32 | include $(PATH_SUB_CURRENT)/PC/Etherboot-src/Makefile.kmk
|
---|
33 | endif
|
---|
34 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
35 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
36 | endif
|
---|
37 | endif
|
---|
38 | if !defined(VBOX_ONLY_EXTPACKS) # Goes on almost to the end of the file.
|
---|
39 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
41 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
42 |
|
---|
43 | #
|
---|
44 | # Main targets.
|
---|
45 | #
|
---|
46 | LIBRARIES += ServicesR0
|
---|
47 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
48 | SYSMODS += VBoxDDR0 VBoxDD2R0
|
---|
49 | ifdef VBOX_WITH_RAW_MODE
|
---|
50 | SYSMODS += VBoxDDGC VBoxDD2GC
|
---|
51 | endif
|
---|
52 |
|
---|
53 |
|
---|
54 | #
|
---|
55 | # VBoxDDU (shared object)
|
---|
56 | #
|
---|
57 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
58 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
59 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
60 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
61 | ifdef VBOX_WITH_VUSB
|
---|
62 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
63 | endif
|
---|
64 | ifdef VBOX_WITH_USB
|
---|
65 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
66 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
67 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
68 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
69 | endif
|
---|
70 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
71 | VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
72 | endif
|
---|
73 | else
|
---|
74 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
75 | endif
|
---|
76 | VBoxDDU_SOURCES = \
|
---|
77 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
78 | Storage/VSCSI/VSCSILun.cpp \
|
---|
79 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
80 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
81 | Storage/VSCSI/VSCSISense.cpp \
|
---|
82 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
83 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
84 | build/VBoxDDUDeps.cpp
|
---|
85 | ifdef VBOX_WITH_USB
|
---|
86 | VBoxDDU_INCS.os2 += \
|
---|
87 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
88 | endif
|
---|
89 | VBoxDDU_LIBS = \
|
---|
90 | $(LIB_RUNTIME) \
|
---|
91 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
92 | ifdef VBOX_WITH_USB
|
---|
93 | VBoxDDU_LIBS += \
|
---|
94 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
95 | VBoxDDU_LIBS.win += \
|
---|
96 | $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
|
---|
97 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
|
---|
98 | endif
|
---|
99 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
100 | ifdef VBOX_WITH_USB
|
---|
101 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
102 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
103 | endif
|
---|
104 | endif
|
---|
105 |
|
---|
106 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
107 |
|
---|
108 | #
|
---|
109 | # VBoxDD (shared object)
|
---|
110 | #
|
---|
111 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
112 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
113 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
114 | VBoxDD_INCS = \
|
---|
115 | build \
|
---|
116 | Network/slirp
|
---|
117 | VBoxDD_DEFS = \
|
---|
118 | VBOX_ACPI \
|
---|
119 | VBOX_HGCM_HOST_CODE \
|
---|
120 | VBOX_WITH_HGCM \
|
---|
121 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
122 | VBOX_WITH_DMI_CHASSIS \
|
---|
123 | VBOX_WITH_DMI_OEMSTRINGS
|
---|
124 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
125 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
126 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
127 | endif
|
---|
128 | VBoxDD_SOURCES = \
|
---|
129 | build/VBoxDD.cpp \
|
---|
130 | \
|
---|
131 | Input/DevPS2.cpp \
|
---|
132 | Input/PS2K.cpp \
|
---|
133 | Input/UsbKbd.cpp \
|
---|
134 | Input/UsbMouse.cpp \
|
---|
135 | Bus/DevPCI.cpp \
|
---|
136 | Bus/DevPciIch9.cpp \
|
---|
137 | Bus/MsiCommon.cpp \
|
---|
138 | Bus/MsixCommon.cpp \
|
---|
139 | Graphics/DevVGA.cpp \
|
---|
140 | Storage/DevATA.cpp \
|
---|
141 | PC/DevPit-i8254.cpp \
|
---|
142 | PC/DevPIC.cpp \
|
---|
143 | PC/DevACPI.cpp \
|
---|
144 | PC/ACPI/VBoxAcpi.cpp \
|
---|
145 | PC/DevRTC.cpp \
|
---|
146 | PC/DevPcBios.cpp \
|
---|
147 | PC/DevFwCommon.cpp \
|
---|
148 | PC/DevPcArch.cpp \
|
---|
149 | VMMDev/VMMDev.cpp \
|
---|
150 | VMMDev/VMMDevHGCM.cpp \
|
---|
151 | VMMDev/VMMDevTesting.cpp \
|
---|
152 | Network/DevPCNet.cpp \
|
---|
153 | Audio/DevIchAc97.cpp \
|
---|
154 | Audio/DevSB16.cpp \
|
---|
155 | Audio/DevIchHda.cpp \
|
---|
156 | Audio/DevIchHdaCodec.cpp \
|
---|
157 | PC/DevDMA.cpp \
|
---|
158 | PC/DevHPET.cpp \
|
---|
159 | PC/DevSMC.cpp \
|
---|
160 | PC/DevLPC.cpp \
|
---|
161 | Storage/DevFdc.cpp \
|
---|
162 | Serial/DevSerial.cpp \
|
---|
163 | Parallel/DevParallel.cpp \
|
---|
164 | \
|
---|
165 | Audio/audio.c \
|
---|
166 | Audio/audiosniffer.c \
|
---|
167 | Audio/mixeng.c \
|
---|
168 | Audio/noaudio.c \
|
---|
169 | Audio/filteraudio.c \
|
---|
170 | Input/DrvKeyboardQueue.cpp \
|
---|
171 | Input/DrvMouseQueue.cpp \
|
---|
172 | Network/DrvIntNet.cpp \
|
---|
173 | Network/DrvDedicatedNic.cpp \
|
---|
174 | PC/DrvACPI.cpp \
|
---|
175 | PC/DrvAcpiCpu.cpp \
|
---|
176 | Serial/DrvChar.cpp \
|
---|
177 | Serial/DrvNamedPipe.cpp \
|
---|
178 | Serial/DrvRawFile.cpp \
|
---|
179 | Storage/DrvBlock.cpp \
|
---|
180 | Storage/DrvHostBase.cpp \
|
---|
181 | Storage/DrvHostDVD.cpp \
|
---|
182 | Storage/DrvHostFloppy.cpp \
|
---|
183 | Storage/DrvMediaISO.cpp \
|
---|
184 | Storage/DrvRawImage.cpp \
|
---|
185 | Storage/Debug.cpp \
|
---|
186 | Storage/DrvVD.cpp \
|
---|
187 | Storage/ATAPIPassthrough.cpp \
|
---|
188 | Network/DrvNetSniffer.cpp \
|
---|
189 | Network/Pcap.cpp
|
---|
190 | VBoxDD_LIBS = # more later.
|
---|
191 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
192 | -framework CoreAudio \
|
---|
193 | -framework AudioUnit \
|
---|
194 | -framework AudioToolbox \
|
---|
195 | -framework IOKit \
|
---|
196 | -framework Carbon \
|
---|
197 | -framework DiskArbitration
|
---|
198 | VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
|
---|
199 |
|
---|
200 | # --- Tracing bits. ---
|
---|
201 |
|
---|
202 | ifdef VBOX_WITH_DTRACE_R3
|
---|
203 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
204 | VBoxDD_USES += dtrace
|
---|
205 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
206 | endif
|
---|
207 |
|
---|
208 | # --- Graphics bits. ---
|
---|
209 |
|
---|
210 | ifdef VBOX_WITH_CRHGSMI
|
---|
211 | VBoxDD_DEFS += VBOX_WITH_CRHGSMI
|
---|
212 | endif
|
---|
213 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
214 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
215 | endif
|
---|
216 | ifdef VBOXWDDM_WITH_VBVA
|
---|
217 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
218 | endif
|
---|
219 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
220 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
221 | endif
|
---|
222 |
|
---|
223 | ifdef VBOX_WITH_HGSMI
|
---|
224 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
225 | VBoxDD_SOURCES += \
|
---|
226 | Graphics/DevVGA_VBVA.cpp \
|
---|
227 | Graphics/HGSMI/HGSMIHost.cpp \
|
---|
228 | Graphics/HGSMI/HGSMIHostHlp.cpp
|
---|
229 | VBoxDD_LIBS += \
|
---|
230 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
231 | endif
|
---|
232 |
|
---|
233 | ifdef VBOX_WITH_WDDM
|
---|
234 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
235 | VBoxDD_SOURCES += \
|
---|
236 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
237 | endif
|
---|
238 |
|
---|
239 | ifdef VBOX_WITH_VDMA
|
---|
240 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
241 | VBoxDD_SOURCES += \
|
---|
242 | Graphics/DevVGA_VDMA.cpp
|
---|
243 | endif
|
---|
244 |
|
---|
245 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
246 | VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
247 | endif
|
---|
248 |
|
---|
249 | ifdef VBOX_WITH_PXE_ROM
|
---|
250 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
251 | endif
|
---|
252 |
|
---|
253 | # --- USB bits. ---
|
---|
254 |
|
---|
255 | ifdef VBOX_WITH_USB
|
---|
256 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
257 | VBoxDD_SOURCES += \
|
---|
258 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
259 |
|
---|
260 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
261 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
262 | VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
263 | endif
|
---|
264 | VBoxDD_SOURCES.darwin += \
|
---|
265 | USB/USBProxyDevice.cpp \
|
---|
266 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
267 |
|
---|
268 | VBoxDD_DEFS.linux += \
|
---|
269 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
270 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
271 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
272 | VBoxDD_SOURCES.linux += \
|
---|
273 | USB/USBProxyDevice.cpp \
|
---|
274 | USB/linux/USBProxyDevice-linux.cpp
|
---|
275 |
|
---|
276 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
277 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
278 | VBoxDD_SOURCES.os2 += \
|
---|
279 | USB/USBProxyDevice.cpp \
|
---|
280 | USB/os2/USBProxyDevice-os2.cpp
|
---|
281 |
|
---|
282 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
283 | VBoxDD_SOURCES.win += \
|
---|
284 | USB/USBProxyDevice.cpp \
|
---|
285 | USB/win/USBProxyDevice-win.cpp
|
---|
286 |
|
---|
287 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
288 | VBoxDD_SOURCES.solaris+= \
|
---|
289 | USB/USBProxyDevice.cpp \
|
---|
290 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
291 |
|
---|
292 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
293 | VBoxDD_SOURCES.freebsd+= \
|
---|
294 | USB/USBProxyDevice.cpp \
|
---|
295 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
296 |
|
---|
297 | ifdef VBOX_WITH_SCSI
|
---|
298 | VBoxDD_SOURCES += \
|
---|
299 | Storage/UsbMsd.cpp
|
---|
300 | endif
|
---|
301 |
|
---|
302 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
303 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
304 | endif
|
---|
305 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
306 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
307 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
308 | VBoxDD_SOURCES += \
|
---|
309 | USB/DevEHCI.cpp
|
---|
310 | endif
|
---|
311 |
|
---|
312 | endif # VBOX_WITH_USB
|
---|
313 |
|
---|
314 | ifdef VBOX_WITH_VUSB
|
---|
315 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
316 | VBoxDD_SOURCES += \
|
---|
317 | USB/DevOHCI.cpp \
|
---|
318 | USB/DrvVUSBRootHub.cpp \
|
---|
319 | USB/VUSBDevice.cpp \
|
---|
320 | USB/VUSBReadAhead.cpp \
|
---|
321 | USB/VUSBUrb.cpp
|
---|
322 | endif
|
---|
323 |
|
---|
324 | # --- Networking bits. ---
|
---|
325 |
|
---|
326 | ifdef VBOX_WITH_INIP
|
---|
327 | ifndef VBOX_WITH_NEW_LWIP
|
---|
328 | include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
|
---|
329 | else
|
---|
330 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
|
---|
331 | endif
|
---|
332 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
333 | VBoxDD_SOURCES += $(LWIP_SOURCES)
|
---|
334 | VBoxDD_INCS += $(LWIP_INCS)
|
---|
335 | VBoxDD_SOURCES += Network/DevINIP.cpp
|
---|
336 | endif
|
---|
337 |
|
---|
338 | ifdef VBOX_WITH_E1000
|
---|
339 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
340 | VBoxDD_SOURCES += \
|
---|
341 | Network/DevE1000.cpp \
|
---|
342 | Network/DevE1000Phy.cpp \
|
---|
343 | Network/DevEEPROM.cpp
|
---|
344 | endif
|
---|
345 |
|
---|
346 | ifdef VBOX_WITH_VIRTIO
|
---|
347 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
348 | VBoxDD_SOURCES += \
|
---|
349 | VirtIO/Virtio.cpp \
|
---|
350 | Network/DevVirtioNet.cpp
|
---|
351 | endif
|
---|
352 |
|
---|
353 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
354 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
355 | VBoxDD_SOURCES += \
|
---|
356 | Network/DrvUDPTunnel.cpp
|
---|
357 | endif
|
---|
358 |
|
---|
359 | ifdef VBOX_WITH_VDE
|
---|
360 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
361 | VBoxDD_SOURCES += \
|
---|
362 | Network/DrvVDE.cpp \
|
---|
363 | Network/VDEPlug.cpp
|
---|
364 | endif
|
---|
365 |
|
---|
366 | ifdef VBOX_WITH_NETSHAPER
|
---|
367 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
368 | VBoxDD_SOURCES += \
|
---|
369 | Network/DrvNetShaper.cpp
|
---|
370 | endif
|
---|
371 |
|
---|
372 | # --- Storage bits. ---
|
---|
373 |
|
---|
374 | ifdef VBOX_WITH_AHCI
|
---|
375 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
376 | VBoxDD_SOURCES += \
|
---|
377 | Storage/DevAHCI.cpp
|
---|
378 | endif
|
---|
379 |
|
---|
380 | ifdef VBOX_WITH_BUSLOGIC
|
---|
381 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
382 | VBoxDD_SOURCES += \
|
---|
383 | Storage/DevBusLogic.cpp \
|
---|
384 | Storage/VBoxSCSI.cpp
|
---|
385 | endif
|
---|
386 |
|
---|
387 | ifdef VBOX_WITH_LSILOGIC
|
---|
388 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
389 | VBoxDD_SOURCES += \
|
---|
390 | Storage/DevLsiLogicSCSI.cpp
|
---|
391 | endif
|
---|
392 |
|
---|
393 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
394 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
395 | endif
|
---|
396 |
|
---|
397 | ifdef VBOX_WITH_SCSI
|
---|
398 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
399 | VBoxDD_SOURCES += \
|
---|
400 | Storage/DrvSCSI.cpp
|
---|
401 | VBoxDD_SOURCES.linux += \
|
---|
402 | Storage/DrvSCSIHost.cpp
|
---|
403 | endif
|
---|
404 |
|
---|
405 | ifdef VBOX_WITH_ISCSI
|
---|
406 | Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
|
---|
407 | endif
|
---|
408 |
|
---|
409 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
410 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
411 | VBoxDD_SOURCES += \
|
---|
412 | Storage/DrvDiskIntegrity.cpp
|
---|
413 | VBoxDD_LIBS += \
|
---|
414 | $(PATH_STAGE_LIB)/StorageDbgLib$(VBOX_SUFF_LIB)
|
---|
415 | endif
|
---|
416 |
|
---|
417 | ifdef VBOX_WITH_EFI
|
---|
418 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
419 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
420 | EFI/DevEFI.cpp_INCS += EFI/tools/include
|
---|
421 | EFI/DevEFI.cpp_INCS.x86 += EFI/tools/include/Ia32
|
---|
422 | EFI/DevEFI.cpp_INCS.amd64 += EFI/tools/include/X64
|
---|
423 | endif
|
---|
424 |
|
---|
425 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
426 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
427 | VBoxDD_SOURCES += \
|
---|
428 | Bus/DevPciRaw.cpp \
|
---|
429 | Bus/DrvPciRaw.cpp
|
---|
430 | endif
|
---|
431 |
|
---|
432 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
433 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
434 | endif
|
---|
435 |
|
---|
436 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
437 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
438 | endif
|
---|
439 |
|
---|
440 |
|
---|
441 | # --- Audio bits. ---
|
---|
442 |
|
---|
443 | ifdef VBOX_WITH_ALSA
|
---|
444 | VBoxDD_DEFS.linux += VBOX_WITH_ALSA
|
---|
445 | VBoxDD_SOURCES.linux += \
|
---|
446 | Audio/alsaaudio.c \
|
---|
447 | Audio/alsa_stubs.c
|
---|
448 | endif
|
---|
449 |
|
---|
450 | ifdef VBOX_WITH_PULSE
|
---|
451 | VBoxDD_DEFS.linux += VBOX_WITH_PULSE
|
---|
452 | VBoxDD_SOURCES.linux += \
|
---|
453 | Audio/pulseaudio.c \
|
---|
454 | Audio/pulse_stubs.c
|
---|
455 | VBoxDD_DEFS.freebsd += VBOX_WITH_PULSE
|
---|
456 | VBoxDD_SOURCES.freebsd+= \
|
---|
457 | Audio/pulseaudio.c \
|
---|
458 | Audio/pulse_stubs.c
|
---|
459 | endif
|
---|
460 |
|
---|
461 |
|
---|
462 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
463 | VBOX_SLIRP_SOURCES = \
|
---|
464 | Network/DrvNAT.cpp \
|
---|
465 | Network/slirp/bootp.c \
|
---|
466 | Network/slirp/debug.c \
|
---|
467 | Network/slirp/ip_icmp.c \
|
---|
468 | Network/slirp/ip_input.c \
|
---|
469 | Network/slirp/ip_output.c \
|
---|
470 | Network/slirp/misc.c \
|
---|
471 | Network/slirp/sbuf.c \
|
---|
472 | Network/slirp/slirp.c \
|
---|
473 | Network/slirp/slirp_dns.c \
|
---|
474 | Network/slirp/socket.c \
|
---|
475 | Network/slirp/tcp_input.c \
|
---|
476 | Network/slirp/tcp_output.c \
|
---|
477 | Network/slirp/tcp_subr.c \
|
---|
478 | Network/slirp/tcp_timer.c \
|
---|
479 | Network/slirp/udp.c \
|
---|
480 | Network/slirp/dnsproxy/hash.c \
|
---|
481 | Network/slirp/tftp.c \
|
---|
482 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
483 | ifdef VBOX_WITH_SLIRP_BSD_SBUF
|
---|
484 | VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
|
---|
485 | endif
|
---|
486 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
487 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
488 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
489 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
490 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
491 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
492 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
493 | Network/slirp/libalias/alias.c \
|
---|
494 | Network/slirp/libalias/alias_db.c \
|
---|
495 | Network/slirp/libalias/alias_mod.c \
|
---|
496 | Network/slirp/libalias/alias_proxy.c \
|
---|
497 | Network/slirp/libalias/alias_ftp.c \
|
---|
498 | Network/slirp/libalias/alias_dns.c \
|
---|
499 | Network/slirp/libalias/alias_nbt.c \
|
---|
500 | Network/slirp/libalias/alias_util.c
|
---|
501 |
|
---|
502 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
503 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
504 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
|
---|
505 |
|
---|
506 | # dump memory related operations.
|
---|
507 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
508 |
|
---|
509 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
510 | define def_vbox_slirp_cflags
|
---|
511 | $(file)_DEFS += \
|
---|
512 | $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
|
---|
513 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
514 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
515 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
516 | $(if $(VBOX_WITH_NAT_UDP_SOCKET_CLONE),VBOX_WITH_NAT_UDP_SOCKET_CLONE,) \
|
---|
517 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
518 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
519 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
520 | $(file)_INCS += \
|
---|
521 | $(1)/slirp/bsd/sys \
|
---|
522 | $(1)/slirp/bsd/sys/sys \
|
---|
523 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
524 | $(1)/slirp/bsd/netinet \
|
---|
525 | $(1)/slirp \
|
---|
526 | $(1)/slirp/libalias
|
---|
527 | ifeq ($(KBUILD_TARGET),win)
|
---|
528 | $(file)_CFLAGS = -wd4018
|
---|
529 | else
|
---|
530 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
531 | endif
|
---|
532 | endef
|
---|
533 |
|
---|
534 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
535 |
|
---|
536 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
537 | define def_vbox_slirp_alias_cflags
|
---|
538 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
539 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
540 | $(file)_INCS += \
|
---|
541 | $(1)/slirp/libalias \
|
---|
542 | $(1)/slirp \
|
---|
543 | $(1)/slirp/dnsproxy
|
---|
544 | ifneq ($(KBUILD_TARGET),win)
|
---|
545 | $(file)_CFLAGS += -Wno-shadow
|
---|
546 | endif
|
---|
547 | endef
|
---|
548 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
549 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
550 |
|
---|
551 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
552 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
553 | define def_vbox_slirp_bsd_cflags
|
---|
554 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
555 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
556 | endef
|
---|
557 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
558 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
559 |
|
---|
560 |
|
---|
561 | # --- OS specific driver hacks. ---
|
---|
562 |
|
---|
563 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
564 | VBoxDD_SOURCES := \
|
---|
565 | $(filter-out Storage/DrvHostRaw% Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
|
---|
566 | Audio/coreaudio.c
|
---|
567 | VBoxDD_SOURCES.darwin += \
|
---|
568 | Serial/DrvHostSerial.cpp
|
---|
569 | endif # darwin
|
---|
570 |
|
---|
571 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
572 | VBoxDD_SOURCES := \
|
---|
573 | $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
|
---|
574 | Audio/ossaudio.c \
|
---|
575 | Serial/DrvHostSerial.cpp
|
---|
576 | VBoxDD_SOURCES.freebsd += \
|
---|
577 | Network/DrvTAP.cpp
|
---|
578 | endif # freebsd
|
---|
579 |
|
---|
580 | VBoxDD_SOURCES.linux += \
|
---|
581 | Network/DrvTAP.cpp \
|
---|
582 | Audio/ossaudio.c \
|
---|
583 | Parallel/DrvHostParallel.cpp \
|
---|
584 | Serial/DrvHostSerial.cpp
|
---|
585 |
|
---|
586 | ifeq ($(KBUILD_TARGET),os2)
|
---|
587 | VBoxDD_SOURCES := $(filter-out Storage/DrvHost%, $(VBoxDD_SOURCES))
|
---|
588 | endif
|
---|
589 |
|
---|
590 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
591 | VBoxDD_SOURCES := $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES))
|
---|
592 | VBoxDD_SOURCES.solaris += \
|
---|
593 | Audio/solaudio.c \
|
---|
594 | Serial/DrvHostSerial.cpp
|
---|
595 | ifdef VBOX_WITH_SOLARIS_OSS
|
---|
596 | VBoxDD_SOURCES += Audio/ossaudio.c
|
---|
597 | VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
|
---|
598 | endif
|
---|
599 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
600 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
601 | endif
|
---|
602 | endif
|
---|
603 |
|
---|
604 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
605 | VBoxDD_SOURCES.win += \
|
---|
606 | Audio/dsoundaudio.c \
|
---|
607 | Serial/DrvHostSerial.cpp \
|
---|
608 | Parallel/DrvHostParallel.cpp
|
---|
609 |
|
---|
610 | if defined(VBOX_WITH_NETFLT)
|
---|
611 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
612 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
613 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
614 | endif
|
---|
615 | endif
|
---|
616 |
|
---|
617 |
|
---|
618 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
619 |
|
---|
620 | VBoxDD_LIBS += \
|
---|
621 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
622 | $(LIB_VMM) \
|
---|
623 | $(LIB_RUNTIME)
|
---|
624 | ifeq ($(KBUILD_TARGET),win)
|
---|
625 | VBoxDD_LIBS += \
|
---|
626 | $(LIB_DDU) \
|
---|
627 | $(PATH_STAGE_LIB)/VBoxDD2.lib \
|
---|
628 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
629 | else
|
---|
630 | VBoxDD_LIBS += \
|
---|
631 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
632 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
633 | endif
|
---|
634 |
|
---|
635 | ifdef VBOX_WITH_NETFLT
|
---|
636 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfig.lib
|
---|
637 | endif
|
---|
638 |
|
---|
639 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
640 | VBoxDD_LIBS += adm
|
---|
641 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
642 | VBoxDD_LIBS += secdb
|
---|
643 | endif
|
---|
644 | ifdef VBOX_WITH_USB
|
---|
645 | VBoxDD_LIBS += aio
|
---|
646 | endif
|
---|
647 | endif
|
---|
648 |
|
---|
649 | VBoxDD_LIBS.darwin += \
|
---|
650 | $(LIB_REM)
|
---|
651 |
|
---|
652 |
|
---|
653 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
654 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
655 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
656 |
|
---|
657 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
658 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
659 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
660 |
|
---|
661 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
662 |
|
---|
663 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
664 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
665 | VBoxDD_CLEAN += \
|
---|
666 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
667 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
668 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
|
---|
669 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
|
---|
670 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
|
---|
671 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
|
---|
672 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
|
---|
673 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
|
---|
674 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
|
---|
675 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
676 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
677 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
|
---|
678 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
|
---|
679 |
|
---|
680 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
681 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
682 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
683 |
|
---|
684 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
685 |
|
---|
686 | $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
687 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
688 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
689 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
690 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
691 | $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
|
---|
692 | --output $@ $@.tmp
|
---|
693 | $(QUIET)$(RM) -f $@.tmp
|
---|
694 |
|
---|
695 |
|
---|
696 | vboxssdt-standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex
|
---|
697 |
|
---|
698 | $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
699 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
700 | $(QUIET)$(RM) -f $@ $@.tmp $@.pre
|
---|
701 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
|
---|
702 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
|
---|
703 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
704 | $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
|
---|
705 | --output $@ $@.tmp
|
---|
706 | $(QUIET)$(RM) -f $@.tmp $@.pre
|
---|
707 |
|
---|
708 |
|
---|
709 | vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
|
---|
710 |
|
---|
711 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
712 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
713 |
|
---|
714 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
715 | Bus/DevPCI.cpp_INCS = Bus
|
---|
716 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
717 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
718 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
719 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
720 |
|
---|
721 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
722 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
|
---|
723 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
724 |
|
---|
725 |
|
---|
726 | ifdef VBOX_WITH_RAW_MODE
|
---|
727 | #
|
---|
728 | # VBoxDDGC (sysmod)
|
---|
729 | #
|
---|
730 | VBoxDDGC_TEMPLATE = VBoxRc
|
---|
731 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
732 | VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
733 | endif
|
---|
734 | VBoxDDGC_DEFS = VBOX_WITH_HGCM
|
---|
735 | VBoxDDGC_INCS = build
|
---|
736 | VBoxDDGC_SOURCES = \
|
---|
737 | Audio/DevIchHda.cpp \
|
---|
738 | Bus/DevPCI.cpp \
|
---|
739 | Bus/DevPciIch9.cpp \
|
---|
740 | Bus/MsiCommon.cpp \
|
---|
741 | Bus/MsixCommon.cpp \
|
---|
742 | Graphics/DevVGA.cpp \
|
---|
743 | Input/DevPS2.cpp \
|
---|
744 | Input/PS2K.cpp \
|
---|
745 | PC/DevACPI.cpp \
|
---|
746 | PC/DevPit-i8254.cpp \
|
---|
747 | PC/DevPIC.cpp \
|
---|
748 | PC/DevRTC.cpp \
|
---|
749 | PC/DevHPET.cpp \
|
---|
750 | Storage/DevATA.cpp \
|
---|
751 | Network/DevPCNet.cpp \
|
---|
752 | Serial/DevSerial.cpp \
|
---|
753 | Parallel/DevParallel.cpp \
|
---|
754 | VMMDev/VMMDevTesting.cpp
|
---|
755 |
|
---|
756 | ifdef VBOX_WITH_E1000
|
---|
757 | VBoxDDGC_DEFS += VBOX_WITH_E1000
|
---|
758 | VBoxDDGC_SOURCES += \
|
---|
759 | Network/DevE1000.cpp \
|
---|
760 | Network/DevE1000Phy.cpp
|
---|
761 | endif
|
---|
762 |
|
---|
763 | ifdef VBOX_WITH_VIRTIO
|
---|
764 | VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
|
---|
765 | VBoxDDGC_SOURCES += \
|
---|
766 | VirtIO/Virtio.cpp \
|
---|
767 | Network/DevVirtioNet.cpp
|
---|
768 | endif
|
---|
769 |
|
---|
770 | ifdef VBOX_WITH_HGSMI
|
---|
771 | VBoxDDGC_DEFS += VBOX_WITH_HGSMI
|
---|
772 | endif
|
---|
773 | ifdef VBOX_WITH_WDDM
|
---|
774 | VBoxDDGC_DEFS += VBOX_WITH_WDDM
|
---|
775 | endif
|
---|
776 | ifdef VBOX_WITH_VDMA
|
---|
777 | VBoxDDGC_DEFS += VBOX_WITH_VDMA
|
---|
778 | endif
|
---|
779 | ifdef VBOX_WITH_CRHGSMI
|
---|
780 | VBoxDDGC_DEFS += VBOX_WITH_CRHGSMI
|
---|
781 | endif
|
---|
782 | ifdef VBOXWDDM_WITH_VBVA
|
---|
783 | VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
784 | endif
|
---|
785 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
786 | VBoxDDGC_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
787 | endif
|
---|
788 |
|
---|
789 | ifdef VBOX_WITH_VUSB
|
---|
790 | VBoxDDGC_DEFS += VBOX_WITH_VUSB
|
---|
791 | VBoxDDGC_SOURCES += \
|
---|
792 | USB/DevOHCI.cpp
|
---|
793 | endif
|
---|
794 |
|
---|
795 | ifdef VBOX_WITH_USB
|
---|
796 | VBoxDDGC_DEFS += VBOX_WITH_USB
|
---|
797 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
798 | VBoxDDGC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
799 | VBoxDDGC_SOURCES += \
|
---|
800 | USB/DevEHCI.cpp
|
---|
801 | endif
|
---|
802 | endif
|
---|
803 |
|
---|
804 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
805 | VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
806 | endif
|
---|
807 |
|
---|
808 | ifdef VBOX_WITH_AHCI
|
---|
809 | VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
810 | VBoxDDGC_SOURCES += \
|
---|
811 | Storage/DevAHCI.cpp
|
---|
812 | endif
|
---|
813 |
|
---|
814 | ifdef VBOX_WITH_BUSLOGIC
|
---|
815 | VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
816 | VBoxDDGC_SOURCES += \
|
---|
817 | Storage/DevBusLogic.cpp
|
---|
818 | endif
|
---|
819 |
|
---|
820 | ifdef VBOX_WITH_LSILOGIC
|
---|
821 | VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
|
---|
822 | VBoxDDGC_SOURCES += \
|
---|
823 | Storage/DevLsiLogicSCSI.cpp
|
---|
824 | endif
|
---|
825 |
|
---|
826 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
827 | VBoxDDGC_LIBS = \
|
---|
828 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
829 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
830 | endif
|
---|
831 | endif # VBOX_WITH_RAW_MODE
|
---|
832 |
|
---|
833 |
|
---|
834 | #
|
---|
835 | # VBoxDD2 (shared object)
|
---|
836 | #
|
---|
837 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
838 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
839 | VBoxDD2_INCS := \
|
---|
840 | build \
|
---|
841 | $(PATH_SUB_CURRENT)
|
---|
842 | VBoxDD2_SOURCES = \
|
---|
843 | build/VBoxDD2.cpp \
|
---|
844 | PC/DevAPIC.cpp \
|
---|
845 | PC/DevIoApic.cpp \
|
---|
846 | PC/DevSMC.cpp \
|
---|
847 | PC/DevLPC.cpp
|
---|
848 | VBoxDD2_LIBS = \
|
---|
849 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
850 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
851 | $(if $(VBOX_WITH_PXE_ROM),$(if $(VBOX_WITHOUT_IPXE),$(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
852 | $(LIB_VMM) \
|
---|
853 | $(LIB_RUNTIME)
|
---|
854 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
855 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
856 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
857 |
|
---|
858 | ifdef VBOX_WITH_PXE_ROM
|
---|
859 | VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
|
---|
860 | endif
|
---|
861 |
|
---|
862 |
|
---|
863 | #
|
---|
864 | # VBoxDDR0 (sysmod)
|
---|
865 | #
|
---|
866 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
867 | VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
868 | VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
|
---|
869 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
870 | VBoxDDR0_INCS = build
|
---|
871 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
872 | VBoxDDR0_SOURCES = \
|
---|
873 | build/VBoxDDR0.cpp \
|
---|
874 | Audio/DevIchHda.cpp \
|
---|
875 | Bus/DevPCI.cpp \
|
---|
876 | Bus/DevPciIch9.cpp \
|
---|
877 | Bus/MsiCommon.cpp \
|
---|
878 | Bus/MsixCommon.cpp \
|
---|
879 | Graphics/DevVGA.cpp \
|
---|
880 | Input/DevPS2.cpp \
|
---|
881 | Input/PS2K.cpp \
|
---|
882 | PC/DevACPI.cpp \
|
---|
883 | PC/DevPit-i8254.cpp \
|
---|
884 | PC/DevPIC.cpp \
|
---|
885 | PC/DevRTC.cpp \
|
---|
886 | PC/DevHPET.cpp \
|
---|
887 | Storage/DevATA.cpp \
|
---|
888 | Network/DevPCNet.cpp \
|
---|
889 | Serial/DevSerial.cpp \
|
---|
890 | Parallel/DevParallel.cpp \
|
---|
891 | VMMDev/VMMDevTesting.cpp \
|
---|
892 | \
|
---|
893 | Network/DrvIntNet.cpp \
|
---|
894 | Network/DrvDedicatedNic.cpp
|
---|
895 |
|
---|
896 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
897 |
|
---|
898 | ifdef VBOX_WITH_E1000
|
---|
899 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
900 | VBoxDDR0_SOURCES += \
|
---|
901 | Network/DevE1000.cpp \
|
---|
902 | Network/DevE1000Phy.cpp
|
---|
903 | endif
|
---|
904 |
|
---|
905 | ifdef VBOX_WITH_VIRTIO
|
---|
906 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
907 | VBoxDDR0_SOURCES += \
|
---|
908 | VirtIO/Virtio.cpp \
|
---|
909 | Network/DevVirtioNet.cpp
|
---|
910 | endif
|
---|
911 |
|
---|
912 | ifdef VBOX_WITH_NETSHAPER
|
---|
913 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
914 | VBoxDDR0_SOURCES += \
|
---|
915 | Network/DrvNetShaper.cpp
|
---|
916 | endif
|
---|
917 |
|
---|
918 | ifdef VBOX_WITH_HGSMI
|
---|
919 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
920 | endif
|
---|
921 | ifdef VBOX_WITH_WDDM
|
---|
922 | VBoxDDR0_DEFS += VBOX_WITH_WDDM
|
---|
923 | endif
|
---|
924 | ifdef VBOX_WITH_VDMA
|
---|
925 | VBoxDDR0_DEFS += VBOX_WITH_VDMA
|
---|
926 | endif
|
---|
927 | ifdef VBOX_WITH_CRHGSMI
|
---|
928 | VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
|
---|
929 | endif
|
---|
930 | ifdef VBOXWDDM_WITH_VBVA
|
---|
931 | VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
|
---|
932 | endif
|
---|
933 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
934 | VBoxDDR0_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
935 | endif
|
---|
936 |
|
---|
937 | ifdef VBOX_WITH_VUSB
|
---|
938 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
939 | VBoxDDR0_SOURCES += \
|
---|
940 | USB/DevOHCI.cpp
|
---|
941 | endif
|
---|
942 | ifdef VBOX_WITH_USB
|
---|
943 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
944 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
945 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
946 | VBoxDDR0_SOURCES += \
|
---|
947 | USB/DevEHCI.cpp
|
---|
948 | endif
|
---|
949 | endif
|
---|
950 |
|
---|
951 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
952 | VBoxDDR0_SOURCES += \
|
---|
953 | Bus/DevPciRaw.cpp
|
---|
954 | endif
|
---|
955 |
|
---|
956 | ifdef VBOX_WITH_AHCI
|
---|
957 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
958 | VBoxDDR0_SOURCES += \
|
---|
959 | Storage/DevAHCI.cpp
|
---|
960 | endif
|
---|
961 |
|
---|
962 | ifdef VBOX_WITH_BUSLOGIC
|
---|
963 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
964 | VBoxDDR0_SOURCES += \
|
---|
965 | Storage/DevBusLogic.cpp
|
---|
966 | endif
|
---|
967 |
|
---|
968 | ifdef VBOX_WITH_LSILOGIC
|
---|
969 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
970 | VBoxDDR0_SOURCES += \
|
---|
971 | Storage/DevLsiLogicSCSI.cpp
|
---|
972 | endif
|
---|
973 |
|
---|
974 | ifdef VBOX_WITH_HGSMI
|
---|
975 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
976 | endif
|
---|
977 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
978 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
979 | endif
|
---|
980 |
|
---|
981 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
982 | VBoxDDR0_LIBS = \
|
---|
983 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
984 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
985 | endif
|
---|
986 |
|
---|
987 |
|
---|
988 | ifdef VBOX_WITH_RAW_MODE
|
---|
989 | #
|
---|
990 | # VBoxDD2GC (LGPL sysmod)
|
---|
991 | #
|
---|
992 | VBoxDD2GC_TEMPLATE = VBoxRc
|
---|
993 | VBoxDD2GC_DEFS =
|
---|
994 | VBoxDD2GC_INCS = build
|
---|
995 | VBoxDD2GC_SOURCES = \
|
---|
996 | PC/DevAPIC.cpp \
|
---|
997 | PC/DevIoApic.cpp \
|
---|
998 | PC/DevSMC.cpp
|
---|
999 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1000 | VBoxDD2GC_LIBS = \
|
---|
1001 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1002 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1003 | endif
|
---|
1004 | endif
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | #
|
---|
1008 | # VBoxDD2R0 (LGPL sysmod)
|
---|
1009 | #
|
---|
1010 | VBoxDD2R0_TEMPLATE = VBoxR0
|
---|
1011 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
1012 | VBoxDD2R0_INCS = build
|
---|
1013 | VBoxDD2R0_SOURCES = \
|
---|
1014 | build/VBoxDD2R0.cpp \
|
---|
1015 | PC/DevAPIC.cpp \
|
---|
1016 | PC/DevIoApic.cpp \
|
---|
1017 | PC/DevSMC.cpp
|
---|
1018 |
|
---|
1019 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1020 | VBoxDD2R0_LIBS = \
|
---|
1021 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1022 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1023 | endif
|
---|
1024 |
|
---|
1025 |
|
---|
1026 | #
|
---|
1027 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1028 | #
|
---|
1029 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1030 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1031 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1032 | ServicesR0_SOURCES = \
|
---|
1033 | Network/SrvIntNetR0.cpp \
|
---|
1034 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1035 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1036 |
|
---|
1037 |
|
---|
1038 | #
|
---|
1039 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1040 | #
|
---|
1041 | ifdef VBOX_WITH_TESTCASES
|
---|
1042 | PROGRAMS += tstIntNetR0
|
---|
1043 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
1044 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1045 | tstIntNetR0_SOURCES = \
|
---|
1046 | Network/testcase/tstIntNetR0.cpp
|
---|
1047 | ifneq ($(KBUILD_TARGET),win)
|
---|
1048 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1049 | endif
|
---|
1050 | endif
|
---|
1051 |
|
---|
1052 |
|
---|
1053 | #
|
---|
1054 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1055 | #
|
---|
1056 | ifdef VBOX_WITH_TESTCASES
|
---|
1057 | PROGRAMS += tstIntNet-1
|
---|
1058 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
1059 | tstIntNet-1_SOURCES = \
|
---|
1060 | Network/testcase/tstIntNet-1.cpp \
|
---|
1061 | Network/Pcap.cpp
|
---|
1062 | endif
|
---|
1063 |
|
---|
1064 |
|
---|
1065 | #
|
---|
1066 | # EEPROM device unit test requires cppunit
|
---|
1067 | #
|
---|
1068 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
1069 | ifdef VBOX_WITH_E1000
|
---|
1070 | PROGRAMS += tstDevEEPROM
|
---|
1071 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
1072 | tstDevEEPROM_SOURCES = \
|
---|
1073 | Network/testcase/tstDevEEPROM.cpp
|
---|
1074 | tstDevEEPROM_LIBS = \
|
---|
1075 | $(TARGET_VBoxDD)
|
---|
1076 | PROGRAMS += tstDevPhy
|
---|
1077 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
1078 | tstDevPhy_SOURCES = \
|
---|
1079 | Network/testcase/tstDevPhy.cpp \
|
---|
1080 | Network/DevE1000Phy.cpp
|
---|
1081 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1082 | endif
|
---|
1083 | endif
|
---|
1084 |
|
---|
1085 | endif # !VBOX_ONLY_EXTPACKS
|
---|
1086 |
|
---|
1087 |
|
---|
1088 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
1089 | #
|
---|
1090 | # The EHCI (USB 2.0) Extension Pack Modules.
|
---|
1091 | #
|
---|
1092 | if defined(VBOX_WITH_USB)
|
---|
1093 | DLLS += VBoxEhciR3
|
---|
1094 | VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1095 | VBoxEhciR3_SOURCES = USB/DevEHCI.cpp
|
---|
1096 |
|
---|
1097 | SYSMODS += VBoxEhciR0
|
---|
1098 | VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1099 | VBoxEhciR0_SOURCES = USB/DevEHCI.cpp
|
---|
1100 |
|
---|
1101 | ifdef VBOX_WITH_RAW_MODE
|
---|
1102 | SYSMODS += VBoxEhciRC
|
---|
1103 | VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1104 | VBoxEhciRC_SOURCES = USB/DevEHCI.cpp
|
---|
1105 | endif
|
---|
1106 | endif
|
---|
1107 |
|
---|
1108 | if defined(VBOX_WITH_PCI_PASSTHROUGH)
|
---|
1109 | DLLS += VBoxPciRawR3
|
---|
1110 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1111 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1112 |
|
---|
1113 | DLLS += VBoxPciRawDrv
|
---|
1114 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1115 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1116 |
|
---|
1117 | SYSMODS += VBoxPciRawR0
|
---|
1118 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1119 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1120 |
|
---|
1121 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1122 | endif
|
---|
1123 |
|
---|
1124 |
|
---|
1125 | #
|
---|
1126 | # The Intel PXE rom.
|
---|
1127 | #
|
---|
1128 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1129 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1130 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1131 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
1132 |
|
---|
1133 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1134 |
|
---|