VirtualBox

source: vbox/trunk/Makefile.kmk@ 83264

Last change on this file since 83264 was 83033, checked in by vboxsync, 5 years ago

/Config.kmk,/Makefile.kmk,Installer/darwin,FE/QT,SUPHard: Eliminated the symlinks under Resources/VirtualBoxVM.app to avoid confusing codesign and notarization. bugref:9466
Note! Best to do a clean build on mac (or at a minimum rm -Rf out/darwin.amd64/*/dist/VirtualBox.app/Contents/Frameworks/ out/darwin.amd64/*/dist/VirtualBox.app/Contents/plugins/).

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