VirtualBox

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

Last change on this file since 48935 was 48758, checked in by vboxsync, 11 years ago

Devices/Makefile.kmk: Use the new SMC code.

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