VirtualBox

source: vbox/trunk/Makefile.kmk@ 80759

Last change on this file since 80759 was 80009, checked in by vboxsync, 5 years ago

VMM: Kicking out raw-mode (work in progress). bugref:9517

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

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