1 | # $Id: Config.kmk 78438 2019-05-07 15:57:37Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # kBuild Configuration file for the VMM.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 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_VMM_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 | #
|
---|
26 | # Globals
|
---|
27 | #
|
---|
28 |
|
---|
29 | ## DEFS variable that is picked up by all three VMM targets (R0, R3, RC).
|
---|
30 | # Can be prepended to by setting it in LocalConfig.kmk
|
---|
31 | VMM_COMMON_DEFS += VBOX_IN_VMM
|
---|
32 | ifdef VBOX_WITH_3RD_IEM_STEP
|
---|
33 | VMM_COMMON_DEFS += VBOX_WITH_3RD_IEM_STEP
|
---|
34 | endif
|
---|
35 | ifdef VBOX_WITH_NESTED_HWVIRT_SVM
|
---|
36 | VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_SVM
|
---|
37 | endif
|
---|
38 | ifdef VBOX_WITH_NESTED_HWVIRT_VMX
|
---|
39 | VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_VMX
|
---|
40 | endif
|
---|
41 | ifdef VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
|
---|
42 | VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM
|
---|
43 | endif
|
---|
44 | #ifdef VBOX_WITH_IEM
|
---|
45 | # VMM_COMMON_DEFS += VBOX_WITH_IEM
|
---|
46 | #endif
|
---|
47 | # part of global DEFS
|
---|
48 | #ifdef VBOX_WITH_REM
|
---|
49 | # VMM_COMMON_DEFS += VBOX_WITH_REM
|
---|
50 | #endif
|
---|
51 | ifdef VBOX_WITH_MULTI_CORE
|
---|
52 | VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
|
---|
53 | endif
|
---|
54 | ifdef VBOX_WITH_R0_LOGGING
|
---|
55 | VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
|
---|
56 | endif
|
---|
57 | ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
58 | VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
59 | endif
|
---|
60 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
61 | VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
|
---|
62 | endif
|
---|
63 | ifdef VBOX_WITH_DTRACE_RC
|
---|
64 | VMM_COMMON_DEFS += VBOX_WITH_DTRACE_RC
|
---|
65 | endif
|
---|
66 | ifdef VBOX_WITH_SAFE_STR
|
---|
67 | VMM_COMMON_DEFS += VBOX_WITH_SAFE_STR
|
---|
68 | endif
|
---|
69 | ifdef VBOX_WITH_RAW_RING1
|
---|
70 | VMM_COMMON_DEFS += VBOX_WITH_RAW_RING1
|
---|
71 | endif
|
---|
72 | ifdef VBOX_WITH_64ON32_IDT
|
---|
73 | VMM_COMMON_DEFS += VBOX_WITH_64ON32_IDT
|
---|
74 | endif
|
---|
75 | ifdef VBOX_WITH_64ON32_CMOS_DEBUG
|
---|
76 | VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG
|
---|
77 | endif
|
---|
78 | ifdef VBOXSTRICTRC_STRICT_ENABLED
|
---|
79 | VMM_COMMON_DEFS += VBOXSTRICTRC_STRICT_ENABLED
|
---|
80 | endif
|
---|
81 | ifeq ($(KBUILD_TARGET),amd64)
|
---|
82 | VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS
|
---|
83 | endif
|
---|
84 | ifdef VBOX_WITH_NATIVE_NEM
|
---|
85 | if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64)
|
---|
86 | VMM_COMMON_DEFS += VBOX_WITH_NATIVE_NEM VBOX_WITH_NEM_R0
|
---|
87 | endif
|
---|
88 | endif
|
---|
89 | ifdef VBOX_BUGREF_9217
|
---|
90 | VMM_COMMON_DEFS += VBOX_BUGREF_9217
|
---|
91 | endif
|
---|
92 |
|
---|
93 | # VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
|
---|
94 |
|
---|