VirtualBox

source: vbox/trunk/Makefile.kmk@ 58143

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

*: Doxygen fixes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 73.8 KB
Line 
1# $Id: Makefile.kmk 58132 2015-10-09 00:09:37Z 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 $@ [email protected]
236 ifneq ($(KBUILD_HOST),win)
237 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename [email protected]
238 else
239 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
240 endif
241 $(CP) -f [email protected] $@
242 $(RM) -f [email protected]
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 $@ [email protected]
280 ifneq ($(KBUILD_HOST),win)
281 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename [email protected]
282 else
283 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
284 endif
285 $(CP) -f [email protected] $@
286 $(RM) -f [email protected]
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 $@ [email protected]
332 ifneq ($(KBUILD_HOST),win)
333 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename [email protected]
334 else
335 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
336 endif
337 $(CP) -f [email protected] $@
338 $(RM) -f [email protected]
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 -- "[email protected]" "$@"
378 $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "[email protected]" --vbox-version "$(VBOX_VERSION_STRING)"
379 $(MV) -f -- "[email protected]" "$@"
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/VMM/include \
463 src/VBox/Debugger \
464 src/VBox/Devices \
465 src/VBox/Devices/Audio \
466 src/VBox/Devices/Bus \
467 src/VBox/Devices/Graphics \
468 src/VBox/Devices/Graphics/BIOS \
469 src/VBox/Devices/Graphics/shaderlib \
470 src/VBox/Devices/Input \
471 src/VBox/Devices/Networking \
472 src/VBox/Devices/PC \
473 src/VBox/Devices/PC/BIOS \
474 src/VBox/Devices/Parallel \
475 src/VBox/Devices/Serial \
476 src/VBox/Devices/Storage \
477 src/VBox/Devices/USB \
478 src/VBox/Devices/USB/darwin \
479 src/VBox/Devices/USB/linux \
480 src/VBox/Devices/USB/os2 \
481 src/VBox/Devices/USB/solaris \
482 src/VBox/Devices/USB/vrdp \
483 src/VBox/Devices/USB/win32 \
484 src/VBox/Devices/VMMDev \
485 src/VBox/Main/include \
486 src/VBox/Main/include/hgcm \
487 src/VBox/Main \
488 src/VBox/Main/glue \
489 src/VBox/Main/webservice \
490 src/VBox/Main/xml \
491 src/VBox/Main/src-all \
492 src/VBox/Main/src-all/win \
493 src/VBox/Main/src-client \
494 src/VBox/Main/src-client/win \
495 src/VBox/Main/src-client/xpcom \
496 src/VBox/Main/src-server \
497 src/VBox/Main/src-server/darwin \
498 src/VBox/Main/src-server/linux \
499 src/VBox/Main/src-server/os2 \
500 src/VBox/Main/src-server/solaris \
501 src/VBox/Main/src-server/win \
502 src/VBox/Main/src-server/xpcom \
503 src/VBox/HostServices \
504 src/VBox/HostServices/DragAndDrop \
505 src/VBox/HostServices/GuestControl \
506 src/VBox/HostServices/GuestProperties \
507 src/VBox/HostServices/SharedClipboard \
508 src/VBox/HostServices/SharedFolders \
509 src/VBox/HostServices/SharedOpenGL \
510 src/VBox/HostServices/SharedOpenGL/crserver \
511 src/VBox/HostServices/SharedOpenGL/crserverlib \
512 src/VBox/HostServices/SharedOpenGL/render \
513 src/VBox/HostServices/SharedOpenGL/unpacker \
514 src/VBox/HostServices/auth \
515 src/VBox/HostServices/auth/directoryservice \
516 src/VBox/HostServices/auth/pam \
517 src/VBox/HostServices/auth/simple \
518 src/VBox/HostServices/auth/winlogon \
519 src/VBox/HostDrivers/Support \
520 src/VBox/HostDrivers/Support/darwin \
521 src/VBox/HostDrivers/Support/freebsd \
522 src/VBox/HostDrivers/Support/linux \
523 src/VBox/HostDrivers/Support/os2 \
524 src/VBox/HostDrivers/Support/solaris \
525 src/VBox/HostDrivers/Support/win \
526 src/VBox/HostDrivers/VBoxNetFlt \
527 src/VBox/HostDrivers/VBoxNetFlt/darwin \
528 src/VBox/HostDrivers/VBoxNetFlt/linux \
529 src/VBox/HostDrivers/VBoxNetFlt/solaris \
530 src/VBox/HostDrivers/VBoxNetFlt/win \
531 src/VBox/HostDrivers/VBoxNetNat \
532 src/VBox/HostDrivers/VBoxNetNat/darwin \
533 src/VBox/HostDrivers/VBoxNetNat/linux \
534 src/VBox/HostDrivers/VBoxNetNat/solaris \
535 src/VBox/HostDrivers/VBoxNetNat/win \
536 src/VBox/HostDrivers/VBoxNetAdp \
537 src/VBox/HostDrivers/VBoxNetAdp/darwin \
538 src/VBox/HostDrivers/VBoxNetAdp/linux \
539 src/VBox/HostDrivers/VBoxNetAdp/solaris \
540 src/VBox/HostDrivers/VBoxNetAdp/win \
541 src/VBox/HostDrivers/VBoxPci \
542 src/VBox/HostDrivers/VBoxPci/darwin \
543 src/VBox/HostDrivers/VBoxPci/linux \
544 src/VBox/HostDrivers/VBoxPci/solaris \
545 src/VBox/HostDrivers/VBoxPci/win \
546 src/VBox/HostDrivers/VBoxUSB \
547 src/VBox/HostDrivers/VBoxUSB/darwin \
548 src/VBox/HostDrivers/VBoxUSB/os2 \
549 src/VBox/HostDrivers/VBoxUSB/solaris \
550 src/VBox/HostDrivers/VBoxUSB/win \
551 src/VBox/HostDrivers/VBoxUSB/win/Device \
552 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
553 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
554 src/VBox/HostDrivers/VBoxUSB/win/Filter \
555 src/VBox/HostDrivers/VBoxUSB/win/Install \
556 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
557 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
558 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
559 src/VBox/HostDrivers/VBoxUSB/win/usbd \
560 src/VBox/Additions \
561 src/VBox/Additions/WINNT \
562 src/VBox/Additions/WINNT/Graphics \
563 src/VBox/Additions/WINNT/Graphics/Video \
564 src/VBox/Additions/WINNT/Graphics/Video/common \
565 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
566 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
567 src/VBox/Additions/WINNT/Graphics/Video/disp \
568 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
569 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
570 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
571 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
572 src/VBox/Additions/WINNT/Graphics/Video/mp \
573 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
574 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
575 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
576 src/VBox/Additions/WINNT/Graphics/Wine_new \
577 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
578 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
579 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
580 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
581 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
582 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
583 src/VBox/Additions/WINNT/Installer \
584 src/VBox/Additions/WINNT/Installer/ISO \
585 src/VBox/Additions/WINNT/Installer/InstallHelper \
586 src/VBox/Additions/WINNT/Installer/Languages \
587 src/VBox/Additions/WINNT/Installer/Loader \
588 src/VBox/Additions/WINNT/Mouse \
589 src/VBox/Additions/WINNT/Mouse/NT5 \
590 src/VBox/Additions/WINNT/Mouse/common \
591 src/VBox/Additions/WINNT/SharedFolders \
592 src/VBox/Additions/WINNT/SharedFolders/redirector \
593 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
594 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
595 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
596 src/VBox/Additions/WINNT/VBoxCredProv \
597 src/VBox/Additions/WINNT/VBoxGINA \
598 src/VBox/Additions/WINNT/VBoxHook \
599 src/VBox/Additions/WINNT/VBoxTray \
600 src/VBox/Additions/WINNT/VBoxUSB \
601 src/VBox/Additions/WINNT/i8042prt \
602 src/VBox/Additions/WINNT/i8042prt/i386 \
603 src/VBox/Additions/WINNT/i8042prt/include \
604 src/VBox/Additions/WINNT/include \
605 src/VBox/Additions/common \
606 src/VBox/Additions/common/VBoxControl \
607 src/VBox/Additions/common/VBoxGuest \
608 src/VBox/Additions/common/VBoxGuest/freebsd \
609 src/VBox/Additions/common/VBoxGuest/linux \
610 src/VBox/Additions/common/VBoxGuest/win \
611 src/VBox/Additions/common/VBoxGuestLib \
612 src/VBox/Additions/common/VBoxService \
613 src/VBox/Additions/common/VBoxVideo \
614 src/VBox/Additions/common/crOpenGL \
615 src/VBox/Additions/common/crOpenGL/array \
616 src/VBox/Additions/common/crOpenGL/feedback \
617 src/VBox/Additions/common/crOpenGL/pack \
618 src/VBox/Additions/common/crOpenGL/passthrough \
619 src/VBox/Additions/common/pam \
620 src/VBox/Additions/darwin \
621 src/VBox/Additions/freebsd \
622 src/VBox/Additions/freebsd/Installer \
623 src/VBox/Additions/freebsd/drm \
624 src/VBox/Additions/freebsd/vboxvfs \
625 src/VBox/Additions/linux \
626 src/VBox/Additions/linux/drm \
627 src/VBox/Additions/linux/installer \
628 src/VBox/Additions/linux/selinux-fedora \
629 src/VBox/Additions/linux/sharedfolders \
630 src/VBox/Additions/os2 \
631 src/VBox/Additions/os2/VBoxGradd \
632 src/VBox/Additions/os2/VBoxGradd/graddlib \
633 src/VBox/Additions/os2/VBoxGrext \
634 src/VBox/Additions/os2/VBoxMouse \
635 src/VBox/Additions/os2/VBoxSF \
636 src/VBox/Additions/solaris \
637 src/VBox/Additions/solaris/DRM \
638 src/VBox/Additions/solaris/DRM/include \
639 src/VBox/Additions/solaris/Installer \
640 src/VBox/Additions/solaris/SharedFolders \
641 src/VBox/Additions/solaris/SharedFolders/solaris10 \
642 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
643 src/VBox/Additions/solaris/Virtio \
644 src/VBox/Additions/x11 \
645 src/VBox/Additions/x11/Installer \
646 src/VBox/Additions/x11/VBoxClient \
647 src/VBox/Additions/x11/vboxmouse \
648 src/VBox/Additions/x11/vboxmouse/xorg70 \
649 src/VBox/Additions/x11/vboxmouse/xorg71 \
650 src/VBox/Additions/x11/vboxvideo \
651 src/VBox/NetworkServices \
652 src/VBox/NetworkServices/DHCP \
653 src/VBox/NetworkServices/NAT \
654 src/VBox/NetworkServices/NetLib \
655 src/VBox/Storage
656
657# These must come first in order to make things look nice.
658VBOX_CORE_DOXYFILE_INPUT_FIRST =\
659 $(PATH_ROOT)/doc/VBox-doc.c \
660 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
661 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
662 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
663 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
664 $(PATH_ROOT)/include/VBox/cdefs.h \
665 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
666 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
667 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
668 $(PATH_ROOT)/include/VBox/vmm/mm.h \
669 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
670 $(PATH_ROOT)/include/VBox/vmm/selm.h \
671 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
672 $(PATH_ROOT)/include/VBox/vmm/patm.h \
673 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
674 $(PATH_ROOT)/include/VBox/vmm/stam.h \
675 $(PATH_ROOT)/include/VBox/vmm/em.h \
676 $(PATH_ROOT)/include/VBox/vmm/hm.h \
677 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
678 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
679 $(PATH_ROOT)/include/VBox/vmm/iem.h \
680 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
681 $(PATH_ROOT)/include/VBox/vmm/rem.h \
682 $(PATH_ROOT)/include/VBox/vmm/iom.h \
683 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
684 $(PATH_ROOT)/include/VBox/vmm/gim.h \
685 $(PATH_ROOT)/include/VBox/vmm/tm.h \
686 $(PATH_ROOT)/include/VBox/vmm/csam.h \
687 $(PATH_ROOT)/include/VBox/vmm/ssm.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/IEMInternal.h \
695 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
696 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
697 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
698 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
699 $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
700 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
701 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
702 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
703 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
704 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
705 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
706 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
707 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
708 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
709 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
710 \
711 $(PATH_ROOT)/include/VBox/vmm/vm.h \
712 \
713 $(PATH_ROOT)/include/VBox/sup.h \
714 $(PATH_ROOT)/include/VBox/vd.h \
715 $(PATH_ROOT)/include/VBox/types.h \
716 $(PATH_ROOT)/include/VBox/err.h \
717 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
718 $(PATH_ROOT)/include/VBox/dbggui.h \
719 $(PATH_ROOT)/include/VBox/dis.h \
720 $(PATH_ROOT)/include/VBox/disopcode.h \
721 $(PATH_ROOT)/include/VBox/intnet.h \
722 $(PATH_ROOT)/include/VBox/settings.h \
723 $(PATH_ROOT)/include/VBox/pci.h \
724 $(PATH_ROOT)/include/VBox/scsi.h \
725 $(PATH_ROOT)/include/VBox/shflsvc.h \
726 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
727 $(PATH_ROOT)/include/VBox/usb.h \
728 $(PATH_ROOT)/include/VBox/vusb.h \
729 \
730 $(PATH_ROOT)/include/VBox/log.h \
731 $(PATH_ROOT)/include/VBox/param.h \
732 $(PATH_ROOT)/include/VBox/version.h \
733 \
734 $(PATH_ROOT)/include/VBox/com/com.h
735
736VBOX_CORE_DOXYFILE_INPUT := \
737 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
738 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
739VBOX_CORE_DOXYFILE_INPUT := \
740 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
741 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
742
743# And some some additional stuff.
744VBOX_CORE_DOXYFILE_INPUT += \
745 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
746 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
747
748
749VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
750BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
751
752-include $(PATH_TARGET)/Doxyfile.Core.dep
753
754# Generate the Doxyfile
755$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
756 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
757 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
758 | $$(dir $$@)
759 $(QUIET)$(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
760 $(QUIET)$(CP) -f Doxyfile.Core [email protected]
761 $(QUIET)$(APPEND) [email protected]
762 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
763 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
764 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
765 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
766 $(QUIET)$(APPEND) [email protected]
767 $(QUIET)$(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
768 $(QUIET)$(APPEND) [email protected]
769 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
770 $(QUIET)$(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
771 $(QUIET)$(APPEND) [email protected]
772 $(QUIET)$(MV) -f [email protected] $@
773 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
774 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
775
776# Do the actual job.
777$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
778 $(RM) -f $(PATH_TARGET)/docs.Core
779 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
780 doxygen $(PATH_TARGET)/Doxyfile.Core
781 $(APPEND) $(PATH_TARGET)/docs.Core
782
783
784#
785# Alias for kmk_time. Used by both the additions and validation kit build setups.
786#
787VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
788
789#
790# Common rsync bits.
791#
792
793##
794# The basic rsync invocation for syncing the tree into a VM; the source and
795# target specs are missing.
796#
797# @param 1 os name.
798# @param 2 arch or *.
799#
800VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
801 --exclude=*.pyc \
802 --exclude=.svn/ \
803 --exclude=doc/Devices/ \
804 --exclude=doc/tg/ \
805 --exclude=doc/vp/ \
806 --exclude=tinderclient.log \
807 --exclude=tools/FetchDir/ \
808 --exclude=webtools/ \
809 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
810 --exclude=tools/$(os).x86/ \
811 --exclude=tools/$(os).amd64/ \
812 --exclude=out/$(os).amd64/ \
813 --exclude=out/$(os).x86/ \
814 ,$(select \
815 "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
816 "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
817 ))
818
819#
820# VM IP addresses.
821#
822VBOX_BLD_VM_LNX_IP := 192.168.27.2
823VBOX_BLD_VM_OS2_IP := 192.168.27.3
824VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
825VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
826VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
827VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
828VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
829VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
830VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
831
832VBOX_WITH_OS2_ADD_BUILD=1
833
834#
835# For profiling the VM building steps.
836#
837if 0
838 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
839 VBOX_BLD_VM_MSG_END__ =
840else
841 VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Start building $1.
842 VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
843endif
844
845#
846# Build the additions, all of them.
847#
848# This is currently tailored (hardcoded) for the additions
849# build box. Can make it pretty and configurable later.
850#
851# The fetching must be done in serial fashion, while the building
852# should be more flexible wrt to -jN.
853#
854additions-fetch:
855 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
856 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
857 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
858ifdef VBOX_WITH_OS2_ADD_BUILD
859 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
860endif
861 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
862 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
863 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
864 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
865
866
867## @todo Currently combined solaris additions building assumes that amd64 is
868# built first. The windows amd64 additions need some x86 files, so don't change
869# the order of the windows builds. TODO: Split building and packing for these two VMs.
870additions-build: \
871 additions-build-rsync-into-vms \
872 additions-build-win.x86 \
873 additions-build-win.amd64 \
874 additions-build-solaris.amd64 \
875 additions-build-solaris.x86 \
876 additions-build-os2.x86 \
877 additions-build-linux
878
879additions-build-rsync-into-vms: \
880 additions-build-solaris.rsync-into-vm \
881 additions-build-os2.rsync-into-vm \
882 additions-build-linux.rsync-into-vm
883 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
884.NOTPARALLEL: additions-build-rsync-into-vms
885.PHONY: additions-build-rsync-into-vms
886
887
888VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
889 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
890 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
891 VBOX_SVN_REV=$(VBOX_SVN_REV)
892
893VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
894 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
895 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
896 VBOX_SVN_REV=$(VBOX_SVN_REV)
897
898# Automatically determine the additions build subdir name. Used for figuring
899# out directory names inside the additions building VMs.
900VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
901
902# When building in parallel on a Windows host, make sure we finish the host
903# bit before kicking off any UNIX guest or we'll run into file sharing issues.
904ifeq ($(KBUILD_TARGET),win)
905VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
906else
907VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
908endif
909
910# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
911additions-build-win.amd64: additions-build-win.x86
912ifeq ($(KBUILD_TARGET),win)
913 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
914 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
915else
916 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
917 $(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 "
918 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
919endif
920
921additions-build-win.x86:
922ifeq ($(KBUILD_TARGET),win)
923 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
924 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
925else
926 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
927 $(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"
928 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
929endif
930
931# ASSUMES the 64-bit edition are built first. This also serializes VM access.
932ifeq ($(KBUILD_TARGET),solaris)
933additions-build-solaris.amd64:
934 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
935 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
936
937additions-build-solaris.x86: additions-build-solaris.amd64
938 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
939 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
940
941additions-build-solaris.rsync-into-vm:
942else
943additions-build-solaris.rsync-into-vm:
944 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
945 '--exclude=src/VBox/Additions/WINNT/**' \
946 '--exclude=src/VBox/Frontends/**' \
947 '--exclude=src/VBox/VMM/**' \
948 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
949
950additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
951 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
952 $(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"
953 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
954 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
955 $(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"
956 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
957
958additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
959 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
960 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
961
962.NOTPARALLEL: additions-build-solaris.rsync-into-vm
963.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
964
965additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
966additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
967endif
968
969ifdef VBOX_WITH_OS2_ADD_BUILD
970 ifeq ($(KBUILD_TARGET),os2)
971additions-build-os2.x86:
972 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
973 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
974
975additions-build-os2.rsync-into-vm:
976 else
977additions-build-os2.rsync-into-vm:
978 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
979 '--exclude=src/VBox/Additions/x11/**' \
980 '--exclude=src/VBox/Additions/WINNT/**' \
981 '--exclude=src/VBox/Frontends/**' \
982 '--exclude=src/VBox/VMM/**' \
983 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
984
985additions-build-os2.build-it: additions-build-os2.rsync-into-vm
986 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
987 $(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"
988 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
989
990additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
991 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
992
993.NOTPARALLEL: additions-build-os2.rsync-into-vm
994.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
995
996additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
997 endif
998#
999else
1000additions-build-os2.x86:
1001# Dummy
1002endif
1003
1004ifeq ($(KBUILD_TARGET),linux)
1005additions-build-linux.amd64:
1006 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1007 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1008
1009additions-build-linux.x86:
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_WITHOUT_LINUX_GUEST_PACKAGE=1
1012
1013additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1014 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1015 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1016else
1017additions-build-linux.rsync-into-vm:
1018 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1019 '--exclude=src/VBox/Additions/WINNT/**' \
1020 '--exclude=src/VBox/Frontends/**' \
1021 '--exclude=src/VBox/VMM/**' \
1022 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1023
1024additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1025 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1026 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1027 $(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\""'
1028 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1029 endif
1030 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1031 $(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)\""'
1032 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1033 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1034 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1035 $(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\""'
1036 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1037 endif
1038 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1039 $(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)\""'
1040 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1041 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1042 $(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\""'
1043 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1044
1045additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1046 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1047 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1048
1049.NOTPARALLEL: additions-build-linux.rsync-into-vm
1050.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1051
1052additions-build-linux: additions-build-linux.rsync-out-of-vm
1053endif
1054
1055additions-packing:
1056 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1057 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1058 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1059 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1060 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1061 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1062 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1063 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1064 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1065 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1066 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1067 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1068 -C src/VBox/Additions \
1069 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1070
1071.PHONY: \
1072 additions-build-win.x86 \
1073 additions-build-win.amd64 \
1074 additions-build-solaris.amd64 \
1075 additions-build-solaris.x86 \
1076 additions-build-os2.x86 \
1077 additions-build-linux \
1078 additions-build-linux.amd64 \
1079 additions-build-linux.x86 \
1080 additions-build-linux.x86.combined \
1081 additions-packing
1082
1083
1084#
1085# Build the extension packs, all of them.
1086#
1087# This is tailored (hardcoded) for the extension pack build box.
1088#
1089# The fetching must be done in serial fashion, while the building should be
1090# more flexible wrt to -jN.
1091#
1092extpacks-fetch:
1093 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1094 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1095 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1096# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1097# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1098 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1099 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1100# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1101 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1102 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1103 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1104
1105
1106extpacks-build: \
1107 extpacks-build-win.amd64 \
1108 extpacks-build-win.x86 \
1109 extpacks-build-solaris.amd64 \
1110 extpacks-build-os2.x86 \
1111 extpacks-build-linux \
1112 extpacks-build-darwin.amd64 \
1113 extpacks-build-freebsd.amd64 \
1114 extpacks-build-freebsd.x86
1115
1116VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1117 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1118 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1119 VBOX_SVN_REV=$(VBOX_SVN_REV)
1120
1121VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1122 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1123 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1124 VBOX_SVN_REV=$(VBOX_SVN_REV)
1125
1126# Automatically determine the extpack build subdir name. Used for figuring out
1127# directory names inside the extension pack building VMs.
1128VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1129
1130# When building in parallel on a Windows host, make sure we finish the host
1131# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1132ifeq ($(KBUILD_TARGET),win)
1133VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1134else
1135VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1136endif
1137
1138extpacks-build-win.amd64:
1139ifeq ($(KBUILD_TARGET),win)
1140 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1141else
1142 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1143 $(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"
1144 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1145endif
1146
1147extpacks-build-win.x86:
1148ifeq ($(KBUILD_TARGET),win)
1149 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1150else
1151 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1152 $(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"
1153 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1154endif
1155
1156ifeq ($(KBUILD_TARGET),solaris)
1157extpacks-build-solaris.amd64:
1158 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1159
1160else
1161# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1162extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1163 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1164
1165extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1166 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1167 $(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"
1168 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1169
1170extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1171 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1172
1173#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1174.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1175
1176extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1177endif
1178
1179extpacks-build-os2.x86:
1180#ifeq ($(KBUILD_TARGET),os2)
1181# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1182#else
1183# $(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) "
1184#endif
1185
1186ifeq ($(KBUILD_TARGET),linux)
1187extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1188 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1189
1190extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1191 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1192
1193extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1194else
1195# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1196extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1197 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1198
1199extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1200 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1201 $(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\""'
1202 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1203 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1204 $(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\""'
1205 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1206
1207extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1208 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1209 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1210
1211#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1212.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1213
1214extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1215endif
1216
1217extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1218#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1219# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1220#else
1221# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1222# $(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"
1223# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1224#endif
1225
1226extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1227#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1228# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1229#else
1230# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1231# $(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"
1232# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1233#endif
1234
1235extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1236ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1237 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1238else
1239 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1240 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1241 $(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"
1242 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1243 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1244endif
1245
1246extpacks-packing:
1247 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1248 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1249 packing
1250# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1251
1252.PHONY: \
1253 extpacks-build-win.x86 \
1254 extpacks-build-win.amd64 \
1255 extpacks-build-solaris.amd64 \
1256 extpacks-build-os2.x86 \
1257 extpacks-build-linux \
1258 extpacks-build-linux.amd64 \
1259 extpacks-build-linux.x86 \
1260 extpacks-build-freebsd.amd64 \
1261 extpacks-build-freebsd.x86 \
1262 extpacks-build-darwin.amd64 \
1263 extpacks-packing
1264
1265
1266#
1267# Build the test suite, all of it.
1268#
1269# This is currently tailored (hardcoded) for the additions build box just like
1270# the additions build above, which it in fact is a copy of.
1271#
1272validationkit-fetch:
1273 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1274 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1275 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1276# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1277# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1278 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1279 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1280 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1281 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1282 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1283 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1284 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1285
1286
1287validationkit-build: \
1288 validationkit-build-rsync-into-vms \
1289 validationkit-build-solaris.amd64 \
1290 validationkit-build-solaris.x86 \
1291 validationkit-build-win.x86 \
1292 validationkit-build-win.amd64 \
1293 validationkit-build-os2.x86 \
1294 validationkit-build-linux \
1295 validationkit-build-freebsd.amd64 \
1296 validationkit-build-freebsd.x86 \
1297 validationkit-build-darwin.amd64 \
1298 validationkit-build-darwin.x86
1299
1300validationkit-build-rsync-into-vms: \
1301 validationkit-build-solaris.rsync-into-vm \
1302 validationkit-build-os2.rsync-into-vm \
1303 validationkit-build-linux.rsync-into-vm
1304 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1305.NOTPARALLEL: validationkit-build-rsync-into-vms
1306.PHONY: validationkit-build-rsync-into-vms
1307
1308
1309VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1310 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1311 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1312 VBOX_SVN_REV=$(VBOX_SVN_REV)
1313
1314VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1315 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1316 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1317 VBOX_SVN_REV=$(VBOX_SVN_REV)
1318
1319# Automatically determine the Validation Kit build subdir name. Used for figuring
1320# out directory names inside the test suite building VMs.
1321VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1322
1323# When building in parallel on a Windows host, make sure we finish the host
1324# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1325ifeq ($(KBUILD_TARGET),win)
1326VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1327else
1328VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1329endif
1330
1331# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1332validationkit-build-win.amd64: validationkit-build-win.x86
1333ifeq ($(KBUILD_TARGET),win)
1334 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1335else
1336 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1337 $(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 "
1338 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1339endif
1340
1341validationkit-build-win.x86:
1342ifeq ($(KBUILD_TARGET),win)
1343 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1344else
1345 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1346 $(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"
1347 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1348endif
1349
1350ifeq ($(KBUILD_TARGET),solaris)
1351validationkit-build-solaris.amd64:
1352 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1353
1354validationkit-build-solaris.x86:
1355 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1356
1357else
1358validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1359 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
1360 '--exclude=src/VBox/Additions/WINNT/**' \
1361 '--exclude=src/VBox/Frontends/**' \
1362 '--exclude=src/VBox/VMM/**' \
1363 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1364
1365validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1366 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1367 $(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"
1368 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1369 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1370 $(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 "
1371 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1372
1373validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1374 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1375 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1376
1377.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1378
1379validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1380validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1381endif
1382
1383ifeq ($(KBUILD_TARGET),os2)
1384validationkit-build-os2.x86:
1385 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1386validationkit-build-os2.rsync-into-vm:
1387else # !OS/2
1388validationkit-build-os2.rsync-into-vm:
1389 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
1390 '--exclude=src/VBox/Additions/x11/**' \
1391 '--exclude=src/VBox/Additions/WINNT/**' \
1392 '--exclude=src/VBox/Frontends/**' \
1393 '--exclude=src/VBox/VMM/**' \
1394 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1395
1396validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1397 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1398 $(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"
1399 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1400
1401validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1402 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1403
1404.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1405
1406validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1407endif # !OS/2
1408
1409ifeq ($(KBUILD_TARGET),linux)
1410validationkit-build-linux.amd64:
1411 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1412
1413validationkit-build-linux.x86:
1414 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1415
1416validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1417else
1418validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1419 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1420 '--exclude=src/VBox/Additions/WINNT/**' \
1421 '--exclude=src/VBox/Frontends/**' \
1422 '--exclude=src/VBox/VMM/**' \
1423 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1424
1425validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1426 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1427 $(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\""'
1428 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1429 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1430 $(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\""'
1431 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1432
1433validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1434 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1435 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1436
1437.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1438
1439validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1440endif
1441
1442validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1443#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1444# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1445#else
1446# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1447# $(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"
1448# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1449#endif
1450
1451validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1452#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1453# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1454#else
1455# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1456# $(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"
1457# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1458#endif
1459
1460validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1461ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1462 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1463else
1464 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1465 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1466 $(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"
1467 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1468 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1469endif
1470
1471validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1472ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1473 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1474else
1475 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1476 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1477 $(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"
1478 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1479 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1480endif
1481
1482
1483validationkit-packing:
1484 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1485 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1486 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1487 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1488 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1489 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1490 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1491 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1492 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1493 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1494 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1495 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1496 -C src/VBox/ValidationKit \
1497 $(PATH_OUT)/VBoxValidationKit.zip \
1498 $(PATH_OUT)/VBoxTestBoxScript.zip
1499
1500.PHONY: \
1501 validationkit-build-win.x86 \
1502 validationkit-build-win.amd64 \
1503 validationkit-build-solaris.amd64 \
1504 validationkit-build-solaris.x86 \
1505 validationkit-build-os2.x86 \
1506 validationkit-build-linux \
1507 validationkit-build-linux.amd64 \
1508 validationkit-build-linux.x86 \
1509 validationkit-build-freebsd.amd64 \
1510 validationkit-build-freebsd.x86 \
1511 validationkit-build-darwin.amd64 \
1512 validationkit-build-darwin.x86 \
1513 validationkit-packing
1514
1515
1516#
1517# Build the EFI firmware, all of it.
1518#
1519efi-fetch:
1520 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1521
1522efi-build: $(VBOX_VERSION_HEADER)
1523 + $(KMK) -C src/VBox/Devices/EFI/Firmware
1524
1525efi-packing:
1526 $(REDIRECT) -C "$(PATH_STAGE_BIN)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X \
1527 ../VBoxEfiFirmware.zip \
1528 VBoxEFI32.fd \
1529 VBoxEFI64.fd
1530## @todo zip up debug info as well!
1531
1532#
1533# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1534# - includes kBuild
1535# - must be executed on an OSE checkout
1536#
1537
1538# the path where to store the tarball
1539TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1540# the root directory inside the tarball
1541TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
1542# the name of the tarball file
1543TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
1544snapshot-ose:
1545 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1546 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1547 echo; \
1548 echo "Found RDP stuff, refused to build OSE tarball!"; \
1549 echo; \
1550 exit 1; \
1551 fi; \
1552 if [ -z "$(VBOX_OSE)" ]; then \
1553 echo; \
1554 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1555 echo; \
1556 exit 1; \
1557 fi
1558 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1559 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1560 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1561 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
1562 --exclude=.svn \
1563 --exclude=$(TARBALLROOT)/out \
1564 --exclude=$(TARBALLROOT)/env.sh \
1565 --exclude=$(TARBALLROOT)/configure.log \
1566 --exclude=$(TARBALLROOT)/build.log \
1567 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1568 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1569 --exclude=$(TARBALLROOT)/prebuild \
1570 -C $(TARBALLPATH) \
1571 -f $(TARBALLPATH)/$(TARBALLNAME) \
1572 $(TARBALLROOT)
1573 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1574
1575
1576#
1577# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1578# - includes kBuild
1579# - must be executed on an PUEL checkout
1580#
1581
1582# the path where to store the zip archive
1583ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1584# the root directory inside the zip archive
1585ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1586# the name of the zip archive
1587ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1588snapshot-puel:
1589 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1590 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1591 echo; \
1592 echo "Did not find RDP stuff, is this an OSE branch?"; \
1593 echo; \
1594 exit 1; \
1595 fi
1596 @if [ -z "$(PASSWORD)" ]; then \
1597 echo; \
1598 echo "Please specify a password with PASSWORD=..."; \
1599 echo; \
1600 exit 1; \
1601 fi
1602 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1603 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1604 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1605 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1606 $(QUIET)(cd $(ZIPPATH); 7z a \
1607 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1608 -xr!.svn \
1609 -i!$(ZIPROOT)/Config.kmk \
1610 -i!$(ZIPROOT)/Doxyfile.Core \
1611 -i!$(ZIPROOT)/Makefile.kmk \
1612 -i!$(ZIPROOT)/configure \
1613 -i!$(ZIPROOT)/configure.vbs \
1614 -i!$(ZIPROOT)/doc \
1615 -i!$(ZIPROOT)/include \
1616 -i!$(ZIPROOT)/kBuild \
1617 -i!$(ZIPROOT)/src \
1618 -i!$(ZIPROOT)/tools/env.sh \
1619 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1620 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1621 -x!$(ZIPROOT)/doc/Devices \
1622 -x!$(ZIPROOT)/doc/\*pdf \
1623 -x!$(ZIPROOT)/doc/VMM \
1624 -x!$(ZIPROOT)/doc/licenses_old \
1625 -x!$(ZIPROOT)/doc/manual/de_DE \
1626 -x!$(ZIPROOT)/doc/manual/fr_FR \
1627 -x!$(ZIPROOT)/src/tests \
1628 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1629 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1630 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1631 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1632 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1633 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1634 $(ZIPPATH)/$(ZIPNAME))
1635 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1636
1637
1638#
1639# Generate ALL the rules.
1640#
1641include $(FILE_KBUILD_SUB_FOOTER)
1642
1643
1644#
1645# Generate x86.mac and err.mac.
1646#
1647incs:
1648 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1649 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1650 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1651 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1652 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1653 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1654 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1655 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1656
1657
1658#
1659# Legacy.
1660#
1661vslick.h:
1662 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1663 exit 1
1664
1665
1666#
1667# Add fetching of the tools to the 'up[date][2]' targets.
1668#
1669up update up2 update2::
1670ifndef VBOX_OSE
1671 +$(MAKE) -C tools fetch
1672else
1673 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1674endif
1675
1676
1677#
1678# For efficiently build serveral build types / archs.
1679#
1680both-debug-release both-release-debug: \
1681 build-release-$(KBUILD_TARGET_ARCH) \
1682 build-debug-$(KBUILD_TARGET_ARCH)
1683both-x86-amd64 both-amd64-x86: \
1684 build-$(KBUILD_TYPE)-x86 \
1685 build-$(KBUILD_TYPE)-x86
1686both-types-archs both-archs-types: \
1687 build-debug-x86 \
1688 build-release-x86 \
1689 build-debug-amd64 \
1690 build-release-amd64
1691
1692build-release-x86:
1693 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
1694
1695build-debug-x86:
1696 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
1697
1698build-release-amd64:
1699 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
1700
1701build-debug-amd64:
1702 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
1703
1704
1705#
1706# Aliases for building the SDK.
1707#
1708.NOTPARALLEL: sdk sdk-fetch
1709sdk:
1710 + $(KMK) VBOX_ONLY_SDK=1 \
1711 pass_bldprogs pass_others pass_installs pass_packing
1712
1713sdk-fetch:
1714 + $(KMK) VBOX_ONLY_SDK=1 -C tools
1715
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