VirtualBox

source: vbox/trunk/src/VBox/Devices/Config.kmk@ 97441

Last change on this file since 97441 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
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
28VBOX_DEVICES_CONFIG_KMK_INCLUDED = 1
29
30# Include the top-level configure file.
31ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
32 include $(PATH_ROOT)/Config.kmk
33endif
34
35# We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
36ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
37 include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
38endif
39
40VBOX_PATH_DEVICES_SRC := $(PATH_ROOT)/src/VBox/Devices
41
42VBOX_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
52TEMPLATE_VBoxBios = ROM
53TEMPLATE_VBoxBios_INSTTYPE = none
54TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16
55TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL
56TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16
57TEMPLATE_VBoxBios_BLD_TRG = os-agnostic
58TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86
59TEMPLATE_VBoxBios_BINSUFF = .rom
60TEMPLATE_VBoxBios_CDEFS = IN_RING0
61TEMPLATE_VBoxBios_CXXDEFS = IN_RING0
62TEMPLATE_VBoxBios_INCS = . $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode
63TEMPLATE_VBoxBios_ASFLAGS = -q -wx -d1 -0
64TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zl -zu -s -oafs -ms -hc -d1+
65TEMPLATE_VBoxBios_CXXFLAGS = $(TEMPLATE_VBoxBios_CFLAGS)
66TEMPLATE_VBoxBios_DEPS = $(VBOX_VERSION_HEADER)
67TEMPLATE_VBoxBios_LDFLAGS = system dos \
68 debug codeview all \
69 option quiet, nofarcalls, map, verbose, statics, symfile \
70 disable 1014, 1023, 2120, 1080
71TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) $(VBOX_PATH_DEVICES_SRC)/BiosCommonCode/biosorg_check.sed
72TEMPLATE_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#
81TEMPLATE_VBoxBios32Lib = ROM
82TEMPLATE_VBoxBios32Lib_EXTENDS = VBoxBios
83TEMPLATE_VBoxBios32Lib_INSTTYPE = none
84TEMPLATE_VBoxBios32Lib_TOOL = OPENWATCOM
85TEMPLATE_VBoxBios32Lib_ASTOOL = OPENWATCOM
86TEMPLATE_VBoxBios32Lib_CFLAGS = -q -wx -zu -s -oas -ms -nt=BIOS32 -nd=BIOS32 -hc
87ifeq ($(KBUILD_TARGET),darwin) # The Open Watcom version we use on darwin generate trouble for the link in -d1+ mode; -d2 doesn't work anywhere.
88TEMPLATE_VBoxBios32Lib_CFLAGS += -d1
89else
90TEMPLATE_VBoxBios32Lib_CFLAGS += -d1+
91endif
92TEMPLATE_VBoxBios32Lib_CXXFLAGS = $(TEMPLATE_VBoxBios32_CFLAGS)
93TEMPLATE_VBoxBios32Lib_LNK_DEPS = $(NO_SUCH_VARIABLE)
94TEMPLATE_VBoxBios32Lib_POST_CMDS = $(NO_SUCH_VARIABLE)
95
96
97#
98# Audio configuration.
99# This must live here because of testcase/
100#
101VBOX_AUDIO_DEFS :=
102if 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
112endif
113
114# Enable backend-independent device enumeration support.
115VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_ENUM
116
117# Enable backend callback support.
118VBOX_AUDIO_DEFS += VBOX_WITH_AUDIO_CALLBACKS
119
120ifdef VBOX_WITH_HP_HDA
121 VBOX_AUDIO_DEFS += VBOX_WITH_HP_HDA
122endif
123ifdef VBOX_WITH_INTEL_HDA
124 VBOX_AUDIO_DEFS += VBOX_WITH_INTEL_HDA
125endif
126ifdef VBOX_WITH_NVIDIA_HDA
127 VBOX_AUDIO_DEFS += VBOX_WITH_NVIDIA_HDA
128endif
129
130# Not yet enabled: Callbacks for the device emulation to let the backends
131# tell the emulation when and how to process data.
132if 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
136endif
137
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