VirtualBox

source: vbox/trunk/Makefile.kmk@ 84044

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

/Makefile.kmk,/Config.kmk: Code for re-signing installing the VCC141 DLLs.

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

© 2023 Oracle
ContactPrivacy policyTerms of Use