VirtualBox

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

Last change on this file since 40894 was 40888, checked in by vboxsync, 13 years ago

Devices/Makefile.kmk: Fixed crash on 32-bit darwin due to recent Makefile cleanup (lost VBOX_WITH_2X_4GB_ADDR_SPACE for VBoxDD.dylib).

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