VirtualBox

source: vbox/trunk/Makefile.kmk@ 88349

Last change on this file since 88349 was 88349, checked in by vboxsync, 4 years ago

Makefile.kmk: bugref:9532: Linux: Resolving library name conflicts for hardened build when Qt tool contains .debug files as well.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette