1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top level makefile.
|
---|
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 | SUB_DEPTH = .
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Sub-makefiles / Sub-directories.
|
---|
33 | #
|
---|
34 | ifndef VBOX_ONLY_ROOT_MAKEFILE
|
---|
35 | if (defined(VBOX_WITH_DOCS) || defined(VBOX_WITH_MAIN)) \
|
---|
36 | && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK)) \
|
---|
37 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
38 | include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
|
---|
39 | endif
|
---|
40 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
41 | ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
|
---|
42 | include $(PATH_SUB_CURRENT)/include/Makefile.kmk
|
---|
43 | endif
|
---|
44 | endif
|
---|
45 |
|
---|
46 | #
|
---|
47 | # Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
|
---|
48 | # from the build server), and it's not really worth the effort of dragging in
|
---|
49 | #q this tool only if absolutely needed.
|
---|
50 | #
|
---|
51 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
52 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
53 | ifndef TOOL_ZIP_PACK
|
---|
54 | TOOL_ZIP_PACK = zip
|
---|
55 | endif
|
---|
56 |
|
---|
57 |
|
---|
58 | ## @todo split up this file!
|
---|
59 |
|
---|
60 |
|
---|
61 | #
|
---|
62 | # Clean up global stuff that Config.kmk generates.
|
---|
63 | #
|
---|
64 | OTHER_CLEAN += \
|
---|
65 | $(VBOX_PACKAGE_HEADER) \
|
---|
66 | $(VBOX_LICENSE_VER_KMK) \
|
---|
67 | $(VBOX_VERSION_MK) \
|
---|
68 | $(VBOX_VERSION_HEADER) \
|
---|
69 | $(VBOX_VERSION_STAMP) \
|
---|
70 | $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
|
---|
71 | $(VBOX_SVN_REV_KMK).ts \
|
---|
72 | $(VBOX_SVN_REV_KMK) \
|
---|
73 | $(PATH_OUT)/DynamicConfig.kmk
|
---|
74 |
|
---|
75 |
|
---|
76 | if !defined(VBOX_ONLY_ADDITIONS) \
|
---|
77 | && !defined(VBOX_ONLY_DOCS) \
|
---|
78 | && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
79 | && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
|
---|
80 |
|
---|
81 | if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
|
---|
82 | #
|
---|
83 | # Install the license (and misc non-executable stuff).
|
---|
84 | #
|
---|
85 | INSTALLS += InstallLicenseFiles
|
---|
86 | InstallLicenseFiles_INST = $(INST_BIN)
|
---|
87 | InstallLicenseFiles_MODE = 0644
|
---|
88 | InstallLicenseFiles_SOURCES =
|
---|
89 | InstallLicenseFiles_SOURCES += \
|
---|
90 | $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
|
---|
91 | $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
|
---|
92 | endif
|
---|
93 |
|
---|
94 |
|
---|
95 | #
|
---|
96 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
97 | #
|
---|
98 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
99 | # and .linux property suffixes.
|
---|
100 | #
|
---|
101 | INSTALLS += InstallExternalLibs
|
---|
102 |
|
---|
103 | InstallExternalLibs_INST = $(INST_BIN)
|
---|
104 |
|
---|
105 | # The SDL DLLs
|
---|
106 | if1of ($(KBUILD_TARGET), win os2)
|
---|
107 | ifdef VBOX_WITH_VBOXSDL
|
---|
108 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
109 | InstallExternalLibs_SOURCES += \
|
---|
110 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
|
---|
111 | ifdef VBOX_WITH_SECURELABEL
|
---|
112 | InstallExternalLibs_SOURCES += \
|
---|
113 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
|
---|
114 | endif
|
---|
115 | ifeq ($(KBUILD_TARGET),os2)
|
---|
116 | InstallExternalLibs_SOURCES += \
|
---|
117 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
118 | endif
|
---|
119 | endif
|
---|
120 | endif
|
---|
121 |
|
---|
122 |
|
---|
123 | # The compiler runtime DLLs.
|
---|
124 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
125 | ifndef TOOL_$(VBOX_VCC_TOOL)
|
---|
126 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
|
---|
127 | endif
|
---|
128 | ifndef TOOL_$(VBOX_VCC_TOOL_STEM)X86
|
---|
129 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
|
---|
130 | endif
|
---|
131 | ifdef PATH_TOOL_$(VBOX_VCC_TOOL_STEM)_REDIST
|
---|
132 | InstallExternalLibs_SOURCES += \
|
---|
133 | $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT)/), \
|
---|
134 | $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)) \
|
---|
135 | ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
|
---|
136 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
|
---|
137 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
138 | InstallExternalLibs_SOURCES += \
|
---|
139 | $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT)/), \
|
---|
140 | $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)) \
|
---|
141 | ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
|
---|
142 | endif
|
---|
143 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
144 | InstallExternalLibs_SOURCES += \
|
---|
145 | $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_DEBUG_CRT)/), \
|
---|
146 | $(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)))) \
|
---|
147 | ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
|
---|
148 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
|
---|
149 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
150 | InstallExternalLibs_SOURCES += \
|
---|
151 | $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_DEBUG_CRT)/), \
|
---|
152 | $(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)))) \
|
---|
153 | ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
|
---|
154 | endif
|
---|
155 | endif
|
---|
156 | ifeq ($(KBUILD_TYPE),asan)
|
---|
157 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
158 | InstallExternalLibs_SOURCES += \
|
---|
159 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dynamic-x86_64.dll) \
|
---|
160 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dynamic-x86_64.dll)=>testcase/clang_rt.asan_dynamic-x86_64.dll
|
---|
161 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
162 | InstallExternalLibs_SOURCES += \
|
---|
163 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dbg_dynamic-x86_64.dll) \
|
---|
164 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dbg_dynamic-x86_64.dll)=>testcase/clang_rt.asan_dbg_dynamic-x86_64.dll
|
---|
165 | endif
|
---|
166 | endif
|
---|
167 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
168 | InstallExternalLibs_SOURCES += \
|
---|
169 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll) \
|
---|
170 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll)=>testcase/clang_rt.asan_dynamic-i386.dll
|
---|
171 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
172 | InstallExternalLibs_SOURCES += \
|
---|
173 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll) \
|
---|
174 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll)=>testcase/clang_rt.asan_dbg_dynamic-i386.dll
|
---|
175 | endif
|
---|
176 | endif
|
---|
177 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
178 | InstallExternalLibs_SOURCES += $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll,x86)=>x86/clang_rt.asan_dynamic-i386.dll
|
---|
179 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
180 | InstallExternalLibs_SOURCES += $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll,x86)=>x86/clang_rt.asan_dbg_dynamic-i386.dll
|
---|
181 | endif
|
---|
182 | endif
|
---|
183 | endif
|
---|
184 | else
|
---|
185 | VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
|
---|
186 | VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
|
---|
187 | VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
|
---|
188 | VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
|
---|
189 | VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
|
---|
190 | VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
|
---|
191 |
|
---|
192 | InstallExternalLibs_SOURCES += \
|
---|
193 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
|
---|
194 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
|
---|
195 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
|
---|
196 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
|
---|
197 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
198 | InstallExternalLibs_SOURCES += \
|
---|
199 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
|
---|
200 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
|
---|
201 | endif
|
---|
202 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
203 | InstallExternalLibs_SOURCES += \
|
---|
204 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
|
---|
205 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
|
---|
206 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
|
---|
207 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
|
---|
208 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
209 | InstallExternalLibs_SOURCES += \
|
---|
210 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
|
---|
211 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
|
---|
212 | endif
|
---|
213 | endif
|
---|
214 | endif
|
---|
215 | endif
|
---|
216 |
|
---|
217 | #
|
---|
218 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
219 | # Note: The installer fixes the darwin .dylibs when hardening is enabled.
|
---|
220 | # Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
|
---|
221 | # https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
|
---|
222 | # the Info.plist file goes into Resources.
|
---|
223 | #
|
---|
224 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
225 | ifdef VBOX_WITH_QT6
|
---|
226 | include $(KBUILD_PATH)/units/qt6.kmk
|
---|
227 | VBOX_QT_FWRK_VER = A
|
---|
228 | VBOX_QT_PATH = $(PATH_SDK_QT6)
|
---|
229 | VBOX_QT_PATH_LIB = $(PATH_SDK_QT6_LIB)
|
---|
230 | else
|
---|
231 | include $(KBUILD_PATH)/units/qt5.kmk
|
---|
232 | VBOX_QT_FWRK_VER = 5
|
---|
233 | VBOX_QT_PATH = $(PATH_SDK_QT5)
|
---|
234 | VBOX_QT_PATH_LIB = $(PATH_SDK_QT5_LIB)
|
---|
235 | endif
|
---|
236 | ifdef VBOX_WITH_QTGUI
|
---|
237 | INSTALLS += qt5-bin
|
---|
238 | endif
|
---|
239 | qt5-bin_INST = $(INST_VIRTUALBOX)Contents/
|
---|
240 | qt5-bin_EXEC_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
|
---|
241 | $(VBOX_QT_PATH_LIB)/$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/$(qtmod))
|
---|
242 | qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
|
---|
243 | $(VBOX_QT_PATH_LIB)/$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/Resources/Info.plist)
|
---|
244 | ifdef VBOX_WITH_QT_DSYMS
|
---|
245 | qt5-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
|
---|
246 | $(VBOX_QT_PATH_LIB)/$(qtmod).framework.dSYM/Contents/Info.plist=>Frameworks/$(qtmod).framework.dSYM/Contents/Info.plist \
|
---|
247 | $(VBOX_QT_PATH_LIB)/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod)=>Frameworks/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod))
|
---|
248 | endif
|
---|
249 | qt5-bin_EXEC_SOURCES += \
|
---|
250 | $(VBOX_QT_PATH)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
|
---|
251 | $(VBOX_QT_PATH)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
|
---|
252 | $(VBOX_QT_PATH)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL) \
|
---|
253 | $(VBOX_QT_PATH)/plugins/sqldrivers/libqsqlite$(SUFF_DLL)=>plugins/sqldrivers/libqsqlite$(SUFF_DLL) \
|
---|
254 | $(VBOX_QT_PATH)/plugins/styles/libqmacstyle$(SUFF_DLL)=>plugins/styles/libqmacstyle$(SUFF_DLL)
|
---|
255 | ifdef VBOX_WITH_QT_DSYMS
|
---|
256 | qt5-bin_SOURCES += $(foreach qtplat, libqcocoa libqminimal libqoffscreen, \
|
---|
257 | $(VBOX_QT_PATH)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \
|
---|
258 | $(VBOX_QT_PATH)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL)=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL))
|
---|
259 | qt5-bin_SOURCES += $(foreach qtsqldrv, libqsqlite, \
|
---|
260 | $(VBOX_QT_PATH)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \
|
---|
261 | $(VBOX_QT_PATH)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL)=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL))
|
---|
262 | qt5-bin_SOURCES += $(foreach qtstyl, libqmacstyle, \
|
---|
263 | $(VBOX_QT_PATH)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \
|
---|
264 | $(VBOX_QT_PATH)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL)=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL))
|
---|
265 | endif
|
---|
266 | qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
|
---|
267 | Frameworks/$(qtmod).framework/Versions/Current=>$(VBOX_QT_FWRK_VER) \
|
---|
268 | Frameworks/$(qtmod).framework/$(qtmod)=>Versions/$(VBOX_QT_FWRK_VER)/$(qtmod) \
|
---|
269 | Frameworks/$(qtmod).framework/Resources=>Versions/$(VBOX_QT_FWRK_VER)/Resources)
|
---|
270 | qt5-bin_INSTALLER = $(INSTALL) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) $(if $(mode),-m $(mode)) $(4) -- \
|
---|
271 | "$(1)" "$(2)" $(if-expr "$(source_type_prefix)" == "EXEC_" \
|
---|
272 | ,$(NLTAB)install_name_tool \
|
---|
273 | $(if-expr "$(suffix $2)" == "", -id "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Framework,@rpath)/$(notdir $(2)).framework/Version/$(VBOX_QT_FWRK_VER)/$(notdir $(2))",) \
|
---|
274 | $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
|
---|
275 | $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(VBOX_QT_PATH)/, \
|
---|
276 | -change "$(prefix)$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/$(qtmod)" \
|
---|
277 | "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/$(VBOX_QT_FWRK_VER)/$(qtmod)" ) ) \
|
---|
278 | "$(2)",) # HACK ALERT! Using $(source_type_prefix) to detect EXEC_SOURCES.
|
---|
279 | else # win x11
|
---|
280 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
281 | ifndef VBOX_ONLY_BUILD
|
---|
282 | ifneq ($(VBOX_GCC_VERSION_CXX),)
|
---|
283 | if $(VBOX_GCC_VERSION_CXX) < 40400
|
---|
284 | $(error gcc >= 4.4 required when compiling against Qt5!)
|
---|
285 | endif
|
---|
286 | endif
|
---|
287 | endif
|
---|
288 | endif
|
---|
289 | if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
|
---|
290 | include $(KBUILD_PATH)/units/qt5.kmk
|
---|
291 | ifeq ($(KBUILD_TARGET),win)
|
---|
292 | ifdef VBOX_WITH_QTGUI
|
---|
293 | INSTALLS += qt5-bin
|
---|
294 | endif
|
---|
295 | qt5-bin_MODE = 755
|
---|
296 | qt5-bin_INST = $(INST_BIN)
|
---|
297 | qt5-bin_SOURCES = \
|
---|
298 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL)))
|
---|
299 | qt5-bin_SOURCES += \
|
---|
300 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \
|
---|
301 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \
|
---|
302 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL) \
|
---|
303 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/sqldrivers/qsqlite$(SUFF_DLL))=>sqldrivers/qsqlite$(SUFF_DLL) \
|
---|
304 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/styles/qwindowsvistastyle$(SUFF_DLL))=>styles/qwindowsvistastyle$(SUFF_DLL)
|
---|
305 | ifdef VBOX_WITH_QT_PDBS
|
---|
306 | qt5-bin_SOURCES += \
|
---|
307 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
|
---|
308 | endif # VBOX_WITH_QT_PDBS
|
---|
309 | else # x11
|
---|
310 | ifdef VBOX_WITH_QTGUI
|
---|
311 | INSTALLS += qt5-bin
|
---|
312 | endif
|
---|
313 | qt5-bin_MODE = 755
|
---|
314 | qt5-bin_INST = $(INST_BIN)
|
---|
315 | ifdef VBOX_WITH_HARDENING
|
---|
316 | # The wildcards are necessary to install the libs instead of the symlinks
|
---|
317 | qt5-bin_SOURCES = \
|
---|
318 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*[0-9])=>lib$(qtmod).so.5) \
|
---|
319 | $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
|
---|
320 | else # !VBOX_WITH_HARDENING
|
---|
321 | # For non-hardened builds we need to remove the RUNPATH. This stuff is
|
---|
322 | # ugly but we need to prevent kBuild from hard-linking otherwise we
|
---|
323 | # (indirectly) change the binaries in tools
|
---|
324 | ifneq ($(KBUILD_TARGET),solaris)
|
---|
325 | QT5_VERSION = 5.15.2
|
---|
326 | else
|
---|
327 | QT5_VERSION = 5.15.2
|
---|
328 | endif
|
---|
329 | qt5-bin_SOURCES = \
|
---|
330 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \
|
---|
331 | $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib))
|
---|
332 |
|
---|
333 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \
|
---|
334 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
335 | $(call MSG_INST_FILE,$^,$@)
|
---|
336 | $(QUIET)$(CP) $^ $@
|
---|
337 | $(QUIET)chrpath --replace "\$$ORIGIN" $@
|
---|
338 |
|
---|
339 | ifn1of ($(KBUILD_TARGET),solaris linux)
|
---|
340 | $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
|
---|
341 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
342 | $(call MSG_INST_FILE,$^,$@)
|
---|
343 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
344 | $(QUIET)$(CP) $^ $@
|
---|
345 | $(QUIET)chrpath --delete $@
|
---|
346 | endif # !solaris and !linux
|
---|
347 |
|
---|
348 | # @todo For solaris and some linuxes dlopen fails to navigate executable rpath to dependent libraries,
|
---|
349 | # so add explicit rpath for libqxcb.so, find better solution later.
|
---|
350 | if1of ($(KBUILD_TARGET),solaris linux)
|
---|
351 | $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
|
---|
352 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
353 | $(call MSG_INST_FILE,$^,$@)
|
---|
354 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
355 | $(QUIET)$(CP) $^ $@
|
---|
356 | $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
|
---|
357 | endif # solaris linux
|
---|
358 |
|
---|
359 | endif # !VBOX_WITH_HARDENING
|
---|
360 | endif # x11
|
---|
361 | endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD
|
---|
362 | endif # win x11
|
---|
363 |
|
---|
364 |
|
---|
365 | #
|
---|
366 | # Install additions iso from the build server if configured to do so.
|
---|
367 | #
|
---|
368 | # Note! For building the combined package, just get the additions .ISO
|
---|
369 | # once for amd64 to prevent version inconsistences. In all other
|
---|
370 | # cases we get the .ISO per target architecture.
|
---|
371 | #
|
---|
372 | if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
|
---|
373 | && ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
|
---|
374 | || "$(KBUILD_TARGET_ARCH)" == "amd64" )
|
---|
375 | INSTALLS += buildserver-additions
|
---|
376 | buildserver-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
377 | buildserver-additions_MODE = 0644
|
---|
378 | buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
379 | buildserver-additions_CLEANS = \
|
---|
380 | $(buildserver-additions_0_OUTDIR)/unpacked.ts \
|
---|
381 | $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
|
---|
382 | $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
|
---|
383 | $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
384 |
|
---|
385 | $$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
|
---|
386 | $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
|
---|
387 | $(call MSG_L1,Unpacking additions archive)
|
---|
388 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
389 | $(TOUCH) -c -- $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
390 | $(APPEND) -t $@ "done"
|
---|
391 |
|
---|
392 | $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
|
---|
393 | $(RM) -f -- "$@" "$@.tmp"
|
---|
394 | $(SHELL) $(KBUILD_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
|
---|
395 | $(MV) -f -- "$@.tmp" "$@"
|
---|
396 |
|
---|
397 | endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
|
---|
398 |
|
---|
399 |
|
---|
400 | #
|
---|
401 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
402 | #
|
---|
403 | ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
404 | ## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
|
---|
405 | INSTALLS += buildserver-docs
|
---|
406 | buildserver-docs_INST = $(INST_BIN)
|
---|
407 | buildserver-docs_MODE = 0644
|
---|
408 | buildserver-docs_SOURCES = \
|
---|
409 | $(addprefix $(PATH_TARGET)/, \
|
---|
410 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox.chm,) \
|
---|
411 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual.qch UserManual.qhc,) \
|
---|
412 | UserManual.pdf \
|
---|
413 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
414 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox_$(f).chm,) \
|
---|
415 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual_$(f).qch UserManual_$(f).qhc,) \
|
---|
416 | UserManual_$(f).pdf))
|
---|
417 | buildserver-docs_CLEANS = \
|
---|
418 | $(buildserver-docs_0_OUTDIR)/unpacked.ts \
|
---|
419 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
|
---|
420 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
|
---|
421 | $(addprefix $(PATH_TARGET)/, \
|
---|
422 | VirtualBox.chm UserManual.qch UserManual.qhc UserManual.pdf \
|
---|
423 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
424 | VirtualBox_$(f).chm \
|
---|
425 | UserManual_$(f).qch UserManual_$(f).qhc \
|
---|
426 | UserManual_$(f).pdf))
|
---|
427 |
|
---|
428 | $$(buildserver-docs_0_OUTDIR)/unpacked.ts +| \
|
---|
429 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox.chm,) \
|
---|
430 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual.qch $(PATH_TARGET)/UserManual.qhc,) \
|
---|
431 | $(PATH_TARGET)/UserManual.pdf \
|
---|
432 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
433 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox_$(f).chm,) \
|
---|
434 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual_$(f).qch $(PATH_TARGET)/UserManual_$(f).qhc,) \
|
---|
435 | $(PATH_TARGET)/UserManual_$(f).pdf): \
|
---|
436 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
|
---|
437 | $(call MSG_L1,Unpacking documentation)
|
---|
438 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
439 | $(TOUCH) -c -- \
|
---|
440 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox.chm,) \
|
---|
441 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual.qch $(PATH_TARGET)/UserManual.qhc,) \
|
---|
442 | $(PATH_TARGET)/UserManual.pdf \
|
---|
443 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
444 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox_$(f).chm,) \
|
---|
445 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual_$(f).qch $(PATH_TARGET)/UserManual_$(f).qhc,) \
|
---|
446 | $(PATH_TARGET)/UserManual_$(f).pdf)
|
---|
447 | $(APPEND) -t $@ "done"
|
---|
448 |
|
---|
449 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
|
---|
450 | $(RM) -f -- "$@" "$@.tmp"
|
---|
451 | $(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
|
---|
452 | $(MV) -f -- "$@.tmp" "$@"
|
---|
453 |
|
---|
454 | endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
455 |
|
---|
456 |
|
---|
457 | ifdef VBOX_WITH_EFI
|
---|
458 | #
|
---|
459 | # Install EFI firmware image
|
---|
460 | #
|
---|
461 | ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
462 | #
|
---|
463 | # Either from the build server.
|
---|
464 | #
|
---|
465 | ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
|
---|
466 | include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
|
---|
467 | endif
|
---|
468 | INSTALLS += buildserver-efifw
|
---|
469 | buildserver-efifw_INST = $(INST_BIN)
|
---|
470 | buildserver-efifw_MODE = 0644
|
---|
471 | buildserver-efifw_SOURCES = \
|
---|
472 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
473 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
|
---|
474 | buildserver-efifw_CLEANS = \
|
---|
475 | $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
476 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
477 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
|
---|
478 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
|
---|
479 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
|
---|
480 | $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
|
---|
481 |
|
---|
482 | INSTALLS += buildserver-efifw-dbg-amd64
|
---|
483 | buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
|
---|
484 | buildserver-efifw-dbg-amd64_MODE = 0644
|
---|
485 | buildserver-efifw-dbg-amd64_SOURCES = \
|
---|
486 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
|
---|
487 |
|
---|
488 | INSTALLS += buildserver-efifw-dbg-x86
|
---|
489 | buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
|
---|
490 | buildserver-efifw-dbg-x86_MODE = 0644
|
---|
491 | buildserver-efifw-dbg-x86_SOURCES = \
|
---|
492 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
|
---|
493 |
|
---|
494 | $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
495 | +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
496 | $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
|
---|
497 | $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
|
---|
498 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
|
---|
499 | $(call MSG_L1,Unpacking EFI firmware)
|
---|
500 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
|
---|
501 | $(foreach arch, amd64 x86, \
|
---|
502 | $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
|
---|
503 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
|
---|
504 | ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
|
---|
505 | $(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
506 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
|
---|
507 | $(APPEND) -t $@ "done"
|
---|
508 |
|
---|
509 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
|
---|
510 | $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
|
---|
511 | $(RM) -f -- "$@" "$@.tmp"
|
---|
512 | $(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
|
---|
513 | $(MV) -f -- "$@.tmp" "$@"
|
---|
514 |
|
---|
515 | else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
516 | #
|
---|
517 | # Or from the local copy (no debug).
|
---|
518 | #
|
---|
519 | INSTALLS += local-efifw
|
---|
520 | local-efifw_INST = $(INST_BIN)
|
---|
521 | local-efifw_MODE = 0644
|
---|
522 | local-efifw_SOURCES = \
|
---|
523 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
|
---|
524 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
|
---|
525 | endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
526 | endif # VBOX_WITH_EFI
|
---|
527 |
|
---|
528 |
|
---|
529 | ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
|
---|
530 | #
|
---|
531 | # Get the extension pack from from the build server to facility the automatic
|
---|
532 | # testing (everything in one tarball (VBoxAll-*)).
|
---|
533 | #
|
---|
534 | # Note! Using the plural here as we might be downloading more packages eventually.
|
---|
535 | #
|
---|
536 | INSTALLS += buildserver-extpacks
|
---|
537 | buildserver-extpacks_INST = $(INST_DIST)
|
---|
538 | buildserver-extpacks_MODE = 0644
|
---|
539 | buildserver-extpacks_SOURCES = \
|
---|
540 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
|
---|
541 | buildserver-extpacks_CLEANS = \
|
---|
542 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
|
---|
543 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
|
---|
544 |
|
---|
545 | $$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
|
---|
546 | $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
|
---|
547 | $(RM) -f -- "$@.tmp" "$@"
|
---|
548 | $(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
|
---|
549 | $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
|
---|
550 | $(MV) -f -- "$@.tmp" "$@"
|
---|
551 | $(TOUCH) -- "$@"
|
---|
552 |
|
---|
553 | endif
|
---|
554 |
|
---|
555 |
|
---|
556 | #
|
---|
557 | # Install staged binaries on platforms where we can't cross
|
---|
558 | # compile things.
|
---|
559 | #
|
---|
560 | ifn1of ($(KBUILD_TARGET), linux win)
|
---|
561 | VBOX_PATH_STAGED ?= .
|
---|
562 |
|
---|
563 | # Additions.
|
---|
564 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
565 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
566 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
567 | INSTALLS += staged-additions
|
---|
568 | staged-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
569 | staged-additions_MODE = 0644
|
---|
570 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
571 | endif
|
---|
572 | endif
|
---|
573 | endif
|
---|
574 |
|
---|
575 | # guesttool.exe
|
---|
576 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
577 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
578 | INSTALLS += staged-guesttool
|
---|
579 | staged-guesttool_INST = $(INST_BIN)
|
---|
580 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
581 | endif
|
---|
582 | endif
|
---|
583 |
|
---|
584 | endif
|
---|
585 |
|
---|
586 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
|
---|
587 |
|
---|
588 |
|
---|
589 | ifdef VBOX_ONLY_DOCS
|
---|
590 | # It may sound a bit odd, but for preparing the documentation package the
|
---|
591 | # doxygen documentation isn't needed and increases the build time a lot.
|
---|
592 | docs:
|
---|
593 | else # !VBOX_ONLY_DOCS
|
---|
594 | #
|
---|
595 | # Generate documentation.
|
---|
596 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
597 | #
|
---|
598 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
599 | docs: docs.Core
|
---|
600 | else
|
---|
601 | docs:
|
---|
602 | endif
|
---|
603 | endif # !VBOX_ONLY_DOCS
|
---|
604 |
|
---|
605 | #
|
---|
606 | # The core (VMM+Devices+Main) documentation.
|
---|
607 | #
|
---|
608 | # This includes so much because we wish to have the complete CFGM
|
---|
609 | # and GCFGM lists.
|
---|
610 | #
|
---|
611 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
612 | BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
|
---|
613 | OTHER_CLEAN += \
|
---|
614 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
|
---|
615 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
|
---|
616 |
|
---|
617 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
618 | include/iprt \
|
---|
619 | include/iprt/cpp \
|
---|
620 | include/iprt/crypto \
|
---|
621 | include/iprt/formats \
|
---|
622 | include/iprt/linux \
|
---|
623 | include/iprt/nt \
|
---|
624 | include/iprt/solaris \
|
---|
625 | include/iprt/win \
|
---|
626 | include/iprt/nocrt \
|
---|
627 | include/VBox \
|
---|
628 | include/VBox/vmm \
|
---|
629 | include/VBox/com \
|
---|
630 | include/VBox/ExtPack \
|
---|
631 | include/VBox/HostServices \
|
---|
632 | include/VBox/GuestHost \
|
---|
633 | include/VBox/HGSMI \
|
---|
634 | src/VBox/VMM \
|
---|
635 | src/VBox/VMM/VMMR0 \
|
---|
636 | src/VBox/VMM/VMMRC \
|
---|
637 | src/VBox/VMM/VMMR3 \
|
---|
638 | src/VBox/VMM/VMMAll \
|
---|
639 | src/VBox/VMM/VMMSwitcher \
|
---|
640 | src/VBox/VMM/include \
|
---|
641 | src/VBox/Debugger \
|
---|
642 | src/VBox/Devices \
|
---|
643 | src/VBox/Devices/Audio \
|
---|
644 | src/VBox/Devices/Bus \
|
---|
645 | src/VBox/Devices/Graphics \
|
---|
646 | src/VBox/Devices/Graphics/BIOS \
|
---|
647 | src/VBox/Devices/Graphics/shaderlib \
|
---|
648 | src/VBox/Devices/Input \
|
---|
649 | src/VBox/Devices/Networking \
|
---|
650 | src/VBox/Devices/PC \
|
---|
651 | src/VBox/Devices/PC/BIOS \
|
---|
652 | src/VBox/Devices/Parallel \
|
---|
653 | src/VBox/Devices/Serial \
|
---|
654 | src/VBox/Devices/Storage \
|
---|
655 | src/VBox/Devices/USB \
|
---|
656 | src/VBox/Devices/USB/darwin \
|
---|
657 | src/VBox/Devices/USB/linux \
|
---|
658 | src/VBox/Devices/USB/os2 \
|
---|
659 | src/VBox/Devices/USB/solaris \
|
---|
660 | src/VBox/Devices/USB/vrdp \
|
---|
661 | src/VBox/Devices/USB/win32 \
|
---|
662 | src/VBox/Devices/VMMDev \
|
---|
663 | src/VBox/Main/include \
|
---|
664 | src/VBox/Main/include/hgcm \
|
---|
665 | src/VBox/Main \
|
---|
666 | src/VBox/Main/glue \
|
---|
667 | src/VBox/Main/webservice \
|
---|
668 | src/VBox/Main/xml \
|
---|
669 | src/VBox/Main/src-all \
|
---|
670 | src/VBox/Main/src-all/win \
|
---|
671 | src/VBox/Main/src-client \
|
---|
672 | src/VBox/Main/src-client/win \
|
---|
673 | src/VBox/Main/src-client/xpcom \
|
---|
674 | src/VBox/Main/src-server \
|
---|
675 | src/VBox/Main/src-server/darwin \
|
---|
676 | src/VBox/Main/src-server/linux \
|
---|
677 | src/VBox/Main/src-server/os2 \
|
---|
678 | src/VBox/Main/src-server/solaris \
|
---|
679 | src/VBox/Main/src-server/win \
|
---|
680 | src/VBox/Main/src-server/xpcom \
|
---|
681 | src/VBox/HostServices \
|
---|
682 | src/VBox/HostServices/DragAndDrop \
|
---|
683 | src/VBox/HostServices/GuestControl \
|
---|
684 | src/VBox/HostServices/GuestProperties \
|
---|
685 | src/VBox/HostServices/SharedClipboard \
|
---|
686 | src/VBox/HostServices/SharedFolders \
|
---|
687 | src/VBox/HostServices/SharedOpenGL \
|
---|
688 | src/VBox/HostServices/SharedOpenGL/crserver \
|
---|
689 | src/VBox/HostServices/SharedOpenGL/crserverlib \
|
---|
690 | src/VBox/HostServices/SharedOpenGL/render \
|
---|
691 | src/VBox/HostServices/SharedOpenGL/unpacker \
|
---|
692 | src/VBox/HostServices/auth \
|
---|
693 | src/VBox/HostServices/auth/directoryservice \
|
---|
694 | src/VBox/HostServices/auth/pam \
|
---|
695 | src/VBox/HostServices/auth/simple \
|
---|
696 | src/VBox/HostServices/auth/winlogon \
|
---|
697 | src/VBox/HostDrivers/Support \
|
---|
698 | src/VBox/HostDrivers/Support/darwin \
|
---|
699 | src/VBox/HostDrivers/Support/freebsd \
|
---|
700 | src/VBox/HostDrivers/Support/linux \
|
---|
701 | src/VBox/HostDrivers/Support/os2 \
|
---|
702 | src/VBox/HostDrivers/Support/solaris \
|
---|
703 | src/VBox/HostDrivers/Support/win \
|
---|
704 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
705 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
706 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
707 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
708 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
709 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
710 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
711 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
712 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
713 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
714 | src/VBox/HostDrivers/VBoxNetAdp \
|
---|
715 | src/VBox/HostDrivers/VBoxNetAdp/darwin \
|
---|
716 | src/VBox/HostDrivers/VBoxNetAdp/linux \
|
---|
717 | src/VBox/HostDrivers/VBoxNetAdp/solaris \
|
---|
718 | src/VBox/HostDrivers/VBoxNetAdp/win \
|
---|
719 | src/VBox/HostDrivers/VBoxPci \
|
---|
720 | src/VBox/HostDrivers/VBoxPci/darwin \
|
---|
721 | src/VBox/HostDrivers/VBoxPci/linux \
|
---|
722 | src/VBox/HostDrivers/VBoxPci/solaris \
|
---|
723 | src/VBox/HostDrivers/VBoxPci/win \
|
---|
724 | src/VBox/HostDrivers/VBoxUSB \
|
---|
725 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
726 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
727 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
728 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
729 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
730 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
731 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
732 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
733 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
734 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
735 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
736 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
737 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
738 | src/VBox/Additions \
|
---|
739 | src/VBox/Additions/WINNT \
|
---|
740 | src/VBox/Additions/WINNT/Graphics \
|
---|
741 | src/VBox/Additions/WINNT/Graphics/Video \
|
---|
742 | src/VBox/Additions/WINNT/Graphics/Video/common \
|
---|
743 | src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
|
---|
744 | src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
|
---|
745 | src/VBox/Additions/WINNT/Graphics/Video/disp \
|
---|
746 | src/VBox/Additions/WINNT/Graphics/Video/disp/common \
|
---|
747 | src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
|
---|
748 | src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
|
---|
749 | src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
|
---|
750 | src/VBox/Additions/WINNT/Graphics/Video/mp \
|
---|
751 | src/VBox/Additions/WINNT/Graphics/Video/mp/common \
|
---|
752 | src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
|
---|
753 | src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
|
---|
754 | src/VBox/Additions/WINNT/Graphics/Wine_new \
|
---|
755 | src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
|
---|
756 | src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
|
---|
757 | src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
|
---|
758 | src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
|
---|
759 | src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
|
---|
760 | src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
|
---|
761 | src/VBox/Additions/WINNT/Installer \
|
---|
762 | src/VBox/Additions/WINNT/Installer/ISO \
|
---|
763 | src/VBox/Additions/WINNT/Installer/InstallHelper \
|
---|
764 | src/VBox/Additions/WINNT/Installer/Languages \
|
---|
765 | src/VBox/Additions/WINNT/Installer/Loader \
|
---|
766 | src/VBox/Additions/WINNT/Mouse \
|
---|
767 | src/VBox/Additions/WINNT/Mouse/NT5 \
|
---|
768 | src/VBox/Additions/WINNT/Mouse/common \
|
---|
769 | src/VBox/Additions/WINNT/SharedFolders \
|
---|
770 | src/VBox/Additions/WINNT/SharedFolders/redirector \
|
---|
771 | src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
|
---|
772 | src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
|
---|
773 | src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
|
---|
774 | src/VBox/Additions/WINNT/VBoxCredProv \
|
---|
775 | src/VBox/Additions/WINNT/VBoxGINA \
|
---|
776 | src/VBox/Additions/WINNT/VBoxHook \
|
---|
777 | src/VBox/Additions/WINNT/VBoxTray \
|
---|
778 | src/VBox/Additions/WINNT/VBoxUSB \
|
---|
779 | src/VBox/Additions/WINNT/i8042prt \
|
---|
780 | src/VBox/Additions/WINNT/i8042prt/i386 \
|
---|
781 | src/VBox/Additions/WINNT/i8042prt/include \
|
---|
782 | src/VBox/Additions/WINNT/include \
|
---|
783 | src/VBox/Additions/common \
|
---|
784 | src/VBox/Additions/common/VBoxControl \
|
---|
785 | src/VBox/Additions/common/VBoxGuest \
|
---|
786 | src/VBox/Additions/common/VBoxGuest/freebsd \
|
---|
787 | src/VBox/Additions/common/VBoxGuest/linux \
|
---|
788 | src/VBox/Additions/common/VBoxGuest/win \
|
---|
789 | src/VBox/Additions/common/VBoxGuestLib \
|
---|
790 | src/VBox/Additions/common/VBoxService \
|
---|
791 | src/VBox/Additions/common/VBoxVideo \
|
---|
792 | src/VBox/Additions/common/crOpenGL \
|
---|
793 | src/VBox/Additions/common/crOpenGL/array \
|
---|
794 | src/VBox/Additions/common/crOpenGL/feedback \
|
---|
795 | src/VBox/Additions/common/crOpenGL/pack \
|
---|
796 | src/VBox/Additions/common/crOpenGL/passthrough \
|
---|
797 | src/VBox/Additions/common/pam \
|
---|
798 | src/VBox/Additions/darwin \
|
---|
799 | src/VBox/Additions/freebsd \
|
---|
800 | src/VBox/Additions/freebsd/Installer \
|
---|
801 | src/VBox/Additions/freebsd/drm \
|
---|
802 | src/VBox/Additions/freebsd/vboxvfs \
|
---|
803 | src/VBox/Additions/linux \
|
---|
804 | src/VBox/Additions/linux/drm \
|
---|
805 | src/VBox/Additions/linux/installer \
|
---|
806 | src/VBox/Additions/linux/selinux-fedora \
|
---|
807 | src/VBox/Additions/linux/sharedfolders \
|
---|
808 | src/VBox/Additions/os2 \
|
---|
809 | src/VBox/Additions/os2/VBoxGradd \
|
---|
810 | src/VBox/Additions/os2/VBoxGradd/graddlib \
|
---|
811 | src/VBox/Additions/os2/VBoxGrext \
|
---|
812 | src/VBox/Additions/os2/VBoxMouse \
|
---|
813 | src/VBox/Additions/os2/VBoxSF \
|
---|
814 | src/VBox/Additions/solaris \
|
---|
815 | src/VBox/Additions/solaris/DRM \
|
---|
816 | src/VBox/Additions/solaris/Installer \
|
---|
817 | src/VBox/Additions/solaris/SharedFolders \
|
---|
818 | src/VBox/Additions/solaris/SharedFolders/solaris10 \
|
---|
819 | src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
|
---|
820 | src/VBox/Additions/solaris/Virtio \
|
---|
821 | src/VBox/Additions/x11 \
|
---|
822 | src/VBox/Additions/x11/Installer \
|
---|
823 | src/VBox/Additions/x11/VBoxClient \
|
---|
824 | src/VBox/Additions/x11/vboxmouse \
|
---|
825 | src/VBox/Additions/x11/vboxmouse/xorg70 \
|
---|
826 | src/VBox/Additions/x11/vboxmouse/xorg71 \
|
---|
827 | src/VBox/Additions/x11/vboxvideo \
|
---|
828 | src/VBox/NetworkServices \
|
---|
829 | src/VBox/NetworkServices/Dhcpd \
|
---|
830 | src/VBox/NetworkServices/NAT \
|
---|
831 | src/VBox/NetworkServices/NetLib \
|
---|
832 | src/VBox/Storage \
|
---|
833 | src/VBox/ValidationKit/ \
|
---|
834 | src/VBox/ValidationKit/docs/ \
|
---|
835 | src/VBox/ValidationKit/testdriver/ \
|
---|
836 | src/VBox/ValidationKit/bootsectors/ \
|
---|
837 | src/VBox/ValidationKit/bootsectors/bs3kit/ \
|
---|
838 | src/VBox/ValidationKit/tests/ \
|
---|
839 | src/VBox/ValidationKit/tests/additions/ \
|
---|
840 | src/VBox/ValidationKit/tests/api/ \
|
---|
841 | src/VBox/ValidationKit/tests/autostart/ \
|
---|
842 | src/VBox/ValidationKit/tests/benchmarks/ \
|
---|
843 | src/VBox/ValidationKit/tests/cpu/ \
|
---|
844 | src/VBox/ValidationKit/tests/installation/ \
|
---|
845 | src/VBox/ValidationKit/tests/network/ \
|
---|
846 | src/VBox/ValidationKit/tests/selftests/ \
|
---|
847 | src/VBox/ValidationKit/tests/smoketests/ \
|
---|
848 | src/VBox/ValidationKit/tests/storage/ \
|
---|
849 | src/VBox/ValidationKit/tests/teleportation/ \
|
---|
850 | src/VBox/ValidationKit/tests/unittests/ \
|
---|
851 | src/VBox/ValidationKit/tests/usb/ \
|
---|
852 | src/VBox/ValidationKit/common/ \
|
---|
853 | src/VBox/ValidationKit/utils/ \
|
---|
854 | src/VBox/ValidationKit/utils/TestExecServ/ \
|
---|
855 | src/VBox/ValidationKit/utils/cpu/ \
|
---|
856 | src/VBox/ValidationKit/utils/misc/ \
|
---|
857 | src/VBox/ValidationKit/utils/network/ \
|
---|
858 | src/VBox/ValidationKit/utils/nt/ \
|
---|
859 | src/VBox/ValidationKit/utils/usb/ \
|
---|
860 | src/VBox/ValidationKit/vms/ \
|
---|
861 | src/VBox/ValidationKit/testmanager/ \
|
---|
862 | src/VBox/ValidationKit/testmanager/core/ \
|
---|
863 | src/VBox/ValidationKit/testmanager/db/ \
|
---|
864 | src/VBox/ValidationKit/testmanager/debug/ \
|
---|
865 | src/VBox/ValidationKit/testmanager/cgi/ \
|
---|
866 | src/VBox/ValidationKit/testmanager/webui/ \
|
---|
867 | src/VBox/ValidationKit/testboxscript/ \
|
---|
868 |
|
---|
869 | # These must come first in order to make things look nice.
|
---|
870 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
871 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
872 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
873 | $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
|
---|
874 | $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
|
---|
875 | $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
|
---|
876 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
877 | $(PATH_ROOT)/include/VBox/vmm/vmm.h \
|
---|
878 | $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
|
---|
879 | $(PATH_ROOT)/include/VBox/vmm/cpum.h \
|
---|
880 | $(PATH_ROOT)/include/VBox/vmm/mm.h \
|
---|
881 | $(PATH_ROOT)/include/VBox/vmm/pgm.h \
|
---|
882 | $(PATH_ROOT)/include/VBox/vmm/selm.h \
|
---|
883 | $(PATH_ROOT)/include/VBox/vmm/trpm.h \
|
---|
884 | $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
|
---|
885 | $(PATH_ROOT)/include/VBox/vmm/stam.h \
|
---|
886 | $(PATH_ROOT)/include/VBox/vmm/em.h \
|
---|
887 | $(PATH_ROOT)/include/VBox/vmm/hm.h \
|
---|
888 | $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
|
---|
889 | $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
|
---|
890 | $(PATH_ROOT)/include/VBox/vmm/iem.h \
|
---|
891 | $(PATH_ROOT)/include/VBox/vmm/nem.h \
|
---|
892 | $(PATH_ROOT)/include/VBox/vmm/pdm.h \
|
---|
893 | $(PATH_ROOT)/include/VBox/vmm/pdmifs.h \
|
---|
894 | $(PATH_ROOT)/include/VBox/vmm/pdmaudioifs.h \
|
---|
895 | $(PATH_ROOT)/include/VBox/vmm/pdmnetifs.h \
|
---|
896 | $(PATH_ROOT)/include/VBox/vmm/pdmserialifs.h \
|
---|
897 | $(PATH_ROOT)/include/VBox/vmm/pdmstorageifs.h \
|
---|
898 | $(PATH_ROOT)/include/VBox/vmm/iom.h \
|
---|
899 | $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
|
---|
900 | $(PATH_ROOT)/include/VBox/vmm/gim.h \
|
---|
901 | $(PATH_ROOT)/include/VBox/vmm/tm.h \
|
---|
902 | $(PATH_ROOT)/include/VBox/vmm/ssm.h \
|
---|
903 | \
|
---|
904 | $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
|
---|
905 | $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
|
---|
906 | $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
|
---|
907 | $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
|
---|
908 | $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
|
---|
909 | $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
|
---|
910 | $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
|
---|
911 | $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
|
---|
912 | $(PATH_ROOT)/src/VBox/VMM/include/NEMInternal.h \
|
---|
913 | $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
|
---|
914 | $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
|
---|
915 | $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
|
---|
916 | $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
|
---|
917 | $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
|
---|
918 | $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
|
---|
919 | $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
|
---|
920 | $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
|
---|
921 | $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
|
---|
922 | $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
|
---|
923 | \
|
---|
924 | $(PATH_ROOT)/include/VBox/vmm/vm.h \
|
---|
925 | \
|
---|
926 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
927 | $(PATH_ROOT)/include/VBox/vd.h \
|
---|
928 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
929 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
930 | $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
|
---|
931 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
932 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
933 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
934 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
935 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
936 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
937 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
938 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
939 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
940 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
941 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
942 | \
|
---|
943 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
944 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
945 | $(PATH_ROOT)/include/VBox/version.h \
|
---|
946 | \
|
---|
947 | $(PATH_ROOT)/include/VBox/com/com.h \
|
---|
948 | $(PATH_ROOT)/include/VBox/com/utils.h
|
---|
949 |
|
---|
950 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
951 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
952 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
|
---|
953 | , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
|
---|
954 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
955 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
956 | $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
|
---|
957 |
|
---|
958 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
959 | $(wildcard $(PATH_ROOT)/src/VBox/VMM/VMMAll/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR3/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR0/*.h )
|
---|
960 |
|
---|
961 |
|
---|
962 | includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
|
---|
963 |
|
---|
964 | # Generate the Doxyfile
|
---|
965 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
|
---|
966 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
|
---|
967 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
|
---|
968 | | $$(dir $$@)
|
---|
969 | $(QUIET)$(RM) -f $@ $@.tmp $@.dep
|
---|
970 | $(QUIET)$(CP) -f Doxyfile.Core $@.tmp
|
---|
971 | $(QUIET)$(APPEND) $@.tmp
|
---|
972 | $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
973 | $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
974 | $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
975 | $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
976 | $(QUIET)$(APPEND) $@.tmp "EXCLUDE = " \
|
---|
977 | "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
|
---|
978 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
|
---|
979 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
|
---|
980 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
|
---|
981 | "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
|
---|
982 | $(QUIET)$(APPEND) $@.tmp
|
---|
983 | $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
|
---|
984 | $(QUIET)$(APPEND) $@.tmp
|
---|
985 | $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
986 | $(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
987 | $(QUIET)$(APPEND) $@.tmp
|
---|
988 | $(QUIET)$(APPEND) $@.tmp "PLANTUML_JAR_PATH = $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS)/common/plantuml/v*/plantuml*.jar)))"
|
---|
989 | $(QUIET)$(APPEND) $@.tmp
|
---|
990 | $(QUIET)$(MV) -f $@.tmp $@
|
---|
991 | @$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
992 | @$(APPEND) $@.dep "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
993 |
|
---|
994 | # Do the actual job.
|
---|
995 | # Note! We must add the VBOX_JAVA dir to the path so doxygen can run plantuml.jar.
|
---|
996 | $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
|
---|
997 | | $(VBOX_CORE_DOXYFILE_OUTPUT)/
|
---|
998 | $(QUIET)$(RM) -f $@
|
---|
999 | $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
1000 | $(if-expr $(VBOX_JAVA_VERSION)+0 >= 70000, $(REDIRECT) -E "PATH=$(VBOX_JAVA_BIN_PATH)$(HOST_PATH_SEP)$(PATH)" --,) \
|
---|
1001 | doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
|
---|
1002 | $(SED) -n \
|
---|
1003 | -e ':nextwarning' \
|
---|
1004 | -e '/^ *$(DOLLAR)/d' \
|
---|
1005 | -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
|
---|
1006 | -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
|
---|
1007 | -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
|
---|
1008 | -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
|
---|
1009 | -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
|
---|
1010 | -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
|
---|
1011 | \
|
---|
1012 | -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
|
---|
1013 | \
|
---|
1014 | -e 'b end' \
|
---|
1015 | -e ':ignore' \
|
---|
1016 | -e 'n' \
|
---|
1017 | -e '/^[[:space:]]/b ignore' \
|
---|
1018 | -e '/^Possible candidates/b ignore' \
|
---|
1019 | -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
|
---|
1020 | -e 'b nextwarning' \
|
---|
1021 | -e ':end' \
|
---|
1022 | -e 'p' \
|
---|
1023 | --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
|
---|
1024 | $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
|
---|
1025 | $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
|
---|
1026 | $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
|
---|
1027 | $(APPEND) $@
|
---|
1028 |
|
---|
1029 | docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
|
---|
1030 |
|
---|
1031 | #
|
---|
1032 | # This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
|
---|
1033 | # so the build box output is less confusing on failure.
|
---|
1034 | #
|
---|
1035 | ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
|
---|
1036 | ifdef VBOX_WITH_SCM_CHECK_RUN
|
---|
1037 | docs: scm.check.run
|
---|
1038 | endif
|
---|
1039 | .PHONY: scm.check.run
|
---|
1040 | scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
|
---|
1041 | $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
|
---|
1042 | $(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
|
---|
1043 | $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
|
---|
1044 | endif
|
---|
1045 |
|
---|
1046 |
|
---|
1047 | #
|
---|
1048 | # Combined package build (windows only).
|
---|
1049 | #
|
---|
1050 | # The combined package is created by the x86 environment, so we do the amd64
|
---|
1051 | # packaging in the build phase since it's just a few very slow jobs. We hold
|
---|
1052 | # back the x86 build until the amd64 packaging starts, to try encourage
|
---|
1053 | # parallel execution.
|
---|
1054 | #
|
---|
1055 | # Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
|
---|
1056 | # packing must be done in amd64 mode as it picks files from the x86 build.
|
---|
1057 | #
|
---|
1058 |
|
---|
1059 | VBOX_COMBINED_PACKAGE_DEFS := \
|
---|
1060 | VBOX_WITH_COMBINED_PACKAGE=1 \
|
---|
1061 | VBOX_WITH_ALL_DOXYGEN_TARGETS= \
|
---|
1062 | VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
|
---|
1063 |
|
---|
1064 | combined-package-fetch:
|
---|
1065 | + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
|
---|
1066 | + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
|
---|
1067 |
|
---|
1068 | combined-package-build-amd64:
|
---|
1069 | + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
|
---|
1070 |
|
---|
1071 | combined-package-build-amd64-packing: combined-package-build-amd64
|
---|
1072 | + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
|
---|
1073 |
|
---|
1074 | combined-package-build-x86: combined-package-build-amd64
|
---|
1075 | + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
|
---|
1076 |
|
---|
1077 | combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
|
---|
1078 |
|
---|
1079 | combined-package-packing:
|
---|
1080 | + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
|
---|
1081 |
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | #
|
---|
1085 | # Common rsync bits.
|
---|
1086 | #
|
---|
1087 |
|
---|
1088 |
|
---|
1089 | ## Overridable ssh name.
|
---|
1090 | # On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
|
---|
1091 | # and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
|
---|
1092 | # termination race or something along those lines.)
|
---|
1093 | VBOX_SSH ?= ssh
|
---|
1094 | VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
|
---|
1095 |
|
---|
1096 | ## Overridable rsh name.
|
---|
1097 | VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
|
---|
1098 | VBOX_RSYNC_NOSSH ?= rsync
|
---|
1099 |
|
---|
1100 | ##
|
---|
1101 | # The basic rsync invocation for syncing the tree into a VM; the source and
|
---|
1102 | # target specs are missing.
|
---|
1103 | #
|
---|
1104 | # @param 1 os name.
|
---|
1105 | # @param 2 arch or *.
|
---|
1106 | # @param 3 nossh or empty
|
---|
1107 | #
|
---|
1108 | VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH))\
|
---|
1109 | -a -v --delete --delete-excluded --prune-empty-dirs \
|
---|
1110 | --exclude=*.pyc \
|
---|
1111 | --exclude=.svn/ \
|
---|
1112 | --exclude=doc/Devices/ \
|
---|
1113 | --exclude=doc/tg/ \
|
---|
1114 | --exclude=doc/vp/ \
|
---|
1115 | --exclude=tinderclient.log \
|
---|
1116 | --exclude=tools/FetchDir/ \
|
---|
1117 | --exclude=webtools/ \
|
---|
1118 | --exclude=out/ \
|
---|
1119 | --exclude=tools/common/plantuml/ \
|
---|
1120 | $(if-expr "$1" == "solaris",--exclude=tools/common/openwatcom/,) \
|
---|
1121 | $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
|
---|
1122 | --exclude=tools/$(os)/ \
|
---|
1123 | --exclude=tools/$(os).x86/ \
|
---|
1124 | --exclude=tools/$(os).amd64/ \
|
---|
1125 | --exclude=tools/$(os).arm64/ )
|
---|
1126 |
|
---|
1127 | #
|
---|
1128 | # VM IP addresses.
|
---|
1129 | #
|
---|
1130 | VBOX_BLD_VM_LNX_IP := 192.168.27.2
|
---|
1131 | VBOX_BLD_VM_OS2_IP := 192.168.27.3
|
---|
1132 | VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
|
---|
1133 | VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
|
---|
1134 | VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
|
---|
1135 | VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
|
---|
1136 | VBOX_BLD_VM_DARWIN_ARM64_IP := 192.168.27.25
|
---|
1137 | VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
|
---|
1138 | VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
|
---|
1139 | VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
|
---|
1140 | VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
|
---|
1141 |
|
---|
1142 | VBOX_WITH_OS2_ADD_BUILD=1
|
---|
1143 |
|
---|
1144 | #
|
---|
1145 | # For profiling the VM building steps.
|
---|
1146 | #
|
---|
1147 | if 0
|
---|
1148 | VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
|
---|
1149 | VBOX_BLD_VM_MSG_END__ =
|
---|
1150 | else
|
---|
1151 | VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
|
---|
1152 | VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
|
---|
1153 | endif
|
---|
1154 |
|
---|
1155 | #
|
---|
1156 | # For killing old build jobs in the OS/2 VM before rsyncing.
|
---|
1157 | #
|
---|
1158 | VBOX_BLD_VM_OS2_KKILL_STUFF = $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "kkill -All -Tree kmk.exe gcc.exe & sleep.exe 1 & kkill -All gcc.exe emxomfld.exe as.exe kmk.exe "
|
---|
1159 |
|
---|
1160 |
|
---|
1161 | #
|
---|
1162 | # Build the additions, all of them.
|
---|
1163 | #
|
---|
1164 | # This is currently tailored (hardcoded) for the additions
|
---|
1165 | # build box. Can make it pretty and configurable later.
|
---|
1166 | #
|
---|
1167 | # The fetching must be done in serial fashion, while the building
|
---|
1168 | # should be more flexible wrt to -jN.
|
---|
1169 | #
|
---|
1170 | additions-fetch:
|
---|
1171 | + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
|
---|
1172 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
|
---|
1173 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
|
---|
1174 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
1175 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
1176 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
1177 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
|
---|
1178 | endif
|
---|
1179 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
1180 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
1181 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
1182 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
1183 |
|
---|
1184 |
|
---|
1185 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
1186 | # built first. The windows amd64 additions need some x86 files, so don't change
|
---|
1187 | # the order of the windows builds. TODO: Split building and packing for these two VMs.
|
---|
1188 | additions-build: \
|
---|
1189 | additions-build-rsync-into-vms \
|
---|
1190 | additions-build-win.x86 \
|
---|
1191 | additions-build-win.amd64 \
|
---|
1192 | additions-build-solaris.amd64 \
|
---|
1193 | additions-build-solaris.x86 \
|
---|
1194 | additions-build-os2.x86 \
|
---|
1195 | additions-build-linux \
|
---|
1196 | additions-build-darwin.x86 \
|
---|
1197 | additions-build-darwin.amd64
|
---|
1198 |
|
---|
1199 | additions-build-rsync-into-vms: \
|
---|
1200 | additions-build-solaris.rsync-into-vm \
|
---|
1201 | additions-build-os2.rsync-into-vm \
|
---|
1202 | additions-build-darwin.x86.rsync-into-vm \
|
---|
1203 | additions-build-darwin.amd64.rsync-into-vm \
|
---|
1204 | additions-build-linux.rsync-into-vm
|
---|
1205 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
1206 | .NOTPARALLEL: additions-build-rsync-into-vms
|
---|
1207 | .PHONY: additions-build-rsync-into-vms
|
---|
1208 |
|
---|
1209 |
|
---|
1210 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
1211 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1212 |
|
---|
1213 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
1214 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1215 |
|
---|
1216 | # Automatically determine the additions build subdir name. Used for figuring
|
---|
1217 | # out directory names inside the additions building VMs.
|
---|
1218 | VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1219 |
|
---|
1220 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1221 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1222 | ifeq ($(KBUILD_TARGET),win)
|
---|
1223 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
|
---|
1224 | else
|
---|
1225 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
1226 | endif
|
---|
1227 |
|
---|
1228 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
1229 | ifeq ($(KBUILD_TARGET),win)
|
---|
1230 | additions-build-win.amd64-just-build:
|
---|
1231 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1232 | additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
|
---|
1233 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
1234 | else
|
---|
1235 | additions-build-win.amd64: additions-build-win.x86
|
---|
1236 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
|
---|
1237 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
|
---|
1238 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
|
---|
1239 | endif
|
---|
1240 |
|
---|
1241 | ifeq ($(KBUILD_TARGET),win)
|
---|
1242 | additions-build-win.x86:
|
---|
1243 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1244 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
1245 | else
|
---|
1246 | additions-build-win.x86:
|
---|
1247 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
|
---|
1248 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing '
|
---|
1249 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
|
---|
1250 | endif
|
---|
1251 |
|
---|
1252 | # ASSUMES the 64-bit edition are built first. This also serializes VM access.
|
---|
1253 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1254 | additions-build-solaris.amd64:
|
---|
1255 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1256 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
1257 |
|
---|
1258 | additions-build-solaris.x86: additions-build-solaris.amd64
|
---|
1259 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1260 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
|
---|
1261 |
|
---|
1262 | additions-build-solaris.rsync-into-vm:
|
---|
1263 | else
|
---|
1264 | additions-build-solaris.rsync-into-vm:
|
---|
1265 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
|
---|
1266 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1267 | '--exclude=src/VBox/Frontends/**' \
|
---|
1268 | '--exclude=src/VBox/VMM/**' \
|
---|
1269 | . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1270 |
|
---|
1271 | additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
|
---|
1272 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
|
---|
1273 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
|
---|
1274 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
|
---|
1275 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
|
---|
1276 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 '
|
---|
1277 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
|
---|
1278 |
|
---|
1279 | additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
|
---|
1280 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1281 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1282 |
|
---|
1283 | .NOTPARALLEL: additions-build-solaris.rsync-into-vm
|
---|
1284 | .PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
|
---|
1285 |
|
---|
1286 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
1287 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
1288 | endif
|
---|
1289 |
|
---|
1290 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
1291 | ifeq ($(KBUILD_TARGET),os2)
|
---|
1292 | additions-build-os2.x86:
|
---|
1293 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1294 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
1295 |
|
---|
1296 | additions-build-os2.rsync-into-vm:
|
---|
1297 | else
|
---|
1298 | additions-build-os2.rsync-into-vm:
|
---|
1299 | -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
|
---|
1300 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
|
---|
1301 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1302 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1303 | '--exclude=src/VBox/Frontends/**' \
|
---|
1304 | '--exclude=src/VBox/VMM/**' \
|
---|
1305 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1306 |
|
---|
1307 | additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
|
---|
1308 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
|
---|
1309 | $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
|
---|
1310 | $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
|
---|
1311 |
|
---|
1312 | additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
|
---|
1313 | -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
|
---|
1314 | $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
1315 |
|
---|
1316 | .NOTPARALLEL: additions-build-os2.rsync-into-vm
|
---|
1317 | .PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
|
---|
1318 |
|
---|
1319 | additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
|
---|
1320 | endif
|
---|
1321 | #
|
---|
1322 | else
|
---|
1323 | additions-build-os2.x86:
|
---|
1324 | # Dummy
|
---|
1325 | endif
|
---|
1326 |
|
---|
1327 | # Linux
|
---|
1328 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1329 | additions-build-linux.amd64:
|
---|
1330 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1331 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
1332 |
|
---|
1333 | additions-build-linux.x86:
|
---|
1334 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1335 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
1336 |
|
---|
1337 | additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
|
---|
1338 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1339 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
|
---|
1340 | else
|
---|
1341 | additions-build-linux.rsync-into-vm:
|
---|
1342 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
|
---|
1343 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1344 | '--exclude=src/VBox/Frontends/**' \
|
---|
1345 | '--exclude=src/VBox/VMM/**' \
|
---|
1346 | . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1347 |
|
---|
1348 | additions-build-linux.build-it: additions-build-linux.rsync-into-vm
|
---|
1349 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
1350 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
|
---|
1351 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c ubuntu-11.10-amd64 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
|
---|
1352 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
|
---|
1353 | endif
|
---|
1354 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
|
---|
1355 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
|
---|
1356 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
|
---|
1357 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
1358 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
|
---|
1359 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c ubuntu-11.10-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=x86 tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
|
---|
1360 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
|
---|
1361 | endif
|
---|
1362 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
|
---|
1363 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
|
---|
1364 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
|
---|
1365 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
|
---|
1366 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 " '
|
---|
1367 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
|
---|
1368 |
|
---|
1369 | additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
|
---|
1370 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1371 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1372 |
|
---|
1373 | .NOTPARALLEL: additions-build-linux.rsync-into-vm
|
---|
1374 | .PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
|
---|
1375 |
|
---|
1376 | additions-build-linux: additions-build-linux.rsync-out-of-vm
|
---|
1377 | endif
|
---|
1378 |
|
---|
1379 | # Darwin
|
---|
1380 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1381 | additions-build-darwin.amd64:
|
---|
1382 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1383 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
1384 |
|
---|
1385 | additions-build-darwin.x86:
|
---|
1386 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1387 | + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
1388 |
|
---|
1389 | additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
|
---|
1390 | .PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
|
---|
1391 | else
|
---|
1392 | additions-build-darwin.amd64.rsync-into-vm:
|
---|
1393 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
|
---|
1394 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
|
---|
1395 | '--exclude=src/libs/xpcom18a4/**' \
|
---|
1396 | '--exclude=src/libs/curl*/**' \
|
---|
1397 | '--exclude=src/libs/libxml*/**' \
|
---|
1398 | '--exclude=src/libs/libvpx*/**' \
|
---|
1399 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1400 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1401 | '--exclude=src/VBox/Artwork/x11/**' \
|
---|
1402 | '--include=src/VBox/Devices/' \
|
---|
1403 | '--include=src/VBox/Devices/Audio/' \
|
---|
1404 | '--include=src/VBox/Devices/Audio/**' \
|
---|
1405 | '--include=src/VBox/Devices/build/' \
|
---|
1406 | '--include=src/VBox/Devices/build/**' \
|
---|
1407 | '--exclude=src/VBox/Devices/**' \
|
---|
1408 | '--exclude=src/VBox/Disassembler/**' \
|
---|
1409 | '--exclude=src/VBox/ExtPacks/**' \
|
---|
1410 | '--exclude=src/VBox/Frontends/**' \
|
---|
1411 | '--exclude=src/VBox/HostDriver/**' \
|
---|
1412 | '--exclude=src/VBox/HostService/**' \
|
---|
1413 | '--exclude=src/VBox/ImageMounter/**' \
|
---|
1414 | '--exclude=src/VBox/Installer/win/**' \
|
---|
1415 | '--exclude=src/VBox/Main/**' \
|
---|
1416 | '--exclude=src/VBox/NetworkService/**' \
|
---|
1417 | '--exclude=src/VBox/RDP/**' \
|
---|
1418 | '--exclude=src/VBox/Storage/**' \
|
---|
1419 | '--include=src/VBox/ValidationKit/' \
|
---|
1420 | '--include=src/VBox/ValidationKit/Config.kmk' \
|
---|
1421 | '--include=src/VBox/ValidationKit/utils/' \
|
---|
1422 | '--include=src/VBox/ValidationKit/utils/audio/' \
|
---|
1423 | '--include=src/VBox/ValidationKit/utils/audio/**' \
|
---|
1424 | '--exclude=src/VBox/ValidationKit/**' \
|
---|
1425 | '--exclude=src/VBox/VMM/**' \
|
---|
1426 | '--exclude=src/apps/**' \
|
---|
1427 | '--exclude=src/recompiler/**' \
|
---|
1428 | . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1429 |
|
---|
1430 | additions-build-darwin.x86.rsync-into-vm:
|
---|
1431 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
|
---|
1432 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
|
---|
1433 | '--exclude=src/libs/xpcom18a4/**' \
|
---|
1434 | '--exclude=src/libs/curl*/**' \
|
---|
1435 | '--exclude=src/libs/libxml*/**' \
|
---|
1436 | '--exclude=src/libs/libvpx*/**' \
|
---|
1437 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1438 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1439 | '--exclude=src/VBox/Artwork/x11/**' \
|
---|
1440 | '--include=src/VBox/Devices/' \
|
---|
1441 | '--include=src/VBox/Devices/Audio/' \
|
---|
1442 | '--include=src/VBox/Devices/Audio/**' \
|
---|
1443 | '--include=src/VBox/Devices/build/' \
|
---|
1444 | '--include=src/VBox/Devices/build/**' \
|
---|
1445 | '--exclude=src/VBox/Devices/**' \
|
---|
1446 | '--exclude=src/VBox/Disassembler/**' \
|
---|
1447 | '--exclude=src/VBox/ExtPacks/**' \
|
---|
1448 | '--exclude=src/VBox/Frontends/**' \
|
---|
1449 | '--exclude=src/VBox/HostDriver/**' \
|
---|
1450 | '--exclude=src/VBox/HostService/**' \
|
---|
1451 | '--exclude=src/VBox/ImageMounter/**' \
|
---|
1452 | '--exclude=src/VBox/Installer/win/**' \
|
---|
1453 | '--exclude=src/VBox/Main/**' \
|
---|
1454 | '--exclude=src/VBox/NetworkService/**' \
|
---|
1455 | '--exclude=src/VBox/RDP/**' \
|
---|
1456 | '--exclude=src/VBox/Storage/**' \
|
---|
1457 | '--include=src/VBox/ValidationKit/' \
|
---|
1458 | '--include=src/VBox/ValidationKit/Config.kmk' \
|
---|
1459 | '--include=src/VBox/ValidationKit/utils/' \
|
---|
1460 | '--include=src/VBox/ValidationKit/utils/audio/' \
|
---|
1461 | '--include=src/VBox/ValidationKit/utils/audio/**' \
|
---|
1462 | '--exclude=src/VBox/ValidationKit/**' \
|
---|
1463 | '--exclude=src/VBox/VMM/**' \
|
---|
1464 | '--exclude=src/apps/**' \
|
---|
1465 | '--exclude=src/recompiler/**' \
|
---|
1466 | . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1467 |
|
---|
1468 | additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
|
---|
1469 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
|
---|
1470 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
|
---|
1471 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
|
---|
1472 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
|
---|
1473 |
|
---|
1474 | additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
|
---|
1475 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
|
---|
1476 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
|
---|
1477 | # no pkgbuild # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
|
---|
1478 | $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
|
---|
1479 |
|
---|
1480 | additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
|
---|
1481 | $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1482 |
|
---|
1483 | additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
|
---|
1484 | $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
|
---|
1485 |
|
---|
1486 | additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
|
---|
1487 | additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
|
---|
1488 | additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
|
---|
1489 |
|
---|
1490 | .PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
|
---|
1491 | additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
|
---|
1492 | endif
|
---|
1493 |
|
---|
1494 |
|
---|
1495 | additions-packing:
|
---|
1496 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
1497 | VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
|
---|
1498 | VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
|
---|
1499 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
1500 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
1501 | VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
|
---|
1502 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
1503 | VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
|
---|
1504 | VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
|
---|
1505 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
1506 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
1507 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
1508 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
1509 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
1510 | -C src/VBox/Additions \
|
---|
1511 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
|
---|
1512 |
|
---|
1513 | .PHONY: \
|
---|
1514 | additions-build-win.x86 \
|
---|
1515 | additions-build-win.amd64 \
|
---|
1516 | additions-build-solaris.amd64 \
|
---|
1517 | additions-build-solaris.x86 \
|
---|
1518 | additions-build-os2.x86 \
|
---|
1519 | additions-build-linux \
|
---|
1520 | additions-build-linux.amd64 \
|
---|
1521 | additions-build-linux.x86 \
|
---|
1522 | additions-build-linux.x86.combined \
|
---|
1523 | additions-build-darwin \
|
---|
1524 | additions-build-darwin.x86 \
|
---|
1525 | additions-build-darwin.amd64 \
|
---|
1526 | additions-packing
|
---|
1527 |
|
---|
1528 |
|
---|
1529 | #
|
---|
1530 | # Build the extension packs, all of them.
|
---|
1531 | #
|
---|
1532 | # This is tailored (hardcoded) for the extension pack build box.
|
---|
1533 | #
|
---|
1534 | # The fetching must be done in serial fashion, while the building should be
|
---|
1535 | # more flexible wrt to -jN.
|
---|
1536 | #
|
---|
1537 | extpacks-fetch:
|
---|
1538 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
1539 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1540 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1541 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1542 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
1543 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1544 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1545 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1546 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1547 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1548 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1549 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
|
---|
1550 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1551 | endif
|
---|
1552 |
|
---|
1553 |
|
---|
1554 | extpacks-build: \
|
---|
1555 | extpacks-build-win.amd64 \
|
---|
1556 | extpacks-build-win.x86 \
|
---|
1557 | extpacks-build-solaris.amd64 \
|
---|
1558 | extpacks-build-os2.x86 \
|
---|
1559 | extpacks-build-linux \
|
---|
1560 | extpacks-build-darwin.amd64 \
|
---|
1561 | extpacks-build-darwin.arm64 \
|
---|
1562 | extpacks-build-freebsd.amd64 \
|
---|
1563 | extpacks-build-freebsd.x86
|
---|
1564 |
|
---|
1565 | VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
|
---|
1566 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1567 |
|
---|
1568 | VBOX_EXTPACKS_BUILD.arm64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
|
---|
1569 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=arm64 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1570 |
|
---|
1571 | VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
|
---|
1572 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1573 |
|
---|
1574 | ifdef VBOX_WITH_PUEL_NLS
|
---|
1575 | VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
|
---|
1576 | else
|
---|
1577 | VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
|
---|
1578 | endif
|
---|
1579 |
|
---|
1580 | # Automatically determine the extpack build subdir name. Used for figuring out
|
---|
1581 | # directory names inside the extension pack building VMs.
|
---|
1582 | VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1583 |
|
---|
1584 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1585 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1586 | ifeq ($(KBUILD_TARGET),win)
|
---|
1587 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
|
---|
1588 | else
|
---|
1589 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
|
---|
1590 | endif
|
---|
1591 |
|
---|
1592 | extpacks-build-win.amd64:
|
---|
1593 | ifeq ($(KBUILD_TARGET),win)
|
---|
1594 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1595 | else
|
---|
1596 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
|
---|
1597 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
|
---|
1598 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
|
---|
1599 | endif
|
---|
1600 |
|
---|
1601 | extpacks-build-win.x86:
|
---|
1602 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1603 | ifeq ($(KBUILD_TARGET),win)
|
---|
1604 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1605 | else
|
---|
1606 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
|
---|
1607 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all '
|
---|
1608 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
|
---|
1609 | endif
|
---|
1610 | else
|
---|
1611 | @$(ECHO) "nothing to do for unsupported host $@"
|
---|
1612 | endif
|
---|
1613 |
|
---|
1614 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1615 | extpacks-build-solaris.amd64:
|
---|
1616 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1617 |
|
---|
1618 | else
|
---|
1619 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
1620 | extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1621 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1622 |
|
---|
1623 | extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
|
---|
1624 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
|
---|
1625 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
|
---|
1626 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
|
---|
1627 |
|
---|
1628 | extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
|
---|
1629 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1630 |
|
---|
1631 | #.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
|
---|
1632 | .PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
|
---|
1633 |
|
---|
1634 | extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
|
---|
1635 | endif
|
---|
1636 |
|
---|
1637 | extpacks-build-os2.x86:
|
---|
1638 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
1639 | # + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1640 | #else
|
---|
1641 | # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_OS2_IP) ' cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) '
|
---|
1642 | #endif
|
---|
1643 |
|
---|
1644 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1645 | extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1646 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1647 |
|
---|
1648 | extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1649 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1650 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1651 | else
|
---|
1652 | @$(ECHO) "nothing to do for unsupported host $@"
|
---|
1653 | endif
|
---|
1654 |
|
---|
1655 | extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
|
---|
1656 | else
|
---|
1657 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
1658 | extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1659 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1660 |
|
---|
1661 | extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
|
---|
1662 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
|
---|
1663 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all " '
|
---|
1664 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
|
---|
1665 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1666 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
|
---|
1667 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c debian-4.0-i386 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all " '
|
---|
1668 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
|
---|
1669 | endif
|
---|
1670 |
|
---|
1671 | extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
|
---|
1672 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1673 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1674 | endif
|
---|
1675 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1676 |
|
---|
1677 | #.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
|
---|
1678 | .PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
|
---|
1679 |
|
---|
1680 | extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
|
---|
1681 | endif
|
---|
1682 |
|
---|
1683 | extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1684 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1685 | # + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1686 | #else
|
---|
1687 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
|
---|
1688 | # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
|
---|
1689 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
|
---|
1690 | #endif
|
---|
1691 |
|
---|
1692 | extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1693 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1694 | # + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1695 | #else
|
---|
1696 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
|
---|
1697 | # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all '
|
---|
1698 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
|
---|
1699 | #endif
|
---|
1700 |
|
---|
1701 | extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1702 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1703 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1704 | else
|
---|
1705 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
|
---|
1706 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1707 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=amd64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
|
---|
1708 | $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1709 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
|
---|
1710 | endif
|
---|
1711 |
|
---|
1712 | extpacks-build-darwin.arm64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1713 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.arm64)
|
---|
1714 | + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.arm64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1715 | else
|
---|
1716 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/arm64 extension packs)
|
---|
1717 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,arm64) . $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1718 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_ARM64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=arm64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.arm64) all '
|
---|
1719 | $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.arm64 out/
|
---|
1720 | $(call VBOX_BLD_VM_MSG_END__,Darwin/arm64 extension packs)
|
---|
1721 | endif
|
---|
1722 |
|
---|
1723 | extpacks-packing:
|
---|
1724 | if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
1725 | + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
|
---|
1726 | VBOX_ONLY_EXTPACKS=1 packing
|
---|
1727 | else
|
---|
1728 | + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.arm64 linux.amd64 solaris.amd64 win.amd64" \
|
---|
1729 | VBOX_ONLY_EXTPACKS=1 packing
|
---|
1730 | endif
|
---|
1731 | # +++ freebsd.amd64 ^^^
|
---|
1732 |
|
---|
1733 | .PHONY: \
|
---|
1734 | extpacks-build-win.x86 \
|
---|
1735 | extpacks-build-win.amd64 \
|
---|
1736 | extpacks-build-solaris.amd64 \
|
---|
1737 | extpacks-build-os2.x86 \
|
---|
1738 | extpacks-build-linux \
|
---|
1739 | extpacks-build-linux.amd64 \
|
---|
1740 | extpacks-build-linux.x86 \
|
---|
1741 | extpacks-build-freebsd.amd64 \
|
---|
1742 | extpacks-build-freebsd.x86 \
|
---|
1743 | extpacks-build-darwin.amd64 \
|
---|
1744 | extpacks-packing
|
---|
1745 |
|
---|
1746 |
|
---|
1747 | #
|
---|
1748 | # Build the test suite, all of it.
|
---|
1749 | #
|
---|
1750 | # This is currently tailored (hardcoded) for the additions build box just like
|
---|
1751 | # the additions build above, which it in fact is a copy of.
|
---|
1752 | #
|
---|
1753 | validationkit-fetch:
|
---|
1754 | + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
|
---|
1755 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
|
---|
1756 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
|
---|
1757 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
|
---|
1758 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
|
---|
1759 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
|
---|
1760 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
|
---|
1761 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
|
---|
1762 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
|
---|
1763 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
|
---|
1764 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
|
---|
1765 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
|
---|
1766 |
|
---|
1767 |
|
---|
1768 | validationkit-build: \
|
---|
1769 | validationkit-build-rsync-into-vms \
|
---|
1770 | validationkit-build-solaris.amd64 \
|
---|
1771 | validationkit-build-solaris.x86 \
|
---|
1772 | validationkit-build-win.x86 \
|
---|
1773 | validationkit-build-win.amd64 \
|
---|
1774 | validationkit-build-os2.x86 \
|
---|
1775 | validationkit-build-linux \
|
---|
1776 | validationkit-build-freebsd.amd64 \
|
---|
1777 | validationkit-build-freebsd.x86 \
|
---|
1778 | validationkit-build-darwin.amd64 \
|
---|
1779 | validationkit-build-darwin.x86
|
---|
1780 |
|
---|
1781 | validationkit-build-rsync-into-vms: \
|
---|
1782 | validationkit-build-solaris.rsync-into-vm \
|
---|
1783 | validationkit-build-os2.rsync-into-vm \
|
---|
1784 | validationkit-build-linux.rsync-into-vm
|
---|
1785 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
1786 | .NOTPARALLEL: validationkit-build-rsync-into-vms
|
---|
1787 | .PHONY: validationkit-build-rsync-into-vms
|
---|
1788 |
|
---|
1789 |
|
---|
1790 | VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1791 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1792 |
|
---|
1793 | VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1794 | KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1795 |
|
---|
1796 | # Automatically determine the Validation Kit build subdir name. Used for figuring
|
---|
1797 | # out directory names inside the test suite building VMs.
|
---|
1798 | VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1799 |
|
---|
1800 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1801 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1802 | ifeq ($(KBUILD_TARGET),win)
|
---|
1803 | VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
|
---|
1804 | else
|
---|
1805 | VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
|
---|
1806 | endif
|
---|
1807 |
|
---|
1808 | validationkit-build-win.amd64:
|
---|
1809 | ifeq ($(KBUILD_TARGET),win)
|
---|
1810 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1811 | else
|
---|
1812 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
|
---|
1813 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
|
---|
1814 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
|
---|
1815 | endif
|
---|
1816 |
|
---|
1817 | validationkit-build-win.x86:
|
---|
1818 | ifeq ($(KBUILD_TARGET),win)
|
---|
1819 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1820 | else
|
---|
1821 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
|
---|
1822 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
|
---|
1823 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
|
---|
1824 | endif
|
---|
1825 |
|
---|
1826 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1827 | validationkit-build-solaris.amd64:
|
---|
1828 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1829 |
|
---|
1830 | validationkit-build-solaris.x86:
|
---|
1831 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1832 |
|
---|
1833 | else
|
---|
1834 | validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1835 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
|
---|
1836 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1837 | '--exclude=src/VBox/Frontends/**' \
|
---|
1838 | '--exclude=src/VBox/VMM/**' \
|
---|
1839 | . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1840 |
|
---|
1841 | validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
|
---|
1842 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
|
---|
1843 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
|
---|
1844 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
|
---|
1845 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
|
---|
1846 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
|
---|
1847 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
|
---|
1848 |
|
---|
1849 | validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
|
---|
1850 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1851 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1852 |
|
---|
1853 | .PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
|
---|
1854 |
|
---|
1855 | validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
|
---|
1856 | validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
|
---|
1857 | endif
|
---|
1858 |
|
---|
1859 | ifeq ($(KBUILD_TARGET),os2)
|
---|
1860 | validationkit-build-os2.x86:
|
---|
1861 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1862 | validationkit-build-os2.rsync-into-vm:
|
---|
1863 | else # !OS/2
|
---|
1864 | validationkit-build-os2.rsync-into-vm:
|
---|
1865 | -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
|
---|
1866 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
|
---|
1867 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1868 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1869 | '--exclude=src/VBox/Frontends/**' \
|
---|
1870 | '--exclude=src/VBox/VMM/**' \
|
---|
1871 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1872 |
|
---|
1873 | validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
|
---|
1874 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
|
---|
1875 | $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
|
---|
1876 | $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
|
---|
1877 |
|
---|
1878 | validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
|
---|
1879 | -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
|
---|
1880 | $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
1881 |
|
---|
1882 | .PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
|
---|
1883 |
|
---|
1884 | validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
|
---|
1885 | endif # !OS/2
|
---|
1886 |
|
---|
1887 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1888 | validationkit-build-linux.amd64:
|
---|
1889 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1890 |
|
---|
1891 | validationkit-build-linux.x86:
|
---|
1892 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1893 |
|
---|
1894 | validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
|
---|
1895 | else
|
---|
1896 | validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1897 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
|
---|
1898 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1899 | '--exclude=src/VBox/Frontends/**' \
|
---|
1900 | '--exclude=src/VBox/VMM/**' \
|
---|
1901 | . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1902 |
|
---|
1903 | validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
|
---|
1904 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
|
---|
1905 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all " '
|
---|
1906 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
|
---|
1907 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
|
---|
1908 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all " '
|
---|
1909 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
|
---|
1910 |
|
---|
1911 | validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
|
---|
1912 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1913 | $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1914 |
|
---|
1915 | .PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
|
---|
1916 |
|
---|
1917 | validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
|
---|
1918 | endif
|
---|
1919 |
|
---|
1920 | validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1921 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1922 | # + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1923 | #else
|
---|
1924 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
|
---|
1925 | # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
|
---|
1926 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
|
---|
1927 | #endif
|
---|
1928 |
|
---|
1929 | validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1930 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1931 | # + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1932 | #else
|
---|
1933 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
|
---|
1934 | # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
|
---|
1935 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
|
---|
1936 | #endif
|
---|
1937 |
|
---|
1938 | validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1939 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1940 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1941 | else
|
---|
1942 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
|
---|
1943 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1944 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
|
---|
1945 | $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1946 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
|
---|
1947 | endif
|
---|
1948 |
|
---|
1949 | validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1950 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
|
---|
1951 | + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1952 | else
|
---|
1953 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
|
---|
1954 | $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1955 | $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
|
---|
1956 | $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
|
---|
1957 | $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
|
---|
1958 | endif
|
---|
1959 |
|
---|
1960 |
|
---|
1961 | validationkit-packing:
|
---|
1962 | + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1963 | VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
|
---|
1964 | VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
|
---|
1965 | VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
|
---|
1966 | VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
|
---|
1967 | VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
|
---|
1968 | VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
|
---|
1969 | VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
|
---|
1970 | VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
|
---|
1971 | VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
|
---|
1972 | VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
|
---|
1973 | VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
|
---|
1974 | -C src/VBox/ValidationKit \
|
---|
1975 | $(PATH_OUT)/VBoxValidationKit.zip \
|
---|
1976 | $(PATH_OUT)/VBoxTestBoxScript.zip
|
---|
1977 |
|
---|
1978 | .PHONY: \
|
---|
1979 | validationkit-build-win.x86 \
|
---|
1980 | validationkit-build-win.amd64 \
|
---|
1981 | validationkit-build-solaris.amd64 \
|
---|
1982 | validationkit-build-solaris.x86 \
|
---|
1983 | validationkit-build-os2.x86 \
|
---|
1984 | validationkit-build-linux \
|
---|
1985 | validationkit-build-linux.amd64 \
|
---|
1986 | validationkit-build-linux.x86 \
|
---|
1987 | validationkit-build-freebsd.amd64 \
|
---|
1988 | validationkit-build-freebsd.x86 \
|
---|
1989 | validationkit-build-darwin.amd64 \
|
---|
1990 | validationkit-build-darwin.x86 \
|
---|
1991 | validationkit-packing
|
---|
1992 |
|
---|
1993 |
|
---|
1994 | #
|
---|
1995 | # Build the EFI firmware, all of it.
|
---|
1996 | #
|
---|
1997 | efi-fetch:
|
---|
1998 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
1999 |
|
---|
2000 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
2001 | + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
|
---|
2002 |
|
---|
2003 | efi-packing:
|
---|
2004 | + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
|
---|
2005 |
|
---|
2006 |
|
---|
2007 | #
|
---|
2008 | # Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
|
---|
2009 | # - includes kBuild
|
---|
2010 | # - must be executed on an PUEL checkout
|
---|
2011 | #
|
---|
2012 |
|
---|
2013 | # the path where to store the zip archive
|
---|
2014 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
2015 | # the root directory inside the zip archive
|
---|
2016 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
2017 | # the name of the zip archive
|
---|
2018 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
2019 | snapshot-puel:
|
---|
2020 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
2021 | @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
2022 | echo; \
|
---|
2023 | echo "Did not find RDP stuff, is this an OSE branch?"; \
|
---|
2024 | echo; \
|
---|
2025 | exit 1; \
|
---|
2026 | fi
|
---|
2027 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
2028 | echo; \
|
---|
2029 | echo "Please specify a password with PASSWORD=..."; \
|
---|
2030 | echo; \
|
---|
2031 | exit 1; \
|
---|
2032 | fi
|
---|
2033 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
2034 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
2035 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
2036 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
2037 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
2038 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
2039 | -xr!.svn \
|
---|
2040 | -i!$(ZIPROOT)/Config.kmk \
|
---|
2041 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
2042 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
2043 | -i!$(ZIPROOT)/configure \
|
---|
2044 | -i!$(ZIPROOT)/configure.vbs \
|
---|
2045 | -i!$(ZIPROOT)/doc \
|
---|
2046 | -i!$(ZIPROOT)/include \
|
---|
2047 | -i!$(ZIPROOT)/kBuild \
|
---|
2048 | -i!$(ZIPROOT)/src \
|
---|
2049 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
2050 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
2051 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
2052 | -x!$(ZIPROOT)/doc/Devices \
|
---|
2053 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
2054 | -x!$(ZIPROOT)/doc/VMM \
|
---|
2055 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
2056 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
2057 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
2058 | -x!$(ZIPROOT)/src/tests \
|
---|
2059 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
2060 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
2061 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
2062 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
2063 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
2064 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
2065 | $(ZIPPATH)/$(ZIPNAME))
|
---|
2066 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
2067 |
|
---|
2068 |
|
---|
2069 | #
|
---|
2070 | # Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
|
---|
2071 | # - includes kBuild
|
---|
2072 | #
|
---|
2073 |
|
---|
2074 | snapshot-ose:
|
---|
2075 | ifndef VBOX_OSE
|
---|
2076 | $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
|
---|
2077 | $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
|
---|
2078 | $(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
|
---|
2079 | $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
|
---|
2080 | $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
|
---|
2081 | $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
|
---|
2082 | else
|
---|
2083 | $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
|
---|
2084 | $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
|
---|
2085 | $(REDIRECT) -C $(PATH_ROOT) -- \
|
---|
2086 | $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
|
---|
2087 | endif
|
---|
2088 |
|
---|
2089 |
|
---|
2090 | #
|
---|
2091 | # Generate ALL the rules.
|
---|
2092 | #
|
---|
2093 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
2094 |
|
---|
2095 |
|
---|
2096 | #
|
---|
2097 | # Generate x86.mac and err.mac.
|
---|
2098 | #
|
---|
2099 | incs:
|
---|
2100 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
2101 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
2102 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
2103 | $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
|
---|
2104 | $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
|
---|
2105 | $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
|
---|
2106 | $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
|
---|
2107 | $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
|
---|
2108 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
2109 | $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
|
---|
2110 |
|
---|
2111 |
|
---|
2112 | #
|
---|
2113 | # Legacy.
|
---|
2114 | #
|
---|
2115 | vslick.h:
|
---|
2116 | $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
|
---|
2117 | exit 1
|
---|
2118 |
|
---|
2119 |
|
---|
2120 | #
|
---|
2121 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
2122 | #
|
---|
2123 | up update up2 update2::
|
---|
2124 | ifndef VBOX_OSE
|
---|
2125 | +$(MAKE) -C tools fetch
|
---|
2126 | else
|
---|
2127 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
2128 | endif
|
---|
2129 |
|
---|
2130 |
|
---|
2131 | #
|
---|
2132 | # Aliases for building the SDK.
|
---|
2133 | #
|
---|
2134 | .NOTPARALLEL: sdk sdk-fetch
|
---|
2135 | sdk:
|
---|
2136 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
2137 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
2138 |
|
---|
2139 | sdk-fetch:
|
---|
2140 | + $(KMK) VBOX_ONLY_SDK=1 -C tools
|
---|
2141 |
|
---|
2142 |
|
---|
2143 | #
|
---|
2144 | # Build the essentials to run a VM. Incomplete. Use with care!
|
---|
2145 | #
|
---|
2146 | quick: \
|
---|
2147 | VBoxRT \
|
---|
2148 | VBoxVMM \
|
---|
2149 | VMMR0 \
|
---|
2150 | VBoxDD \
|
---|
2151 | VBoxDDR0 \
|
---|
2152 | VBoxDD2 \
|
---|
2153 | VBoxDD2R0 \
|
---|
2154 | VBoxC \
|
---|
2155 | VBoxSVC \
|
---|
2156 | $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
|
---|
2157 | $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
|
---|
2158 | $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
|
---|
2159 | $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
|
---|