VirtualBox

source: vbox/trunk/Makefile.kmk@ 56346

Last change on this file since 56346 was 56346, checked in by vboxsync, 9 years ago

build fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 74.5 KB
Line 
1# $Id: Makefile.kmk 56346 2015-06-10 23:11:44Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2015 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 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
28 endif
29 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
30endif
31
32#
33# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
34# from the build server), and it's not really worth the effort of dragging in
35#q this tool only if absolutely needed.
36#
37## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
38include $(KBUILD_PATH)/tools/ZIP.kmk
39ifndef TOOL_ZIP_PACK
40 TOOL_ZIP_PACK = zip
41endif
42
43
44## @todo split up this file!
45
46
47#
48# Clean up global stuff that Config.kmk generates.
49#
50OTHER_CLEAN += \
51 $(VBOX_PACKAGE_HEADER) \
52 $(VBOX_LICENSE_VER_KMK) \
53 $(VBOX_VERSION_MK) \
54 $(VBOX_VERSION_HEADER) \
55 $(VBOX_VERSION_STAMP) \
56 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
57 $(VBOX_SVN_REV_KMK).ts \
58 $(VBOX_SVN_REV_KMK) \
59 $(PATH_OUT)/DynamicConfig.kmk
60
61
62if !defined(VBOX_ONLY_ADDITIONS) \
63 && !defined(VBOX_ONLY_DOCS) \
64 && !defined(VBOX_ONLY_EXTPACKS) \
65 && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
66
67 if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
68 #
69 # Install the license (and misc non-executable stuff).
70 #
71 INSTALLS += InstallLicenseFiles
72 InstallLicenseFiles_INST = $(INST_BIN)
73 InstallLicenseFiles_MODE = 0644
74 InstallLicenseFiles_SOURCES =
75 InstallLicenseFiles_SOURCES += \
76 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
77 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
78 endif
79
80
81#
82# Install external binaries (mostly redistributable parts of tools we use).
83#
84# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
85# and .linux property suffixes.
86#
87INSTALLS += InstallExternalLibs
88
89InstallExternalLibs_INST = $(INST_BIN)
90
91# The SDL DLLs
92if1of ($(KBUILD_TARGET), win os2)
93 ifdef VBOX_WITH_VBOXSDL
94 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
95 InstallExternalLibs_SOURCES += \
96 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
97 ifdef VBOX_WITH_SECURELABEL
98 InstallExternalLibs_SOURCES += \
99 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
100 endif
101 ifeq ($(KBUILD_TARGET),os2)
102 InstallExternalLibs_SOURCES += \
103 $(DLL_SDK_LIBSDL_FSLIB)
104 endif
105 endif
106endif
107
108
109# The compiler runtime DLLs.
110ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
111 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
112 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
113 VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
114 VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/Microsoft.VC100.CRT
115 VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/Microsoft.VC100.DebugCRT
116 VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/Microsoft.VC100.CRT
117 VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/Microsoft.VC100.DebugCRT
118
119 InstallExternalLibs_SOURCES += \
120 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
121 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
122 $(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 \
123 $(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
124 ifdef VBOX_WITH_32_ON_64_MAIN_API
125 InstallExternalLibs_SOURCES += \
126 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
127 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
128 endif
129 ifeq ($(VBOX_VCC_CRT_TYPE),d)
130 InstallExternalLibs_SOURCES += \
131 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
132 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
133 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
134 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
135 ifdef VBOX_WITH_32_ON_64_MAIN_API
136 InstallExternalLibs_SOURCES += \
137 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
138 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
139 endif
140 endif
141endif
142
143#
144# Install our Qt DLLs / Shared Objects / Frameworks.
145# Note: The installer fixes the darwin .dylibs when hardening is enabled.
146# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
147# https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
148# the Info.plist file goes into Resources.
149#
150ifeq ($(KBUILD_TARGET),darwin)
151 include $(KBUILD_PATH)/units/qt4.kmk
152 INSTALLS += qt4-bin
153 qt4-bin_MODE = 755
154 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
155 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
156 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
157 $(PATH_SDK_QT4_LIB)/$(qtmod).framework/Contents/Info.plist=>Frameworks/$(qtmod).framework/Versions/4/Resources/Info.plist \
158 )
159 ifdef VBOX_WITH_COCOA_QT
160 qt4-bin_SOURCES += \
161 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
162 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
163 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
164 endif
165 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
166 qt4-bin_SOURCES += \
167 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
168 endif
169 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
170 ,Frameworks/$(qtmod).framework/Versions/Current=>4 \
171 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod) \
172 Frameworks/$(qtmod).framework/Resources=>Versions/4/Resources)
173else
174 if defined(VBOX_WITH_QT4_SUN) || defined(VBOX_WITH_QT4_PAYLOAD)
175 include $(KBUILD_PATH)/units/qt4.kmk
176 ifeq ($(KBUILD_TARGET),win)
177 INSTALLS += qt4-bin
178 qt4-bin_MODE = 755
179 qt4-bin_INST = $(INST_BIN)
180 qt4-bin_SOURCES = \
181 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt4-bin,$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL))) \
182 $(call VBOX_RE_SIGN_DLL_FN,qt4-bin,$(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL))=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
183 ifdef VBOX_WITH_QT_PDBS
184 qt4-bin_SOURCES += \
185 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4.pdb) \
186 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.pdb=>accessible/qtaccessiblewidgets4.pdb
187 endif
188 else
189 INSTALLS += qt4-bin
190 qt4-bin_MODE = 755
191 qt4-bin_INST = $(INST_BIN)
192 qt4-bin_SOURCES = \
193 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
194 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
195 endif
196 endif # VBOX_WITH_QT4_SUN
197endif
198
199
200#
201# For building the combined package, just get the additions .ISO
202# once for amd64 to prevent version inconsistences. In all other
203# cases we get the .ISO per target architecture.
204#
205ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
206 ifdef VBOX_WITH_COMBINED_PACKAGE
207 ifeq ($(KBUILD_TARGET_ARCH),amd64)
208 INSTALLS += buildserver-additions
209 endif
210 else
211 INSTALLS += buildserver-additions
212 endif
213
214#
215# Install additions iso from the build server.
216# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
217# been added to kBuild.
218#
219buildserver-additions_INST = $(INST_ADDITIONS_ISO)
220buildserver-additions_MODE = 0644
221buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
222buildserver-additions_CLEANS = \
223 $(buildserver-additions_0_OUTDIR)/unpacked.ts \
224 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
225 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
226 $(PATH_TARGET)/VBoxGuestAdditions.iso
227
228$$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
229 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
230 $(call MSG_L1,Unpacking additions archive)
231 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
232 $(APPEND) -t $@ "done"
233
234$$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
235 $(RM) -f $@ $@.tmp
236 ifneq ($(KBUILD_HOST),win)
237 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $@.tmp
238 else
239 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
240 endif
241 $(CP) -f $@.tmp $@
242 $(RM) -f $@.tmp
243
244 ifeq ($(KBUILD_HOST),win)
245buildserver-additions-affinity-hack:
246 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp
247 endif
248endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
249
250
251#
252# Install documentation files (at the moment the .chm) from the build server.
253#
254ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
255## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
256INSTALLS += buildserver-docs
257buildserver-docs_INST = $(INST_BIN)
258buildserver-docs_MODE = 0644
259buildserver-docs_SOURCES = \
260 $(addprefix $(PATH_TARGET)/, \
261 VirtualBox.chm UserManual.pdf \
262 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
263buildserver-docs_CLEANS = \
264 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
265 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
266 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
267 $(addprefix $(PATH_TARGET)/, \
268 VirtualBox.chm UserManual.pdf \
269 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
270
271$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
272$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
273 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
274 $(call MSG_L1,Unpacking documentation)
275 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
276 $(APPEND) -t $@ "done"
277
278$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
279 $(RM) -f $@ $@.tmp
280 ifneq ($(KBUILD_HOST),win)
281 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
282 else
283 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
284 endif
285 $(CP) -f $@.tmp $@
286 $(RM) -f $@.tmp
287## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
288
289 ifeq ($(KBUILD_HOST),win)
290buildserver-documentation-affinity-hack:
291 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
292 endif
293endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
294
295
296 ifdef VBOX_WITH_EFI
297 #
298 # Install EFI firmware image
299 #
300 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
301 #
302 # Either from the build server.
303 #
304 INSTALLS += buildserver-efifw
305 buildserver-efifw_INST = $(INST_BIN)
306 buildserver-efifw_MODE = 0644
307 buildserver-efifw_SOURCES = \
308 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
309 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
310 buildserver-efifw_CLEANS = \
311 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
312 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
313 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
314 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
315 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
316 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
317 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
318
319 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
320 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
321 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd: \
322 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
323 $(call MSG_L1,Unpacking EFI firmware)
324 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
325 $(TEST_EXT) -f "$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd" -- $(MV_EXT) -f -- "$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd" "$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd"
326 $(TEST_EXT) -f "$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd" -- $(MV_EXT) -f -- "$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd" "$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd"
327 $(APPEND) -t $@ "done"
328
329 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
330 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
331 $(RM) -f $@ $@.tmp
332 ifneq ($(KBUILD_HOST),win)
333 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $@.tmp
334 else
335 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
336 endif
337 $(CP) -f $@.tmp $@
338 $(RM) -f $@.tmp
339## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
340
341 ifeq ($(KBUILD_HOST),win)
342 buildserver-efifw-affinity-hack:
343 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
344 endif
345 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
346 #
347 # Or from the local copy
348 #
349 INSTALLS += local-efifw
350 local-efifw_INST = $(INST_BIN)
351 local-efifw_MODE = 0644
352 local-efifw_SOURCES = \
353 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
354 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
355 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
356 endif # VBOX_WITH_EFI
357
358
359ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
360#
361# Get the extension pack from from the build server to facility the automatic
362# testing (everything in one tarball (VBoxAll-*)).
363#
364# Note! Using the plural here as we might be downloading more packages eventually.
365#
366INSTALLS += buildserver-extpacks
367buildserver-extpacks_INST = $(INST_DIST)
368buildserver-extpacks_MODE = 0644
369buildserver-extpacks_SOURCES = \
370 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
371buildserver-extpacks_CLEANS = \
372 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
373 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
374
375$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
376 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
377 $(RM) -f -- "$@.tmp" "$@"
378 $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING)"
379 $(MV) -f -- "$@.tmp" "$@"
380
381endif
382
383
384#
385# Install staged binaries on platforms where we can't cross
386# compile things.
387#
388ifn1of ($(KBUILD_TARGET), linux win)
389 VBOX_PATH_STAGED ?= .
390
391 # Additions.
392 ifndef VBOX_WITH_LINUX_ADDITIONS
393 ifndef VBOX_WITH_WIN32_ADDITIONS
394 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
395 INSTALLS += staged-additions
396 staged-additions_INST = $(INST_ADDITIONS_ISO)
397 staged-additions_MODE = 0644
398 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
399 endif
400 endif
401 endif
402
403 # guesttool.exe
404 ifndef VBOX_WITH_WIN32_ADDITIONS
405 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
406 INSTALLS += staged-guesttool
407 staged-guesttool_INST = $(INST_BIN)
408 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
409 endif
410 endif
411
412endif
413
414endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
415
416
417ifdef VBOX_ONLY_DOCS
418# It may sound a bit odd, but for preparing the documentation package the
419# doxygen documentation isn't needed and increases the build time a lot.
420docs:
421else # !VBOX_ONLY_DOCS
422#
423# Generate documentation.
424# (This should be converted into a separate pass or merged with an existing one later.)
425#
426 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
427docs: docs.Core
428 endif
429endif # !VBOX_ONLY_DOCS
430
431docs.Core docs.core: $(PATH_TARGET)/docs.Core
432
433
434
435#
436# The core (VMM+REM+Devices+Main) documentation.
437#
438# This includes so much because we wish to have the complete CFGM
439# and GCFGM lists.
440#
441OTHER_CLEAN += \
442 $(PATH_TARGET)/Doxyfile.Core \
443 $(PATH_TARGET)/Doxyfile.Core.dep
444
445VBOX_CORE_DOXYFILE_INPUT_DIRS = \
446 include/iprt \
447 include/iprt/cpp \
448 include/iprt/linux \
449 include/VBox \
450 include/VBox/vmm \
451 include/VBox/com \
452 include/VBox/ExtPack \
453 include/VBox/HostServices \
454 include/VBox/GuestHost \
455 include/VBox/HGSMI \
456 src/VBox/VMM \
457 src/VBox/VMM/VMMR0 \
458 src/VBox/VMM/VMMRC \
459 src/VBox/VMM/VMMR3 \
460 src/VBox/VMM/VMMAll \
461 src/VBox/VMM/VMMSwitcher \
462 src/VBox/Debugger \
463 src/VBox/Devices \
464 src/VBox/Devices/Audio \
465 src/VBox/Devices/Bus \
466 src/VBox/Devices/Graphics \
467 src/VBox/Devices/Graphics/BIOS \
468 src/VBox/Devices/Input \
469 src/VBox/Devices/Networking \
470 src/VBox/Devices/PC \
471 src/VBox/Devices/PC/BIOS \
472 src/VBox/Devices/Parallel \
473 src/VBox/Devices/Serial \
474 src/VBox/Devices/Storage \
475 src/VBox/Devices/USB \
476 src/VBox/Devices/USB/darwin \
477 src/VBox/Devices/USB/linux \
478 src/VBox/Devices/USB/os2 \
479 src/VBox/Devices/USB/solaris \
480 src/VBox/Devices/USB/vrdp \
481 src/VBox/Devices/USB/win32 \
482 src/VBox/Devices/VMMDev \
483 src/VBox/Main/include \
484 src/VBox/Main/include/hgcm \
485 src/VBox/Main \
486 src/VBox/Main/glue \
487 src/VBox/Main/webservice \
488 src/VBox/Main/xml \
489 src/VBox/Main/src-all \
490 src/VBox/Main/src-all/win \
491 src/VBox/Main/src-client \
492 src/VBox/Main/src-client/win \
493 src/VBox/Main/src-client/xpcom \
494 src/VBox/Main/src-server \
495 src/VBox/Main/src-server/darwin \
496 src/VBox/Main/src-server/linux \
497 src/VBox/Main/src-server/os2 \
498 src/VBox/Main/src-server/solaris \
499 src/VBox/Main/src-server/win \
500 src/VBox/Main/src-server/xpcom \
501 src/VBox/HostServices \
502 src/VBox/HostServices/DragAndDrop \
503 src/VBox/HostServices/GuestControl \
504 src/VBox/HostServices/GuestProperties \
505 src/VBox/HostServices/SharedClipboard \
506 src/VBox/HostServices/SharedFolders \
507 src/VBox/HostServices/SharedOpenGL \
508 src/VBox/HostServices/SharedOpenGL/crserver \
509 src/VBox/HostServices/SharedOpenGL/crserverlib \
510 src/VBox/HostServices/SharedOpenGL/render \
511 src/VBox/HostServices/SharedOpenGL/unpacker \
512 src/VBox/HostServices/auth \
513 src/VBox/HostServices/auth/directoryservice \
514 src/VBox/HostServices/auth/pam \
515 src/VBox/HostServices/auth/simple \
516 src/VBox/HostServices/auth/winlogon \
517 src/VBox/HostDrivers/Support \
518 src/VBox/HostDrivers/Support/darwin \
519 src/VBox/HostDrivers/Support/freebsd \
520 src/VBox/HostDrivers/Support/linux \
521 src/VBox/HostDrivers/Support/os2 \
522 src/VBox/HostDrivers/Support/solaris \
523 src/VBox/HostDrivers/Support/win \
524 src/VBox/HostDrivers/VBoxNetFlt \
525 src/VBox/HostDrivers/VBoxNetFlt/darwin \
526 src/VBox/HostDrivers/VBoxNetFlt/linux \
527 src/VBox/HostDrivers/VBoxNetFlt/solaris \
528 src/VBox/HostDrivers/VBoxNetFlt/win \
529 src/VBox/HostDrivers/VBoxNetNat \
530 src/VBox/HostDrivers/VBoxNetNat/darwin \
531 src/VBox/HostDrivers/VBoxNetNat/linux \
532 src/VBox/HostDrivers/VBoxNetNat/solaris \
533 src/VBox/HostDrivers/VBoxNetNat/win \
534 src/VBox/HostDrivers/VBoxNetAdp \
535 src/VBox/HostDrivers/VBoxNetAdp/darwin \
536 src/VBox/HostDrivers/VBoxNetAdp/linux \
537 src/VBox/HostDrivers/VBoxNetAdp/solaris \
538 src/VBox/HostDrivers/VBoxNetAdp/win \
539 src/VBox/HostDrivers/VBoxPci \
540 src/VBox/HostDrivers/VBoxPci/darwin \
541 src/VBox/HostDrivers/VBoxPci/linux \
542 src/VBox/HostDrivers/VBoxPci/solaris \
543 src/VBox/HostDrivers/VBoxPci/win \
544 src/VBox/HostDrivers/VBoxUSB \
545 src/VBox/HostDrivers/VBoxUSB/darwin \
546 src/VBox/HostDrivers/VBoxUSB/os2 \
547 src/VBox/HostDrivers/VBoxUSB/solaris \
548 src/VBox/HostDrivers/VBoxUSB/win \
549 src/VBox/HostDrivers/VBoxUSB/win/Device \
550 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
551 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
552 src/VBox/HostDrivers/VBoxUSB/win/Filter \
553 src/VBox/HostDrivers/VBoxUSB/win/Install \
554 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
555 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
556 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
557 src/VBox/HostDrivers/VBoxUSB/win/usbd \
558 src/VBox/Additions \
559 src/VBox/Additions/WINNT \
560 src/VBox/Additions/WINNT/Graphics \
561 src/VBox/Additions/WINNT/Graphics/Video \
562 src/VBox/Additions/WINNT/Graphics/Video/common \
563 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
564 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
565 src/VBox/Additions/WINNT/Graphics/Video/disp \
566 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
567 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
568 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
569 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
570 src/VBox/Additions/WINNT/Graphics/Video/mp \
571 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
572 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
573 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
574 src/VBox/Additions/WINNT/Graphics/Wine_new \
575 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
576 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
577 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
578 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
579 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
580 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub \
581 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include \
582 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include/backup \
583 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include/wine \
584 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
585 src/VBox/Additions/WINNT/Installer \
586 src/VBox/Additions/WINNT/Installer/ISO \
587 src/VBox/Additions/WINNT/Installer/InstallHelper \
588 src/VBox/Additions/WINNT/Installer/Languages \
589 src/VBox/Additions/WINNT/Installer/Loader \
590 src/VBox/Additions/WINNT/Mouse \
591 src/VBox/Additions/WINNT/Mouse/NT5 \
592 src/VBox/Additions/WINNT/Mouse/common \
593 src/VBox/Additions/WINNT/SharedFolders \
594 src/VBox/Additions/WINNT/SharedFolders/redirector \
595 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
596 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
597 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
598 src/VBox/Additions/WINNT/VBoxCredProv \
599 src/VBox/Additions/WINNT/VBoxGINA \
600 src/VBox/Additions/WINNT/VBoxHook \
601 src/VBox/Additions/WINNT/VBoxTray \
602 src/VBox/Additions/WINNT/VBoxUSB \
603 src/VBox/Additions/WINNT/i8042prt \
604 src/VBox/Additions/WINNT/i8042prt/i386 \
605 src/VBox/Additions/WINNT/i8042prt/include \
606 src/VBox/Additions/WINNT/include \
607 src/VBox/Additions/common \
608 src/VBox/Additions/common/VBoxControl \
609 src/VBox/Additions/common/VBoxGuest \
610 src/VBox/Additions/common/VBoxGuest/freebsd \
611 src/VBox/Additions/common/VBoxGuest/linux \
612 src/VBox/Additions/common/VBoxGuest/win \
613 src/VBox/Additions/common/VBoxGuestLib \
614 src/VBox/Additions/common/VBoxService \
615 src/VBox/Additions/common/VBoxVideo \
616 src/VBox/Additions/common/crOpenGL \
617 src/VBox/Additions/common/crOpenGL/array \
618 src/VBox/Additions/common/crOpenGL/feedback \
619 src/VBox/Additions/common/crOpenGL/pack \
620 src/VBox/Additions/common/crOpenGL/passthrough \
621 src/VBox/Additions/common/pam \
622 src/VBox/Additions/darwin \
623 src/VBox/Additions/freebsd \
624 src/VBox/Additions/freebsd/Installer \
625 src/VBox/Additions/freebsd/drm \
626 src/VBox/Additions/freebsd/vboxvfs \
627 src/VBox/Additions/linux \
628 src/VBox/Additions/linux/drm \
629 src/VBox/Additions/linux/installer \
630 src/VBox/Additions/linux/selinux-fedora \
631 src/VBox/Additions/linux/sharedfolders \
632 src/VBox/Additions/os2 \
633 src/VBox/Additions/os2/VBoxGradd \
634 src/VBox/Additions/os2/VBoxGradd/graddlib \
635 src/VBox/Additions/os2/VBoxGrext \
636 src/VBox/Additions/os2/VBoxMouse \
637 src/VBox/Additions/os2/VBoxSF \
638 src/VBox/Additions/solaris \
639 src/VBox/Additions/solaris/DRM \
640 src/VBox/Additions/solaris/DRM/include \
641 src/VBox/Additions/solaris/Installer \
642 src/VBox/Additions/solaris/SharedFolders \
643 src/VBox/Additions/solaris/SharedFolders/solaris10 \
644 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
645 src/VBox/Additions/solaris/Virtio \
646 src/VBox/Additions/x11 \
647 src/VBox/Additions/x11/Installer \
648 src/VBox/Additions/x11/VBoxClient \
649 src/VBox/Additions/x11/vboxmouse \
650 src/VBox/Additions/x11/vboxmouse/xorg70 \
651 src/VBox/Additions/x11/vboxmouse/xorg71 \
652 src/VBox/Additions/x11/vboxvideo \
653 src/VBox/NetworkServices \
654 src/VBox/NetworkServices/DHCP \
655 src/VBox/NetworkServices/NAT \
656 src/VBox/NetworkServices/NetLib \
657 src/VBox/Storage
658
659# These must come first in order to make things look nice.
660VBOX_CORE_DOXYFILE_INPUT_FIRST =\
661 $(PATH_ROOT)/doc/VBox-doc.c \
662 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
663 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
664 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
665 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
666 $(PATH_ROOT)/include/VBox/cdefs.h \
667 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
668 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
669 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
670 $(PATH_ROOT)/include/VBox/vmm/mm.h \
671 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
672 $(PATH_ROOT)/include/VBox/vmm/selm.h \
673 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
674 $(PATH_ROOT)/include/VBox/vmm/patm.h \
675 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
676 $(PATH_ROOT)/include/VBox/vmm/stam.h \
677 $(PATH_ROOT)/include/VBox/vmm/em.h \
678 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
679 $(PATH_ROOT)/include/VBox/vmm/rem.h \
680 $(PATH_ROOT)/include/VBox/vmm/iom.h \
681 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
682 $(PATH_ROOT)/include/VBox/vmm/tm.h \
683 $(PATH_ROOT)/include/VBox/vmm/csam.h \
684 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
685 $(PATH_ROOT)/include/VBox/vmm/hm.h \
686 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
687 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
688 \
689 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
690 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
691 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
692 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
693 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
694 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
695 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
696 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
697 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
698 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
699 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
700 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
701 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
702 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
703 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
704 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
705 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
706 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
707 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
708 \
709 $(PATH_ROOT)/include/VBox/vmm/vm.h \
710 \
711 $(PATH_ROOT)/include/VBox/sup.h \
712 $(PATH_ROOT)/include/VBox/vd.h \
713 $(PATH_ROOT)/include/VBox/types.h \
714 $(PATH_ROOT)/include/VBox/err.h \
715 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
716 $(PATH_ROOT)/include/VBox/dbggui.h \
717 $(PATH_ROOT)/include/VBox/dis.h \
718 $(PATH_ROOT)/include/VBox/disopcode.h \
719 $(PATH_ROOT)/include/VBox/intnet.h \
720 $(PATH_ROOT)/include/VBox/settings.h \
721 $(PATH_ROOT)/include/VBox/pci.h \
722 $(PATH_ROOT)/include/VBox/scsi.h \
723 $(PATH_ROOT)/include/VBox/shflsvc.h \
724 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
725 $(PATH_ROOT)/include/VBox/usb.h \
726 $(PATH_ROOT)/include/VBox/vusb.h \
727 \
728 $(PATH_ROOT)/include/VBox/log.h \
729 $(PATH_ROOT)/include/VBox/param.h \
730 $(PATH_ROOT)/include/VBox/version.h
731
732VBOX_CORE_DOXYFILE_INPUT := \
733 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
734 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
735VBOX_CORE_DOXYFILE_INPUT := \
736 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
737 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
738
739# And some some additional stuff.
740VBOX_CORE_DOXYFILE_INPUT += \
741 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
742 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
743
744
745VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
746BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
747
748-include $(PATH_TARGET)/Doxyfile.Core.dep
749
750# Generate the Doxyfile
751$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
752 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
753 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
754 | $$(dir $$@)
755 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
756 $(CP) -f Doxyfile.Core $@.tmp
757 $(APPEND) $@.tmp
758 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
759 $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
760 $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
761 $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
762 $(APPEND) $@.tmp
763 $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
764 $(APPEND) $@.tmp
765 $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
766 $(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
767 $(APPEND) $@.tmp
768 $(MV) -f $@.tmp $@
769 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
770 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
771
772# Do the actual job.
773$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
774 $(RM) -f $(PATH_TARGET)/docs.Core
775 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
776 doxygen $(PATH_TARGET)/Doxyfile.Core
777 $(APPEND) $(PATH_TARGET)/docs.Core
778
779
780#
781# Alias for kmk_time. Used by both the additions and validation kit build setups.
782#
783VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
784
785#
786# Common rsync bits.
787#
788
789##
790# The basic rsync invocation for syncing the tree into a VM; the source and
791# target specs are missing.
792#
793# @param 1 os name.
794# @param 2 arch or *.
795#
796VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
797 --exclude=*.pyc \
798 --exclude=.svn/ \
799 --exclude=doc/Devices/ \
800 --exclude=doc/tg/ \
801 --exclude=doc/vp/ \
802 --exclude=tinderclient.log \
803 --exclude=tools/FetchDir/ \
804 --exclude=webtools/ \
805 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
806 --exclude=tools/$(os).x86/ \
807 --exclude=tools/$(os).amd64/ \
808 --exclude=out/$(os).amd64/ \
809 --exclude=out/$(os).x86/ \
810 ,$(select \
811 "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
812 "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
813 ))
814
815#
816# VM IP addresses.
817#
818VBOX_BLD_VM_LNX_IP := 192.168.27.2
819VBOX_BLD_VM_OS2_IP := 192.168.27.3
820VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
821VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
822VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
823VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
824VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
825VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
826VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
827
828VBOX_WITH_OS2_ADD_BUILD=1
829
830#
831# For profiling the VM building steps.
832#
833if 0
834 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
835 VBOX_BLD_VM_MSG_END__ =
836else
837 VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Start building $1.
838 VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
839endif
840
841#
842# Build the additions, all of them.
843#
844# This is currently tailored (hardcoded) for the additions
845# build box. Can make it pretty and configurable later.
846#
847# The fetching must be done in serial fashion, while the building
848# should be more flexible wrt to -jN.
849#
850additions-fetch:
851 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
852 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
853 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
854ifdef VBOX_WITH_OS2_ADD_BUILD
855 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
856endif
857 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
858 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
859 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
860 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
861
862
863## @todo Currently combined solaris additions building assumes that amd64 is
864# built first. The windows amd64 additions need some x86 files, so don't change
865# the order of the windows builds. TODO: Split building and packing for these two VMs.
866additions-build: \
867 additions-build-rsync-into-vms \
868 additions-build-win.x86 \
869 additions-build-win.amd64 \
870 additions-build-solaris.amd64 \
871 additions-build-solaris.x86 \
872 additions-build-os2.x86 \
873 additions-build-linux
874
875additions-build-rsync-into-vms: \
876 additions-build-solaris.rsync-into-vm \
877 additions-build-os2.rsync-into-vm \
878 additions-build-linux.rsync-into-vm
879 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
880.NOTPARALLEL: additions-build-rsync-into-vms
881.PHONY: additions-build-rsync-into-vms
882
883
884VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
885 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
886 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
887 VBOX_SVN_REV=$(VBOX_SVN_REV)
888
889VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
890 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
891 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
892 VBOX_SVN_REV=$(VBOX_SVN_REV)
893
894# Automatically determine the additions build subdir name. Used for figuring
895# out directory names inside the additions building VMs.
896VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
897
898# When building in parallel on a Windows host, make sure we finish the host
899# bit before kicking off any UNIX guest or we'll run into file sharing issues.
900ifeq ($(KBUILD_TARGET),win)
901VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
902else
903VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
904endif
905
906# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
907additions-build-win.amd64: additions-build-win.x86
908ifeq ($(KBUILD_TARGET),win)
909 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
910 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
911else
912 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
913 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing "
914 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
915endif
916
917additions-build-win.x86:
918ifeq ($(KBUILD_TARGET),win)
919 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
920 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
921else
922 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
923 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
924 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
925endif
926
927# ASSUMES the 64-bit edition are built first. This also serializes VM access.
928ifeq ($(KBUILD_TARGET),solaris)
929additions-build-solaris.amd64:
930 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
931 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
932
933additions-build-solaris.x86: additions-build-solaris.amd64
934 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
935 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
936
937additions-build-solaris.rsync-into-vm:
938else
939additions-build-solaris.rsync-into-vm:
940 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
941 '--exclude=src/VBox/Additions/WINNT/**' \
942 '--exclude=src/VBox/Frontends/**' \
943 '--exclude=src/VBox/VMM/**' \
944 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
945
946additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
947 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
948 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing"
949 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
950 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
951 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && 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"
952 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
953
954additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
955 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
956 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
957
958.NOTPARALLEL: additions-build-solaris.rsync-into-vm
959.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
960
961additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
962additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
963endif
964
965ifdef VBOX_WITH_OS2_ADD_BUILD
966 ifeq ($(KBUILD_TARGET),os2)
967additions-build-os2.x86:
968 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
969 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
970
971additions-build-os2.rsync-into-vm:
972 else
973additions-build-os2.rsync-into-vm:
974 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
975 '--exclude=src/VBox/Additions/x11/**' \
976 '--exclude=src/VBox/Additions/WINNT/**' \
977 '--exclude=src/VBox/Frontends/**' \
978 '--exclude=src/VBox/VMM/**' \
979 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
980
981additions-build-os2.build-it: additions-build-os2.rsync-into-vm
982 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
983 $(VBOX_KMK_TIME) 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"
984 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
985
986additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
987 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
988
989.NOTPARALLEL: additions-build-os2.rsync-into-vm
990.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
991
992additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
993 endif
994#
995else
996additions-build-os2.x86:
997# Dummy
998endif
999
1000ifeq ($(KBUILD_TARGET),linux)
1001additions-build-linux.amd64:
1002 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1003 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1004
1005additions-build-linux.x86:
1006 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1007 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1008
1009additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1010 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1011 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1012else
1013additions-build-linux.rsync-into-vm:
1014 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1015 '--exclude=src/VBox/Additions/WINNT/**' \
1016 '--exclude=src/VBox/Frontends/**' \
1017 '--exclude=src/VBox/VMM/**' \
1018 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1019
1020additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1021 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1022 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1023 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && 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\""'
1024 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1025 endif
1026 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1027 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && 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)\""'
1028 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1029 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1030 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1031 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && 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\""'
1032 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1033 endif
1034 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1035 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && 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)\""'
1036 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1037 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1038 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && 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\""'
1039 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1040
1041additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1042 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1043 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1044
1045.NOTPARALLEL: additions-build-linux.rsync-into-vm
1046.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1047
1048additions-build-linux: additions-build-linux.rsync-out-of-vm
1049endif
1050
1051additions-packing:
1052 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1053 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1054 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1055 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1056 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1057 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1058 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1059 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1060 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1061 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1062 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1063 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1064 -C src/VBox/Additions \
1065 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1066
1067.PHONY: \
1068 additions-build-win.x86 \
1069 additions-build-win.amd64 \
1070 additions-build-solaris.amd64 \
1071 additions-build-solaris.x86 \
1072 additions-build-os2.x86 \
1073 additions-build-linux \
1074 additions-build-linux.amd64 \
1075 additions-build-linux.x86 \
1076 additions-build-linux.x86.combined \
1077 additions-packing
1078
1079
1080#
1081# Build the extension packs, all of them.
1082#
1083# This is tailored (hardcoded) for the extension pack build box.
1084#
1085# The fetching must be done in serial fashion, while the building should be
1086# more flexible wrt to -jN.
1087#
1088extpacks-fetch:
1089 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1090 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1091 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1092# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1093# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1094 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1095 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1096# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1097 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1098 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1099 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1100
1101
1102extpacks-build: \
1103 extpacks-build-win.amd64 \
1104 extpacks-build-win.x86 \
1105 extpacks-build-solaris.amd64 \
1106 extpacks-build-os2.x86 \
1107 extpacks-build-linux \
1108 extpacks-build-darwin.amd64 \
1109 extpacks-build-darwin.x86 \
1110 extpacks-build-freebsd.amd64 \
1111 extpacks-build-freebsd.x86
1112
1113VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1114 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1115 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1116 VBOX_SVN_REV=$(VBOX_SVN_REV)
1117
1118VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1119 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1120 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1121 VBOX_SVN_REV=$(VBOX_SVN_REV)
1122
1123# Automatically determine the extpack build subdir name. Used for figuring out
1124# directory names inside the extension pack building VMs.
1125VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1126
1127# When building in parallel on a Windows host, make sure we finish the host
1128# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1129ifeq ($(KBUILD_TARGET),win)
1130VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1131else
1132VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1133endif
1134
1135extpacks-build-win.amd64:
1136ifeq ($(KBUILD_TARGET),win)
1137 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1138else
1139 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1140 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1141 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1142endif
1143
1144extpacks-build-win.x86:
1145ifeq ($(KBUILD_TARGET),win)
1146 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1147else
1148 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1149 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1150 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1151endif
1152
1153ifeq ($(KBUILD_TARGET),solaris)
1154extpacks-build-solaris.amd64:
1155 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1156
1157else
1158# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1159extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1160 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1161
1162extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1163 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1164 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1165 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1166
1167extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1168 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1169
1170#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1171.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1172
1173extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1174endif
1175
1176extpacks-build-os2.x86:
1177#ifeq ($(KBUILD_TARGET),os2)
1178# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1179#else
1180# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_OS2_IP) " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
1181#endif
1182
1183ifeq ($(KBUILD_TARGET),linux)
1184extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1185 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1186
1187extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1188 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1189
1190extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1191else
1192# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1193extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1194 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1195
1196extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1197 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1198 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all\""'
1199 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1200 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1201 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && 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\""'
1202 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1203
1204extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1205 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1206 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1207
1208#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1209.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1210
1211extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1212endif
1213
1214extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1215#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1216# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1217#else
1218# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1219# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1220# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1221#endif
1222
1223extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1224#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1225# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1226#else
1227# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1228# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1229# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1230#endif
1231
1232extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1233ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1234 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1235else
1236 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1237 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1238 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1239 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1240 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1241endif
1242
1243extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1244ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1245 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1246else
1247 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 extension packs)
1248 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1249 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1250 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1251 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 extension packs)
1252endif
1253
1254
1255extpacks-packing:
1256 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1257 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1258 packing
1259# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1260
1261.PHONY: \
1262 extpacks-build-win.x86 \
1263 extpacks-build-win.amd64 \
1264 extpacks-build-solaris.amd64 \
1265 extpacks-build-os2.x86 \
1266 extpacks-build-linux \
1267 extpacks-build-linux.amd64 \
1268 extpacks-build-linux.x86 \
1269 extpacks-build-freebsd.amd64 \
1270 extpacks-build-freebsd.x86 \
1271 extpacks-build-darwin.amd64 \
1272 extpacks-build-darwin.x86 \
1273 extpacks-packing
1274
1275
1276#
1277# Build the test suite, all of it.
1278#
1279# This is currently tailored (hardcoded) for the additions build box just like
1280# the additions build above, which it in fact is a copy of.
1281#
1282validationkit-fetch:
1283 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1284 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1285 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1286# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1287# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1288 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1289 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1290 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1291 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1292 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1293 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1294 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1295
1296
1297validationkit-build: \
1298 validationkit-build-rsync-into-vms \
1299 validationkit-build-solaris.amd64 \
1300 validationkit-build-solaris.x86 \
1301 validationkit-build-win.x86 \
1302 validationkit-build-win.amd64 \
1303 validationkit-build-os2.x86 \
1304 validationkit-build-linux \
1305 validationkit-build-freebsd.amd64 \
1306 validationkit-build-freebsd.x86 \
1307 validationkit-build-darwin.amd64 \
1308 validationkit-build-darwin.x86
1309
1310validationkit-build-rsync-into-vms: \
1311 validationkit-build-solaris.rsync-into-vm \
1312 validationkit-build-os2.rsync-into-vm \
1313 validationkit-build-linux.rsync-into-vm
1314 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1315.NOTPARALLEL: validationkit-build-rsync-into-vms
1316.PHONY: validationkit-build-rsync-into-vms
1317
1318
1319VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1320 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1321 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1322 VBOX_SVN_REV=$(VBOX_SVN_REV)
1323
1324VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1325 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1326 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1327 VBOX_SVN_REV=$(VBOX_SVN_REV)
1328
1329# Automatically determine the Validation Kit build subdir name. Used for figuring
1330# out directory names inside the test suite building VMs.
1331VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1332
1333# When building in parallel on a Windows host, make sure we finish the host
1334# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1335ifeq ($(KBUILD_TARGET),win)
1336VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1337else
1338VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1339endif
1340
1341# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1342validationkit-build-win.amd64: validationkit-build-win.x86
1343ifeq ($(KBUILD_TARGET),win)
1344 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1345else
1346 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1347 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all "
1348 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1349endif
1350
1351validationkit-build-win.x86:
1352ifeq ($(KBUILD_TARGET),win)
1353 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1354else
1355 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1356 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1357 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1358endif
1359
1360ifeq ($(KBUILD_TARGET),solaris)
1361validationkit-build-solaris.amd64:
1362 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1363
1364validationkit-build-solaris.x86:
1365 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1366
1367else
1368validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1369 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
1370 '--exclude=src/VBox/Additions/WINNT/**' \
1371 '--exclude=src/VBox/Frontends/**' \
1372 '--exclude=src/VBox/VMM/**' \
1373 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1374
1375validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1376 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1377 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
1378 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1379 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1380 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all "
1381 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1382
1383validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1384 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1385 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1386
1387.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1388
1389validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1390validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1391endif
1392
1393ifeq ($(KBUILD_TARGET),os2)
1394validationkit-build-os2.x86:
1395 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1396validationkit-build-os2.rsync-into-vm:
1397else # !OS/2
1398validationkit-build-os2.rsync-into-vm:
1399 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
1400 '--exclude=src/VBox/Additions/x11/**' \
1401 '--exclude=src/VBox/Additions/WINNT/**' \
1402 '--exclude=src/VBox/Frontends/**' \
1403 '--exclude=src/VBox/VMM/**' \
1404 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1405
1406validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1407 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1408 $(VBOX_KMK_TIME) 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"
1409 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1410
1411validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1412 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1413
1414.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1415
1416validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1417endif # !OS/2
1418
1419ifeq ($(KBUILD_TARGET),linux)
1420validationkit-build-linux.amd64:
1421 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1422
1423validationkit-build-linux.x86:
1424 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1425
1426validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1427else
1428validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1429 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1430 '--exclude=src/VBox/Additions/WINNT/**' \
1431 '--exclude=src/VBox/Frontends/**' \
1432 '--exclude=src/VBox/VMM/**' \
1433 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1434
1435validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1436 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1437 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all\""'
1438 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1439 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1440 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all\""'
1441 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1442
1443validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1444 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1445 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1446
1447.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1448
1449validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1450endif
1451
1452validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1453#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1454# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1455#else
1456# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1457# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
1458# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1459#endif
1460
1461validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1462#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1463# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1464#else
1465# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1466# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1467# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1468#endif
1469
1470validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1471ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1472 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1473else
1474 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1475 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1476 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
1477 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1478 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1479endif
1480
1481validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1482ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1483 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1484else
1485 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1486 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1487 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1488 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1489 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1490endif
1491
1492
1493validationkit-packing:
1494 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1495 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1496 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1497 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1498 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1499 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1500 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1501 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1502 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1503 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1504 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1505 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1506 -C src/VBox/ValidationKit \
1507 $(PATH_OUT)/VBoxValidationKit.zip \
1508 $(PATH_OUT)/VBoxTestBoxScript.zip
1509
1510.PHONY: \
1511 validationkit-build-win.x86 \
1512 validationkit-build-win.amd64 \
1513 validationkit-build-solaris.amd64 \
1514 validationkit-build-solaris.x86 \
1515 validationkit-build-os2.x86 \
1516 validationkit-build-linux \
1517 validationkit-build-linux.amd64 \
1518 validationkit-build-linux.x86 \
1519 validationkit-build-freebsd.amd64 \
1520 validationkit-build-freebsd.x86 \
1521 validationkit-build-darwin.amd64 \
1522 validationkit-build-darwin.x86 \
1523 validationkit-packing
1524
1525
1526#
1527# Build the EFI firmware, all of it.
1528#
1529efi-fetch:
1530 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1531
1532efi-build: $(VBOX_VERSION_HEADER)
1533 + $(KMK) -C src/VBox/Devices/EFI/Firmware
1534
1535efi-packing:
1536 $(REDIRECT) -C "$(PATH_STAGE_BIN)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X \
1537 ../VBoxEfiFirmware.zip \
1538 VBoxEFI32.fd \
1539 VBoxEFI64.fd
1540## @todo zip up debug info as well!
1541
1542#
1543# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1544# - includes kBuild
1545# - must be executed on an OSE checkout
1546#
1547
1548# the path where to store the tarball
1549TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1550# the root directory inside the tarball
1551TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
1552# the name of the tarball file
1553TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
1554snapshot-ose:
1555 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1556 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1557 echo; \
1558 echo "Found RDP stuff, refused to build OSE tarball!"; \
1559 echo; \
1560 exit 1; \
1561 fi; \
1562 if [ -z "$(VBOX_OSE)" ]; then \
1563 echo; \
1564 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1565 echo; \
1566 exit 1; \
1567 fi
1568 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1569 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1570 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1571 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
1572 --exclude=.svn \
1573 --exclude=$(TARBALLROOT)/out \
1574 --exclude=$(TARBALLROOT)/env.sh \
1575 --exclude=$(TARBALLROOT)/configure.log \
1576 --exclude=$(TARBALLROOT)/build.log \
1577 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1578 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1579 --exclude=$(TARBALLROOT)/prebuild \
1580 -C $(TARBALLPATH) \
1581 -f $(TARBALLPATH)/$(TARBALLNAME) \
1582 $(TARBALLROOT)
1583 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1584
1585
1586#
1587# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1588# - includes kBuild
1589# - must be executed on an PUEL checkout
1590#
1591
1592# the path where to store the zip archive
1593ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1594# the root directory inside the zip archive
1595ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1596# the name of the zip archive
1597ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1598snapshot-puel:
1599 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1600 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1601 echo; \
1602 echo "Did not find RDP stuff, is this an OSE branch?"; \
1603 echo; \
1604 exit 1; \
1605 fi
1606 @if [ -z "$(PASSWORD)" ]; then \
1607 echo; \
1608 echo "Please specify a password with PASSWORD=..."; \
1609 echo; \
1610 exit 1; \
1611 fi
1612 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1613 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1614 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1615 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1616 $(QUIET)(cd $(ZIPPATH); 7z a \
1617 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1618 -xr!.svn \
1619 -i!$(ZIPROOT)/Config.kmk \
1620 -i!$(ZIPROOT)/Doxyfile.Core \
1621 -i!$(ZIPROOT)/Makefile.kmk \
1622 -i!$(ZIPROOT)/configure \
1623 -i!$(ZIPROOT)/configure.vbs \
1624 -i!$(ZIPROOT)/doc \
1625 -i!$(ZIPROOT)/include \
1626 -i!$(ZIPROOT)/kBuild \
1627 -i!$(ZIPROOT)/src \
1628 -i!$(ZIPROOT)/tools/env.sh \
1629 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1630 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1631 -x!$(ZIPROOT)/doc/Devices \
1632 -x!$(ZIPROOT)/doc/\*pdf \
1633 -x!$(ZIPROOT)/doc/VMM \
1634 -x!$(ZIPROOT)/doc/licenses_old \
1635 -x!$(ZIPROOT)/doc/manual/de_DE \
1636 -x!$(ZIPROOT)/doc/manual/fr_FR \
1637 -x!$(ZIPROOT)/src/tests \
1638 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1639 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1640 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1641 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1642 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1643 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1644 $(ZIPPATH)/$(ZIPNAME))
1645 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1646
1647
1648#
1649# Generate ALL the rules.
1650#
1651include $(FILE_KBUILD_SUB_FOOTER)
1652
1653
1654#
1655# Generate x86.mac and err.mac.
1656#
1657incs:
1658 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1659 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1660 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1661 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1662 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1663 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1664 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1665 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1666
1667
1668#
1669# Legacy.
1670#
1671vslick.h:
1672 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1673 exit 1
1674
1675
1676#
1677# Add fetching of the tools to the 'up[date][2]' targets.
1678#
1679up update up2 update2::
1680ifndef VBOX_OSE
1681 +$(MAKE) -C tools fetch
1682else
1683 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1684endif
1685
1686
1687#
1688# For efficiently build serveral build types / archs.
1689#
1690both-debug-release both-release-debug: \
1691 build-release-$(KBUILD_TARGET_ARCH) \
1692 build-debug-$(KBUILD_TARGET_ARCH)
1693both-x86-amd64 both-amd64-x86: \
1694 build-$(KBUILD_TYPE)-x86 \
1695 build-$(KBUILD_TYPE)-x86
1696both-types-archs both-archs-types: \
1697 build-debug-x86 \
1698 build-release-x86 \
1699 build-debug-amd64 \
1700 build-release-amd64
1701
1702build-release-x86:
1703 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
1704
1705build-debug-x86:
1706 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
1707
1708build-release-amd64:
1709 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
1710
1711build-debug-amd64:
1712 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
1713
1714
1715#
1716# Aliases for building the SDK.
1717#
1718.NOTPARALLEL: sdk sdk-fetch
1719sdk:
1720 + $(KMK) VBOX_ONLY_SDK=1 \
1721 pass_bldprogs pass_others pass_installs pass_packing
1722
1723sdk-fetch:
1724 + $(KMK) VBOX_ONLY_SDK=1 -C tools
1725
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