VirtualBox

source: vbox/trunk/src/VBox/Devices/Makefile.kmk@ 34783

Last change on this file since 34783 was 34768, checked in by vboxsync, 14 years ago

PC/Etherboot-src: build speedup by converting sub-makefile to single makefile

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette