VirtualBox

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

Last change on this file since 38751 was 38696, checked in by vboxsync, 13 years ago

Devices/PcBios: enabled VBOX_WITH_DMI_OEMSTRINGS

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