1 | # $Id: Config.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # kBuild Configuration file for the Devices.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | VBOX_DEVICES_CONFIG_KMK_INCLUDED = 1
|
---|
29 |
|
---|
30 | # Include the top-level configure file.
|
---|
31 | ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
|
---|
32 | include $(PATH_ROOT)/Config.kmk
|
---|
33 | endif
|
---|
34 |
|
---|
35 | # We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
|
---|
36 | ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
|
---|
37 | include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
|
---|
38 | endif
|
---|
39 |
|
---|
40 | VBOX_PATH_DEVICES_SRC := $(PATH_ROOT)/src/VBox/Devices
|
---|
41 |
|
---|
42 | VBOX_PATH_VMSVGA_DEVICE_INC := $(VBOX_PATH_DEVICES_SRC)/Graphics/vmsvga_include
|
---|
43 |
|
---|
44 | #
|
---|
45 | # VBoxBios - Template for building 16-bit BIOS code.
|
---|
46 | #
|
---|
47 | # Disabled linker warnings:
|
---|
48 | # W1014: ?
|
---|
49 | # W1023: ?
|
---|
50 | # W2120: ?
|
---|
51 | # W1080: file F:\tinderbox\win-rel\out\win.amd64\release\obj\VBoxVgaBios386\vberom.obj is a 32-bit object file
|
---|
52 | TEMPLATE_VBoxBios = ROM
|
---|
53 | TEMPLATE_VBoxBios_INSTTYPE = none
|
---|
54 | TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16
|
---|
55 | TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL
|
---|
56 | TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16
|
---|
57 | TEMPLATE_VBoxBios_BLD_TRG = os-agnostic
|
---|
58 | TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86
|
---|
59 | TEMPLATE_VBoxBios_BINSUFF = .rom
|
---|
60 | TEMPLATE_VBoxBios_CDEFS = IN_RING0
|
---|
61 | TEMPLATE_VBoxBios_CXXDEFS = IN_RING0
|
---|
62 | TEMPLATE_VBoxBios_INCS = . $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode
|
---|
63 | TEMPLATE_VBoxBios_ASFLAGS = -q -wx -d1 -0
|
---|
64 | TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zl -zu -s -oafs -ms -hc -d1+
|
---|
65 | TEMPLATE_VBoxBios_CXXFLAGS = $(TEMPLATE_VBoxBios_CFLAGS)
|
---|
66 | TEMPLATE_VBoxBios_DEPS = $(VBOX_VERSION_HEADER)
|
---|
67 | TEMPLATE_VBoxBios_LDFLAGS = system dos \
|
---|
68 | debug codeview all \
|
---|
69 | option quiet, nofarcalls, map, verbose, statics, symfile \
|
---|
70 | disable 1014, 1023, 2120, 1080
|
---|
71 | TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode/biosorg_check.sed
|
---|
72 | TEMPLATE_VBoxBios_POST_CMDS = \
|
---|
73 | $(QUIET)$(SED_EXT) -n -f $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode/biosorg_check.sed $(outbase).map \
|
---|
74 | && $(MV_EXT) -f $(out) $(out).tmp \
|
---|
75 | && $(VBOX_BIOSSUMS) $(out).tmp $(out) \
|
---|
76 | && $(RM_EXT) -f $(out).tmp \
|
---|
77 |
|
---|
78 | #
|
---|
79 | # VBoxBios - Template for building 32-bit BIOS code.
|
---|
80 | #
|
---|
81 | TEMPLATE_VBoxBios32Lib = ROM
|
---|
82 | TEMPLATE_VBoxBios32Lib_EXTENDS = VBoxBios
|
---|
83 | TEMPLATE_VBoxBios32Lib_INSTTYPE = none
|
---|
84 | TEMPLATE_VBoxBios32Lib_TOOL = OPENWATCOM
|
---|
85 | TEMPLATE_VBoxBios32Lib_ASTOOL = OPENWATCOM
|
---|
86 | TEMPLATE_VBoxBios32Lib_CFLAGS = -q -wx -zu -s -oas -ms -nt=BIOS32 -nd=BIOS32 -hc
|
---|
87 | 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.
|
---|
88 | TEMPLATE_VBoxBios32Lib_CFLAGS += -d1
|
---|
89 | else
|
---|
90 | TEMPLATE_VBoxBios32Lib_CFLAGS += -d1+
|
---|
91 | endif
|
---|
92 | TEMPLATE_VBoxBios32Lib_CXXFLAGS = $(TEMPLATE_VBoxBios32_CFLAGS)
|
---|
93 | TEMPLATE_VBoxBios32Lib_LNK_DEPS = $(NO_SUCH_VARIABLE)
|
---|
94 | TEMPLATE_VBoxBios32Lib_POST_CMDS = $(NO_SUCH_VARIABLE)
|
---|
95 |
|
---|
96 |
|
---|
97 | #
|
---|
98 | # Audio configuration.
|
---|
99 | # This must live here because of testcase/
|
---|
100 | #
|
---|
101 | VBOX_AUDIO_DEFS :=
|
---|
102 | if 0 # Not stable yet.
|
---|
103 | # Enable microphone-in support for HDA. Otherwise only line-in is supported.
|
---|
104 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_MIC_IN
|
---|
105 |
|
---|
106 | # Enable interleavig streams support for HDA. Needed for 5.1 surround support.
|
---|
107 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_INTERLEAVING_STREAMS_SUPPORT
|
---|
108 |
|
---|
109 | # Enable 5.1 surround support (Front, Center/LFE, Rear) for HDA.
|
---|
110 | # Without this, only stereo output (Front) is supported.
|
---|
111 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_51_SURROUND
|
---|
112 | endif
|
---|
113 |
|
---|
114 | # Enable backend-independent device enumeration support.
|
---|
115 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_ENUM
|
---|
116 |
|
---|
117 | # Enable backend callback support.
|
---|
118 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_CALLBACKS
|
---|
119 |
|
---|
120 | ifdef VBOX_WITH_HP_HDA
|
---|
121 | VBOX_AUDIO_DEFS += VBOX_WITH_HP_HDA
|
---|
122 | endif
|
---|
123 | ifdef VBOX_WITH_INTEL_HDA
|
---|
124 | VBOX_AUDIO_DEFS += VBOX_WITH_INTEL_HDA
|
---|
125 | endif
|
---|
126 | ifdef VBOX_WITH_NVIDIA_HDA
|
---|
127 | VBOX_AUDIO_DEFS += VBOX_WITH_NVIDIA_HDA
|
---|
128 | endif
|
---|
129 |
|
---|
130 | # Not yet enabled: Callbacks for the device emulation to let the backends
|
---|
131 | # tell the emulation when and how to process data.
|
---|
132 | if 0
|
---|
133 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_SB16_CALLBACKS
|
---|
134 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_AC97_CALLBACKS
|
---|
135 | VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_HDA_CALLBACKS
|
---|
136 | endif
|
---|
137 |
|
---|