1 | # $Id: Config.kmk 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # kBuild Configuration file for the Devices.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 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 |
|
---|
18 | VBOX_DEVICES_CONFIG_KMK_INCLUDED = 1
|
---|
19 |
|
---|
20 | # Include the top-level configure file.
|
---|
21 | ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
|
---|
22 | include $(PATH_ROOT)/Config.kmk
|
---|
23 | endif
|
---|
24 |
|
---|
25 | # We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
|
---|
26 | ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
|
---|
27 | include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
|
---|
28 | endif
|
---|
29 |
|
---|
30 | VBOX_PATH_DEVICES_SRC := $(PATH_ROOT)/src/VBox/Devices
|
---|
31 |
|
---|
32 | #
|
---|
33 | # VBoxBios - Template for building 16-bit BIOS code.
|
---|
34 | #
|
---|
35 | # Disabled linker warnings:
|
---|
36 | # W1014: ?
|
---|
37 | # W1023: ?
|
---|
38 | # W2120: ?
|
---|
39 | # W1080: file F:\tinderbox\win-rel\out\win.amd64\release\obj\VBoxVgaBios386\vberom.obj is a 32-bit object file
|
---|
40 | TEMPLATE_VBoxBios = ROM
|
---|
41 | TEMPLATE_VBoxBios_INSTTYPE = none
|
---|
42 | TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16
|
---|
43 | TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL
|
---|
44 | TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16
|
---|
45 | TEMPLATE_VBoxBios_BLD_TRG = os-agnostic
|
---|
46 | TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86
|
---|
47 | TEMPLATE_VBoxBios_BINSUFF = .rom
|
---|
48 | TEMPLATE_VBoxBios_INCS = . $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode
|
---|
49 | TEMPLATE_VBoxBios_ASFLAGS = -q -wx -d1 -0
|
---|
50 | TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zl -zu -s -oafs -ms -hc -d1+
|
---|
51 | TEMPLATE_VBoxBios_CXXFLAGS = $(TEMPLATE_VBoxBios_CFLAGS)
|
---|
52 | TEMPLATE_VBoxBios_DEPS = $(VBOX_VERSION_HEADER)
|
---|
53 | TEMPLATE_VBoxBios_LDFLAGS = system dos \
|
---|
54 | debug codeview all \
|
---|
55 | option quiet, nofarcalls, map, verbose, statics, symfile \
|
---|
56 | disable 1014, 1023, 2120, 1080
|
---|
57 | TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode/biosorg_check.sed
|
---|
58 | TEMPLATE_VBoxBios_POST_CMDS = \
|
---|
59 | $(QUIET)$(SED_EXT) -n -f $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode/biosorg_check.sed $(outbase).map \
|
---|
60 | && $(MV_EXT) -f $(out) $(out).tmp \
|
---|
61 | && $(VBOX_BIOSSUMS) $(out).tmp $(out) \
|
---|
62 | && $(RM_EXT) -f $(out).tmp \
|
---|
63 |
|
---|
64 | #
|
---|
65 | # VBoxBios - Template for building 32-bit BIOS code.
|
---|
66 | #
|
---|
67 | TEMPLATE_VBoxBios32Lib = ROM
|
---|
68 | TEMPLATE_VBoxBios32Lib_EXTENDS = VBoxBios
|
---|
69 | TEMPLATE_VBoxBios32Lib_INSTTYPE = none
|
---|
70 | TEMPLATE_VBoxBios32Lib_TOOL = OPENWATCOM
|
---|
71 | TEMPLATE_VBoxBios32Lib_ASTOOL = OPENWATCOM
|
---|
72 | TEMPLATE_VBoxBios32Lib_CFLAGS = -q -wx -zu -s -oas -ms -nt=BIOS32 -nd=BIOS32 -hc
|
---|
73 | ifeq ($(KBUILD_TARGET),darwin) # The Open Watcom version we use on darwin generate trouble for the link in -d1+ mode; -d2 doesn't work anywhere.
|
---|
74 | TEMPLATE_VBoxBios32Lib_CFLAGS += -d1
|
---|
75 | else
|
---|
76 | TEMPLATE_VBoxBios32Lib_CFLAGS += -d1+
|
---|
77 | endif
|
---|
78 | TEMPLATE_VBoxBios32Lib_CXXFLAGS = $(TEMPLATE_VBoxBios32_CFLAGS)
|
---|
79 | TEMPLATE_VBoxBios32Lib_LNK_DEPS = $(NO_SUCH_VARIABLE)
|
---|
80 | TEMPLATE_VBoxBios32Lib_POST_CMDS = $(NO_SUCH_VARIABLE)
|
---|
81 |
|
---|
82 |
|
---|
83 | #
|
---|
84 | # Audio configuration.
|
---|
85 | # This must live here because of testcase/
|
---|
86 | #
|
---|
87 | VBOX_AUDIO_DEFS :=
|
---|
88 | if 0 # Not stable yet.
|
---|
89 | # Enable microphone-in support for HDA. Otherwise only line-in is supported.
|
---|
90 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_MIC_IN
|
---|
91 |
|
---|
92 | # Enable interleavig streams support for HDA. Needed for 5.1 surround support.
|
---|
93 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_INTERLEAVING_STREAMS_SUPPORT
|
---|
94 |
|
---|
95 | # Enable 5.1 surround support (Front, Center/LFE, Rear) for HDA.
|
---|
96 | # Without this, only stereo output (Front) is supported.
|
---|
97 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_51_SURROUND
|
---|
98 | endif
|
---|
99 |
|
---|
100 | # Enable backend-independent device enumeration support.
|
---|
101 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_ENUM
|
---|
102 |
|
---|
103 | # Enable backend callback support.
|
---|
104 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_CALLBACKS
|
---|
105 |
|
---|
106 | # Disable one-time audio stream initialization at device creation (VM startup) instead
|
---|
107 | # of creating the stream when needed at some later point in time.
|
---|
108 | #
|
---|
109 | # This was the default behavior ever since.
|
---|
110 | #
|
---|
111 | # We now go with the new behavior by default now.
|
---|
112 | #VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_SB16_ONETIME_INIT
|
---|
113 |
|
---|
114 | ifdef VBOX_WITH_HP_HDA
|
---|
115 | VBOX_AUDIO_DEFS += VBOX_WITH_HP_HDA
|
---|
116 | endif
|
---|
117 | ifdef VBOX_WITH_INTEL_HDA
|
---|
118 | VBOX_AUDIO_DEFS += VBOX_WITH_INTEL_HDA
|
---|
119 | endif
|
---|
120 | ifdef VBOX_WITH_NVIDIA_HDA
|
---|
121 | VBOX_AUDIO_DEFS += VBOX_WITH_NVIDIA_HDA
|
---|
122 | endif
|
---|
123 |
|
---|
124 | #
|
---|
125 | # Enables asynchronous audio data handling
|
---|
126 | # to speed up the actual DMA data routines and keeping up
|
---|
127 | # audio processing out of EMT as much as possible.
|
---|
128 | #
|
---|
129 | # Disabled for AC'97 for now.
|
---|
130 | #VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_AC97_ASYNC_IO
|
---|
131 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_ASYNC_IO
|
---|
132 |
|
---|
133 | # Not yet enabled: Callbacks for the device emulation to let the backends
|
---|
134 | # tell the emulation when and how to process data.
|
---|
135 | if 0
|
---|
136 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_SB16_CALLBACKS
|
---|
137 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_AC97_CALLBACKS
|
---|
138 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_CALLBACKS
|
---|
139 | endif
|
---|
140 |
|
---|