VirtualBox

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

Last change on this file since 42042 was 41978, checked in by vboxsync, 12 years ago

NAT: Missed commit.

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