VirtualBox

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

Last change on this file since 44600 was 44582, checked in by vboxsync, 12 years ago

DevOVMF.cpp -> DevEFI.cpp

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