VirtualBox

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

Last change on this file since 94369 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

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