7 # Copyright (C) 2006-2012 Oracle Corporation
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.
19 include $(KBUILD_PATH
)/subheader.kmk
22 # Sub-makefiles / Sub-directories.
24 if defined
(VBOX_WITH_DOCS
) && (!defined
(VBOX_ONLY_BUILD
) || defined
(VBOX_ONLY_DOCS
) || defined
(VBOX_ONLY_SDK
))
25 include $(PATH_SUB_CURRENT
)/doc
/manual
/Makefile.kmk
27 include $(PATH_SUB_CURRENT
)/src
/Makefile.kmk
30 ## @todo split up this file!
34 # Clean up global stuff that Config.kmk generates.
37 $(VBOX_PACKAGE_HEADER
) \
38 $(VBOX_LICENSE_VER_KMK
) \
40 $(VBOX_VERSION_HEADER
) \
41 $(VBOX_VERSION_STAMP
) \
42 $(wildcard $(PATH_OUT
)/version-stamp-
*.
*.
*) \
43 $(VBOX_SVN_REV_KMK
).ts \
45 $(PATH_OUT
)/GCCConfig.kmk
48 if
!defined
(VBOX_ONLY_ADDITIONS
) \
49 && !defined
(VBOX_ONLY_DOCS
) \
50 && !defined
(VBOX_ONLY_EXTPACKS
) \
51 && !defined
(VBOX_ONLY_TESTSUITE
) # -> line 426b ;-)
53 if
!defined
(VBOX_OSE
) && defined
(VBOX_LICENSE_FILES
)
55 # Install the license (and misc non-executable stuff).
57 INSTALLS
+= InstallLicenseFiles
58 InstallLicenseFiles_INST
= $(INST_BIN
)
59 InstallLicenseFiles_MODE
= 0644
60 InstallLicenseFiles_SOURCES
=
61 InstallLicenseFiles_SOURCES
+= \
62 $(VBOX_BRAND_LICENSE_HTML
)=>License-
$(VBOX_LICENSE_VER
).html \
63 $(foreach f
,$(VBOX_INSTALLER_ADD_LANGUAGES
),$(VBOX_BRAND_
$(f
)_LICENSE_HTML
)=>License-
$(VBOX_LICENSE_VER
)-$(f
).html
)
68 # Install external binaries (mostly redistributable parts of tools we use).
70 # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
71 # and .linux property suffixes.
73 INSTALLS
+= InstallExternalLibs
75 InstallExternalLibs_INST
= $(INST_BIN
)
78 if1of
($(KBUILD_TARGET
), win os2
)
79 ifneq ($(VBOX_WITH_VBOXSDL
)$(VBOX_WITH_VBOXBFE
),)
80 include $(KBUILD_PATH
)/sdks
/LIBSDL.kmk
81 InstallExternalLibs_SOURCES
+= \
83 ifdef VBOX_WITH_SECURELABEL
84 InstallExternalLibs_SOURCES
+= \
85 $(DLL_SDK_LIBSDL_SDLTTF
)
87 ifeq ($(KBUILD_TARGET
),os2
)
88 InstallExternalLibs_SOURCES
+= \
89 $(DLL_SDK_LIBSDL_FSLIB
)
95 # The compiler runtime DLLs.
96 ifeq ($(KBUILD_TARGET
).
$(VBOX_WITHOUT_COMPILER_REDIST
),win.
)
97 VBOX_PATH_VCC_REDIST
= $(PATH_TOOL_
$(VBOX_VCC_TOOL
))/redist
/
98 VBOX_PATH_VCC_REDIST_CRT
= $(VBOX_PATH_VCC_REDIST
)/$(subst amd64
,x64
,$(KBUILD_TARGET_ARCH
))/Microsoft.VC100.CRT
99 VBOX_PATH_VCC_REDIST_CRT_DBG
= $(VBOX_PATH_VCC_REDIST
)/Debug_NonRedist
/$(subst amd64
,x64
,$(KBUILD_TARGET_ARCH
))/Microsoft.VC100.DebugCRT
100 InstallExternalLibs_SOURCES
+= \
101 $(VBOX_PATH_VCC_REDIST_CRT
)/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
102 $(VBOX_PATH_VCC_REDIST_CRT
)/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
103 $(VBOX_PATH_VCC_REDIST_CRT
)/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
=>testcase
/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
104 $(VBOX_PATH_VCC_REDIST_CRT
)/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
=>testcase
/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
105 ifeq ($(VBOX_VCC_CRT_TYPE
),d
)
106 $(VBOX_PATH_VCC_REDIST_CRT_DBG
)/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
107 $(VBOX_PATH_VCC_REDIST_CRT_DBG
)/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
108 $(VBOX_PATH_VCC_REDIST_CRT_DBG
)/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
=>testcase
/msvcr
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll \
109 $(VBOX_PATH_VCC_REDIST_CRT_DBG
)/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
=>testcase
/msvcp
$(substr
$(VBOX_VCC_TOOL_STEM
),4).dll
114 # Install our Qt DLLs / Shared Objects / Frameworks.
115 # Note: The installer fixes the darwin .dylibs when hardening is enabled.
117 ifeq ($(KBUILD_TARGET
),darwin
)
120 qt4-bin_INST
= $(INST_VIRTUALBOX
)Contents
/
121 qt4-bin_SOURCES
= $(foreach qtmod
,$(VBOX_QT4_MOD_NAMES
) \
122 ,$(PATH_SDK_QT4_LIB
)/$(qtmod
).framework
/Versions
/4/$(qtmod
)=>Frameworks
/$(qtmod
).framework
/Versions
/4/$(qtmod
))
123 ifdef VBOX_WITH_COCOA_QT
125 $(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 \
126 $(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 \
127 $(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
129 ifneq ($(wildcard $(VBOX_PATH_QT4
)/plugins
/accessible
/libqtaccessiblewidgets.dylib
),)
131 $(VBOX_PATH_QT4
)/plugins
/accessible
/libqtaccessiblewidgets.dylib
=>MacOS
/accessible
/libqtaccessiblewidgets.dylib
133 qt4-bin_SYMLINKS
= $(foreach qtmod
, $(VBOX_QT4_MOD_NAMES
) \
134 ,Frameworks
/$(qtmod
).framework
/$(qtmod
)=>Versions
/4/$(qtmod
))
135 ifdef VBOX_WITH_COCOA_QT
136 qt4-bin_SYMLINKS
+= \
137 Frameworks
/QtGui
$(VBOX_QT4_INFIX
).framework
/Resources
=>Versions
/4/Resources
/
140 if defined
(VBOX_WITH_QT4_SUN
) || defined
(VBOX_WITH_QT4_PAYLOAD
)
141 ifeq ($(KBUILD_TARGET
),win
)
144 qt4-bin_INST
= $(INST_BIN
)
146 $(foreach qtmod
,$(VBOX_QT4_MOD_NAMES
),$(VBOX_PATH_QT4_LIB
)/$(qtmod
)4$(SUFF_DLL
)) \
147 $(VBOX_PATH_QT4
)/plugins
/accessible
/qtaccessiblewidgets4
$(SUFF_DLL
)=>accessible
/qtaccessiblewidgets4
$(SUFF_DLL
)
151 qt4-bin_INST
= $(INST_BIN
)
153 $(foreach qtmod
,$(VBOX_QT4_MOD_NAMES
),$(VBOX_PATH_QT4_LIB
)/lib
$(qtmod
)$(SUFF_DLL
).4) \
154 $(VBOX_PATH_QT4
)/plugins
/accessible
/libqtaccessiblewidgets
$(SUFF_DLL
)=>accessible
/libqtaccessiblewidgets
$(SUFF_DLL
)
156 endif # VBOX_WITH_QT4_SUN
161 # For building the combined package, just get the additions .ISO
162 # once for amd64 to prevent version inconsistences. In all other
163 # cases we get the .ISO per target architecture.
165 ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
166 ifdef VBOX_WITH_COMBINED_PACKAGE
167 ifeq ($(KBUILD_TARGET_ARCH
),amd64
)
168 INSTALLS
+= buildserver-additions
171 INSTALLS
+= buildserver-additions
175 # Install additions iso from the build server.
176 # The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
177 # been added to kBuild.
179 buildserver-additions_INST
= $(INST_ADDITIONS_ISO
)
180 buildserver-additions_MODE
= 0644
181 buildserver-additions_SOURCES
= $(PATH_TARGET
)/VBoxGuestAdditions.iso
182 buildserver-additions_CLEANS
= $(PATH_TARGET
)/VBoxGuestAdditions.iso
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
184 $(PATH_TARGET
)/VBoxGuestAdditions.iso
: $(VBOX_SVN_REV_KMK
) $(PATH_DEVTOOLS
)/bin
/additions.sh |
$$(dir $$@
)
185 $(RM
) -f
$(PATH_TARGET
)/VBoxGuestAdditions.iso
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
186 ifneq ($(KBUILD_HOST
),win
)
187 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/additions.sh
--cmd fetch
--filename
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
189 $(KMK
) --affinity
1 -f
$(MAKEFILE
) buildserver-additions-affinity-hack
191 $(CP
) -f
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
$(PATH_TARGET
)/VBoxGuestAdditions.iso
192 $(RM
) -f
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
194 ifeq ($(KBUILD_HOST
),win
)
195 buildserver-additions-affinity-hack
:
196 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/additions.sh
--cmd fetch
--filename
$(PATH_TARGET
)/VBoxGuestAdditions.iso.tmp
203 # Install documentation files (at the moment the .chm) from the build server.
205 ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
206 ## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
207 INSTALLS
+= buildserver-docs
208 buildserver-docs_INST
= $(INST_BIN
)
209 buildserver-docs_MODE
= 0644
210 buildserver-docs_SOURCES
= \
211 $(addprefix $(PATH_TARGET
)/, \
212 VirtualBox.chm UserManual.pdf \
213 $(foreach f
,$(VBOX_MANUAL_ADD_LANGUAGES
),VirtualBox_
$(f
).chm UserManual_
$(f
).pdf
))
214 buildserver-docs_CLEANS
= \
215 $(buildserver-docs_0_OUTDIR
)/unpacked.ts \
216 $(buildserver-docs_0_OUTDIR
)/VBoxDocumentation.zip \
217 $(buildserver-docs_0_OUTDIR
)/VBoxDocumentation.zip.tmp \
218 $(addprefix $(PATH_TARGET
)/, \
219 VirtualBox.chm UserManual.pdf \
220 $(foreach f
,$(VBOX_MANUAL_ADD_LANGUAGES
),VirtualBox_
$(f
).chm UserManual_
$(f
).pdf
))
222 ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
223 include $(KBUILD_PATH
)/tools
/ZIP.kmk
225 $$(buildserver-docs_0_OUTDIR
)/unpacked.ts
+|
$(PATH_TARGET
)/VirtualBox.chm
$(PATH_TARGET
)/UserManual.pdf \
226 $(foreach f
,$(VBOX_MANUAL_ADD_LANGUAGES
),$(PATH_TARGET
)/VirtualBox_
$(f
).chm
$(PATH_TARGET
)/UserManual_
$(f
).pdf
): \
227 $$(buildserver-docs_0_OUTDIR
)/VBoxDocumentation.zip
228 $(call MSG_L1
,Unpacking documentation
)
229 $(QUIET
)$(TOOL_ZIP_UNPACK
) $(TOOL_ZIP_UNPACKFLAGS
) -o
$< -d
$(PATH_TARGET
)
230 $(APPEND
) -t
$@
"done"
232 $$(buildserver-docs_0_OUTDIR
)/VBoxDocumentation.zip
: $(VBOX_SVN_REV_KMK
) $(PATH_DEVTOOLS
)/bin
/documentation.sh |
$$(dir $$@
)
234 ifneq ($(KBUILD_HOST
),win
)
235 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/documentation.sh
--cmd fetch
--filename
$@.tmp
237 $(KMK
) --affinity
1 -f
$(MAKEFILE
) buildserver-documentation-affinity-hack
241 ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
243 ifeq ($(KBUILD_HOST
),win
)
244 buildserver-documentation-affinity-hack
:
245 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/documentation.sh
--cmd fetch
--filename
$(buildserver-docs_0_OUTDIR
)/VBoxDocumentation.zip.tmp
247 endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
252 # Install EFI firmware image
254 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
256 # Either from the build server.
258 INSTALLS
+= buildserver-efifw
259 buildserver-efifw_INST
= $(INST_BIN
)
260 buildserver-efifw_MODE
= 0644
261 buildserver-efifw_SOURCES
= \
262 $(buildserver-efifw_0_OUTDIR
)/FV
/VBOX.fd
=>VBoxEFI32.fd \
263 $(buildserver-efifw_0_OUTDIR
)/FV
/VBOX64.fd
=>VBoxEFI64.fd
264 buildserver-efifw_CLEANS
= \
265 $(buildserver-efifw_0_OUTDIR
)/unpacked.ts \
266 $(buildserver-efifw_0_OUTDIR
)/FV
/VBOX.fd \
267 $(buildserver-efifw_0_OUTDIR
)/FV
/VBOX64.fd \
268 $(buildserver-efifw_0_OUTDIR
)/VBoxEfiFirmware.zip \
269 $(buildserver-efifw_0_OUTDIR
)/VBoxEfiFirmware.zip.tmp
270 ## @todo rainy day: cleanup the output directory (zip contains lots more)
272 ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
273 include $(KBUILD_PATH
)/tools
/ZIP.kmk
275 $$(buildserver-efifw_0_OUTDIR
)/unpacked.ts \
276 +|
$$(buildserver-efifw_0_OUTDIR
)/FV
/VBOX.fd \
277 $$(buildserver-efifw_0_OUTDIR
)/FV
/VBOX64.fd
: \
278 $$(buildserver-efifw_0_OUTDIR
)/VBoxEfiFirmware.zip
279 $(call MSG_L1
,Unpacking EFI firmware
)
280 $(QUIET
)$(TOOL_ZIP_UNPACK
) $(TOOL_ZIP_UNPACKFLAGS
) -o
$< -d
$(buildserver-efifw_0_OUTDIR
)
281 $(APPEND
) -t
$@
"done"
283 $$(buildserver-efifw_0_OUTDIR
)/VBoxEfiFirmware.zip
: \
284 $(VBOX_SVN_REV_KMK
) $(PATH_DEVTOOLS
)/bin
/efi_firmware.sh |
$$(dir $$@
)
286 ifneq ($(KBUILD_HOST
),win
)
287 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/efi_firmware.sh
--cmd fetch
--filename
$@.tmp
289 $(KMK
) --affinity
1 -f
$(MAKEFILE
) buildserver-efifw-affinity-hack
293 ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
295 ifeq ($(KBUILD_HOST
),win
)
296 buildserver-efifw-affinity-hack
:
297 $(SHELL
) $(PATH_DEVTOOLS
)/bin
/efi_firmware.sh
--cmd fetch
--filename
$(buildserver-efifw_0_OUTDIR
)/VBoxEfiFirmware.zip.tmp
299 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
301 # Or from the local copy
303 INSTALLS
+= local-efifw
304 local-efifw_INST
= $(INST_BIN
)
305 local-efifw_MODE
= 0644
306 local-efifw_SOURCES
= \
307 $(PATH_ROOT
)/src
/VBox
/Devices
/EFI
/FirmwareBin
/VBoxEFI32.fd
=>VBoxEFI32.fd \
308 $(PATH_ROOT
)/src
/VBox
/Devices
/EFI
/FirmwareBin
/VBoxEFI64.fd
=>VBoxEFI64.fd
309 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
310 endif # VBOX_WITH_EFI
314 # Install staged binaries on platforms where we can't cross
317 ifn1of
($(KBUILD_TARGET
), l4 linux win
)
318 VBOX_PATH_STAGED ?
= .
321 ifndef VBOX_WITH_LINUX_ADDITIONS
322 ifndef VBOX_WITH_WIN32_ADDITIONS
323 ifneq ($(wildcard $(VBOX_PATH_STAGED
)/VBoxGuestAdditions.iso
),)
324 INSTALLS
+= staged-additions
325 staged-additions_INST
= $(INST_ADDITIONS_ISO
)
326 staged-additions_MODE
= 0644
327 staged-additions_SOURCES
= $(VBOX_PATH_STAGED
)/VBoxGuestAdditions.iso
333 ifndef VBOX_WITH_WIN32_ADDITIONS
334 ifneq ($(wildcard $(VBOX_PATH_STAGED
)/guesttool.exe
),)
335 INSTALLS
+= staged-guesttool
336 staged-guesttool_INST
= $(INST_BIN
)
337 staged-guesttool_SOURCES
= $(VBOX_PATH_STAGED
)/guesttool.exe
343 endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
347 # It may sound a bit odd, but for preparing the documentation package the
348 # doxygen documentation isn't needed and increases the build time a lot.
350 else # !VBOX_ONLY_DOCS
352 # Generate documentation.
353 # (This should be converted into a separate pass or merged with an existing one later.)
355 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
358 endif # !VBOX_ONLY_DOCS
360 docs.Core docs.core
: $(PATH_TARGET
)/docs.Core
365 # The core (VMM+REM+Devices+Main) documentation.
367 # This includes so much because we wish to have the complete CFGM
371 $(PATH_TARGET
)/Doxyfile.Core \
372 $(PATH_TARGET
)/Doxyfile.Core.dep
374 VBOX_CORE_DOXYFILE_INPUT_DIRS
= \
381 include/VBox
/ExtPack \
382 include/VBox
/HostServices \
383 include/VBox
/GuestHost \
389 src
/VBox
/VMM
/VMMAll \
390 src
/VBox
/VMM
/VMMSwitcher \
393 src
/VBox
/Devices
/Audio \
394 src
/VBox
/Devices
/Bus \
395 src
/VBox
/Devices
/Graphics \
396 src
/VBox
/Devices
/Graphics
/BIOS \
397 src
/VBox
/Devices
/Input \
398 src
/VBox
/Devices
/Networking \
399 src
/VBox
/Devices
/PC \
400 src
/VBox
/Devices
/PC
/BIOS \
401 src
/VBox
/Devices
/Parallel \
402 src
/VBox
/Devices
/Serial \
403 src
/VBox
/Devices
/Storage \
404 src
/VBox
/Devices
/USB \
405 src
/VBox
/Devices
/USB
/darwin \
406 src
/VBox
/Devices
/USB
/linux \
407 src
/VBox
/Devices
/USB
/os2 \
408 src
/VBox
/Devices
/USB
/solaris \
409 src
/VBox
/Devices
/USB
/vrdp \
410 src
/VBox
/Devices
/USB
/win32 \
411 src
/VBox
/Devices
/VMMDev \
412 src
/VBox
/Main
/include \
413 src
/VBox
/Main
/include/hgcm \
416 src
/VBox
/Main
/webservice \
418 src
/VBox
/Main
/src-all \
419 src
/VBox
/Main
/src-all
/win \
420 src
/VBox
/Main
/src-client \
421 src
/VBox
/Main
/src-client
/win \
422 src
/VBox
/Main
/src-client
/xpcom \
423 src
/VBox
/Main
/src-server \
424 src
/VBox
/Main
/src-server
/darwin \
425 src
/VBox
/Main
/src-server
/linux \
426 src
/VBox
/Main
/src-server
/os2 \
427 src
/VBox
/Main
/src-server
/solaris \
428 src
/VBox
/Main
/src-server
/win \
429 src
/VBox
/Main
/src-server
/xpcom \
430 src
/VBox
/HostServices \
431 src
/VBox
/HostServices
/DragAndDrop \
432 src
/VBox
/HostServices
/GuestControl \
433 src
/VBox
/HostServices
/GuestProperties \
434 src
/VBox
/HostServices
/SharedClipboard \
435 src
/VBox
/HostServices
/SharedFolders \
436 src
/VBox
/HostServices
/SharedOpenGL \
437 src
/VBox
/HostServices
/SharedOpenGL
/crserver \
438 src
/VBox
/HostServices
/SharedOpenGL
/crserverlib \
439 src
/VBox
/HostServices
/SharedOpenGL
/render \
440 src
/VBox
/HostServices
/SharedOpenGL
/unpacker \
441 src
/VBox
/HostServices
/auth \
442 src
/VBox
/HostServices
/auth
/directoryservice \
443 src
/VBox
/HostServices
/auth
/pam \
444 src
/VBox
/HostServices
/auth
/simple \
445 src
/VBox
/HostServices
/auth
/winlogon \
446 src
/VBox
/HostDrivers
/Support \
447 src
/VBox
/HostDrivers
/Support
/darwin \
448 src
/VBox
/HostDrivers
/Support
/freebsd \
449 src
/VBox
/HostDrivers
/Support
/l4 \
450 src
/VBox
/HostDrivers
/Support
/linux \
451 src
/VBox
/HostDrivers
/Support
/os2 \
452 src
/VBox
/HostDrivers
/Support
/solaris \
453 src
/VBox
/HostDrivers
/Support
/win \
454 src
/VBox
/HostDrivers
/VBoxNetFlt \
455 src
/VBox
/HostDrivers
/VBoxNetFlt
/darwin \
456 src
/VBox
/HostDrivers
/VBoxNetFlt
/linux \
457 src
/VBox
/HostDrivers
/VBoxNetFlt
/solaris \
458 src
/VBox
/HostDrivers
/VBoxNetFlt
/win \
459 src
/VBox
/HostDrivers
/VBoxNetNat \
460 src
/VBox
/HostDrivers
/VBoxNetNat
/darwin \
461 src
/VBox
/HostDrivers
/VBoxNetNat
/linux \
462 src
/VBox
/HostDrivers
/VBoxNetNat
/solaris \
463 src
/VBox
/HostDrivers
/VBoxNetNat
/win \
464 src
/VBox
/HostDrivers
/VBoxNetAdp \
465 src
/VBox
/HostDrivers
/VBoxNetAdp
/darwin \
466 src
/VBox
/HostDrivers
/VBoxNetAdp
/linux \
467 src
/VBox
/HostDrivers
/VBoxNetAdp
/solaris \
468 src
/VBox
/HostDrivers
/VBoxNetAdp
/win \
469 src
/VBox
/HostDrivers
/VBoxPci \
470 src
/VBox
/HostDrivers
/VBoxPci
/darwin \
471 src
/VBox
/HostDrivers
/VBoxPci
/linux \
472 src
/VBox
/HostDrivers
/VBoxPci
/solaris \
473 src
/VBox
/HostDrivers
/VBoxPci
/win \
474 src
/VBox
/HostDrivers
/VBoxUSB \
475 src
/VBox
/HostDrivers
/VBoxUSB
/darwin \
476 src
/VBox
/HostDrivers
/VBoxUSB
/os2 \
477 src
/VBox
/HostDrivers
/VBoxUSB
/solaris \
478 src
/VBox
/HostDrivers
/VBoxUSB
/win \
479 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Device \
480 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Device
/amd64 \
481 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Device
/x86 \
482 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Filter \
483 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Install \
484 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Monitor \
485 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Monitor
/win32 \
486 src
/VBox
/HostDrivers
/VBoxUSB
/win
/Monitor
/win64 \
487 src
/VBox
/HostDrivers
/VBoxUSB
/win
/usbd \
489 src
/VBox
/Additions
/WINNT \
490 src
/VBox
/Additions
/WINNT
/Graphics \
491 src
/VBox
/Additions
/WINNT
/Graphics
/Video \
492 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/common \
493 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/common
/wddm \
494 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/common
/xpdm \
495 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/disp \
496 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/disp
/common \
497 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/disp
/wddm \
498 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/disp
/wddm
/dbg \
499 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/disp
/xpdm \
500 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/mp \
501 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/mp
/common \
502 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/mp
/wddm \
503 src
/VBox
/Additions
/WINNT
/Graphics
/Video
/mp
/xpdm \
504 src
/VBox
/Additions
/WINNT
/Graphics
/Wine \
505 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/d3d8 \
506 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/d3d9 \
507 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/libWine \
508 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/switcher \
509 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/vbox \
510 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/vbox
/libWineStub \
511 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/vbox
/libWineStub
/include \
512 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/vbox
/libWineStub
/include/backup \
513 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/vbox
/libWineStub
/include/wine \
514 src
/VBox
/Additions
/WINNT
/Graphics
/Wine
/wined3d \
515 src
/VBox
/Additions
/WINNT
/Installer \
516 src
/VBox
/Additions
/WINNT
/Installer
/ISO \
517 src
/VBox
/Additions
/WINNT
/Installer
/InstallHelper \
518 src
/VBox
/Additions
/WINNT
/Installer
/Languages \
519 src
/VBox
/Additions
/WINNT
/Installer
/Loader \
520 src
/VBox
/Additions
/WINNT
/Mouse \
521 src
/VBox
/Additions
/WINNT
/Mouse
/NT5 \
522 src
/VBox
/Additions
/WINNT
/Mouse
/common \
523 src
/VBox
/Additions
/WINNT
/SharedFolders \
524 src
/VBox
/Additions
/WINNT
/SharedFolders
/redirector \
525 src
/VBox
/Additions
/WINNT
/SharedFolders
/redirector
/dll \
526 src
/VBox
/Additions
/WINNT
/SharedFolders
/redirector
/sys \
527 src
/VBox
/Additions
/WINNT
/SharedFolders
/redirector
/sys
/rdbss \
528 src
/VBox
/Additions
/WINNT
/VBoxCredProv \
529 src
/VBox
/Additions
/WINNT
/VBoxGINA \
530 src
/VBox
/Additions
/WINNT
/VBoxHook \
531 src
/VBox
/Additions
/WINNT
/VBoxTray \
532 src
/VBox
/Additions
/WINNT
/VBoxUSB \
533 src
/VBox
/Additions
/WINNT
/i8042prt \
534 src
/VBox
/Additions
/WINNT
/i8042prt
/i386 \
535 src
/VBox
/Additions
/WINNT
/i8042prt
/include \
536 src
/VBox
/Additions
/WINNT
/include \
537 src
/VBox
/Additions
/common \
538 src
/VBox
/Additions
/common
/VBoxControl \
539 src
/VBox
/Additions
/common
/VBoxGuest \
540 src
/VBox
/Additions
/common
/VBoxGuest
/freebsd \
541 src
/VBox
/Additions
/common
/VBoxGuest
/linux \
542 src
/VBox
/Additions
/common
/VBoxGuest
/win \
543 src
/VBox
/Additions
/common
/VBoxGuestLib \
544 src
/VBox
/Additions
/common
/VBoxService \
545 src
/VBox
/Additions
/common
/VBoxVideo \
546 src
/VBox
/Additions
/common
/crOpenGL \
547 src
/VBox
/Additions
/common
/crOpenGL
/array \
548 src
/VBox
/Additions
/common
/crOpenGL
/feedback \
549 src
/VBox
/Additions
/common
/crOpenGL
/pack \
550 src
/VBox
/Additions
/common
/crOpenGL
/passthrough \
551 src
/VBox
/Additions
/common
/pam \
552 src
/VBox
/Additions
/darwin \
553 src
/VBox
/Additions
/freebsd \
554 src
/VBox
/Additions
/freebsd
/Installer \
555 src
/VBox
/Additions
/freebsd
/drm \
556 src
/VBox
/Additions
/freebsd
/vboxvfs \
557 src
/VBox
/Additions
/linux \
558 src
/VBox
/Additions
/linux
/drm \
559 src
/VBox
/Additions
/linux
/installer \
560 src
/VBox
/Additions
/linux
/selinux-fedora \
561 src
/VBox
/Additions
/linux
/sharedfolders \
562 src
/VBox
/Additions
/os2 \
563 src
/VBox
/Additions
/os2
/VBoxGradd \
564 src
/VBox
/Additions
/os2
/VBoxGradd
/graddlib \
565 src
/VBox
/Additions
/os2
/VBoxGrext \
566 src
/VBox
/Additions
/os2
/VBoxMouse \
567 src
/VBox
/Additions
/os2
/VBoxSF \
568 src
/VBox
/Additions
/solaris \
569 src
/VBox
/Additions
/solaris
/DRM \
570 src
/VBox
/Additions
/solaris
/DRM
/include \
571 src
/VBox
/Additions
/solaris
/Installer \
572 src
/VBox
/Additions
/solaris
/SharedFolders \
573 src
/VBox
/Additions
/solaris
/SharedFolders
/solaris10 \
574 src
/VBox
/Additions
/solaris
/SharedFolders
/solaris10
/sys \
575 src
/VBox
/Additions
/solaris
/Virtio \
576 src
/VBox
/Additions
/x11 \
577 src
/VBox
/Additions
/x11
/Installer \
578 src
/VBox
/Additions
/x11
/VBoxClient \
579 src
/VBox
/Additions
/x11
/vboxmouse \
580 src
/VBox
/Additions
/x11
/vboxmouse
/xorg70 \
581 src
/VBox
/Additions
/x11
/vboxmouse
/xorg71 \
582 src
/VBox
/Additions
/x11
/vboxvideo \
583 src
/VBox
/NetworkServices \
584 src
/VBox
/NetworkServices
/DHCP \
585 src
/VBox
/NetworkServices
/NAT \
586 src
/VBox
/NetworkServices
/NetLib \
589 # These must come first in order to make things look nice.
590 VBOX_CORE_DOXYFILE_INPUT_FIRST
=\
591 $(PATH_ROOT
)/doc
/VBox-doc.c \
592 $(PATH_ROOT
)/doc
/VBox-CodingGuidelines.
cpp \
593 $(PATH_ROOT
)/doc
/VBox-MakefileGuidelines.
cpp \
594 $(PATH_ROOT
)/src
/VBox
/VMM
/Docs-CodingGuidelines.
cpp \
595 $(PATH_ROOT
)/src
/VBox
/VMM
/Docs-RawMode.
cpp \
596 $(PATH_ROOT
)/include/VBox
/cdefs.h \
597 $(PATH_ROOT
)/include/VBox
/vmm
/vmapi.h \
598 $(PATH_ROOT
)/include/VBox
/vmm
/vmm.h \
599 $(PATH_ROOT
)/include/VBox
/vmm
/cpum.h \
600 $(PATH_ROOT
)/include/VBox
/vmm
/mm.h \
601 $(PATH_ROOT
)/include/VBox
/vmm
/pgm.h \
602 $(PATH_ROOT
)/include/VBox
/vmm
/selm.h \
603 $(PATH_ROOT
)/include/VBox
/vmm
/trpm.h \
604 $(PATH_ROOT
)/include/VBox
/vmm
/patm.h \
605 $(PATH_ROOT
)/include/VBox
/vmm
/dbgf.h \
606 $(PATH_ROOT
)/include/VBox
/vmm
/stam.h \
607 $(PATH_ROOT
)/include/VBox
/vmm
/em.h \
608 $(PATH_ROOT
)/include/VBox
/vmm
/pdm.h \
609 $(PATH_ROOT
)/include/VBox
/vmm
/rem.h \
610 $(PATH_ROOT
)/include/VBox
/vmm
/iom.h \
611 $(PATH_ROOT
)/include/VBox
/vmm
/cfgm.h \
612 $(PATH_ROOT
)/include/VBox
/vmm
/tm.h \
613 $(PATH_ROOT
)/include/VBox
/vmm
/csam.h \
614 $(PATH_ROOT
)/include/VBox
/vmm
/ssm.h \
615 $(PATH_ROOT
)/include/VBox
/vmm
/hm.h \
616 $(PATH_ROOT
)/include/VBox
/vmm
/hm_svm.h \
617 $(PATH_ROOT
)/include/VBox
/vmm
/hm_vmx.h \
619 $(PATH_ROOT
)/src
/VBox
/VMM
/include/CFGMInternal.h \
620 $(PATH_ROOT
)/src
/VBox
/VMM
/include/CPUMInternal.h \
621 $(PATH_ROOT
)/src
/VBox
/VMM
/include/DBGFInternal.h \
622 $(PATH_ROOT
)/src
/VBox
/VMM
/include/EMInternal.h \
623 $(PATH_ROOT
)/src
/VBox
/VMM
/include/HMInternal.h \
624 $(PATH_ROOT
)/src
/VBox
/VMM
/include/IOMInternal.h \
625 $(PATH_ROOT
)/src
/VBox
/VMM
/include/MMInternal.h \
626 $(PATH_ROOT
)/src
/VBox
/VMM
/include/PDMInternal.h \
627 $(PATH_ROOT
)/src
/VBox
/VMM
/include/PGMInternal.h \
628 $(PATH_ROOT
)/src
/VBox
/VMM
/include/CSAMInternal.h \
629 $(PATH_ROOT
)/src
/VBox
/VMM
/include/PATMInternal.h \
630 $(PATH_ROOT
)/src
/VBox
/VMM
/include/REMInternal.h \
631 $(PATH_ROOT
)/src
/VBox
/VMM
/include/SELMInternal.h \
632 $(PATH_ROOT
)/src
/VBox
/VMM
/include/SSMInternal.h \
633 $(PATH_ROOT
)/src
/VBox
/VMM
/include/STAMInternal.h \
634 $(PATH_ROOT
)/src
/VBox
/VMM
/include/TMInternal.h \
635 $(PATH_ROOT
)/src
/VBox
/VMM
/include/TRPMInternal.h \
636 $(PATH_ROOT
)/src
/VBox
/VMM
/include/VMInternal.h \
637 $(PATH_ROOT
)/src
/VBox
/VMM
/include/VMMInternal.h \
639 $(PATH_ROOT
)/include/VBox
/vmm
/vm.h \
641 $(PATH_ROOT
)/include/VBox
/sup.h \
642 $(PATH_ROOT
)/include/VBox
/vd.h \
643 $(PATH_ROOT
)/include/VBox
/types.h \
644 $(PATH_ROOT
)/include/VBox
/err.h \
645 $(PATH_ROOT
)/include/VBox
/vmm
/cpumdis.h \
646 $(PATH_ROOT
)/include/VBox
/dbggui.h \
647 $(PATH_ROOT
)/include/VBox
/dis.h \
648 $(PATH_ROOT
)/include/VBox
/disopcode.h \
649 $(PATH_ROOT
)/include/VBox
/intnet.h \
650 $(PATH_ROOT
)/include/VBox
/settings.h \
651 $(PATH_ROOT
)/include/VBox
/pci.h \
652 $(PATH_ROOT
)/include/VBox
/scsi.h \
653 $(PATH_ROOT
)/include/VBox
/shflsvc.h \
654 $(PATH_ROOT
)/include/VBox
/hgcmsvc.h \
655 $(PATH_ROOT
)/include/VBox
/usb.h \
656 $(PATH_ROOT
)/include/VBox
/vusb.h \
658 $(PATH_ROOT
)/include/VBox
/log.h \
659 $(PATH_ROOT
)/include/VBox
/param.h \
660 $(PATH_ROOT
)/include/VBox
/version.h
662 VBOX_CORE_DOXYFILE_INPUT
:= \
663 $(filter-out %.
cpp.h
, $(sort $(wildcard $(addsuffix /*.h
, $(VBOX_CORE_DOXYFILE_INPUT_DIRS
)))) ) \
664 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS
), $(wildcard $(dir)/*.
cpp $(dir)/*.c
$(dir)/.asm
))
665 VBOX_CORE_DOXYFILE_INPUT
:= \
666 $(VBOX_CORE_DOXYFILE_INPUT_FIRST
) \
667 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST
), $(VBOX_CORE_DOXYFILE_INPUT
))
669 # And some some additional stuff.
670 VBOX_CORE_DOXYFILE_INPUT
+= \
671 $(PATH_ROOT
)/src
/recompiler
/VBoxRecompiler.c \
672 $(PATH_ROOT
)/src
/recompiler
/VBoxREMWrapper.
cpp
675 VBOX_CORE_DOXYFILE_OUTPUT
= $(PATH_OUT
)/docs
/Core
676 BLDDIRS
+= $(VBOX_CORE_DOXYFILE_OUTPUT
)
678 -include $(PATH_TARGET
)/Doxyfile.Core.dep
680 # Generate the Doxyfile
681 $(PATH_TARGET
)/Doxyfile.Core
: Doxyfile.Core \
682 $(comp-vars VBOX_CORE_DOXYFILE_INPUT
,DOXYGEN_INPUT_PREV
,FORCE
) \
683 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT
,DOXYGEN_OUTPUT_PREV
,FORCE
) \
685 $(RM
) -f
$@
$@.tmp
$(PATH_TARGET
)/Doxyfile.Core.dep
686 $(CP
) -f Doxyfile.Core
$@.tmp
688 $(APPEND
) $@.tmp
"OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
689 $(APPEND
) $@.tmp
"WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
690 $(APPEND
) $@.tmp
"INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
691 $(APPEND
) $@.tmp
"INCLUDE_FILE_PATTERNS = *.cpp.h"
693 $(APPEND
) $@.tmp
"INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
695 $(APPEND
) $@.tmp
"PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
696 $(APPEND
) $@.tmp
"PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
699 @
$(APPEND
) $(PATH_TARGET
)/Doxyfile.Core.dep
"DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
700 @
$(APPEND
) $(PATH_TARGET
)/Doxyfile.Core.dep
"DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
703 $(PATH_TARGET
)/docs.Core
: $(PATH_TARGET
)/Doxyfile.Core
$$(VBOX_CORE_DOXYFILE_INPUT
) |
$(VBOX_CORE_DOXYFILE_OUTPUT
)/
704 $(RM
) -f
$(PATH_TARGET
)/docs.Core
705 $(RM
) -Rf
$(VBOX_CORE_DOXYFILE_OUTPUT
)/html
/
706 doxygen
$(PATH_TARGET
)/Doxyfile.Core
707 $(APPEND
) $(PATH_TARGET
)/docs.Core
711 # Alias for kmk_time. Used by both the additions and testsuite build setups.
713 VBOX_KMK_TIME
= $(KBUILD_BIN_PATH
)/kmk_time
720 # The basic rsync invocation for syncing the tree into a VM; the source and
721 # target specs are missing.
724 # @param 2 arch or *.
726 VBOX_RSYNC_IN_FN
= rsync
-a
-v
--delete
--delete-excluded
--prune-empty-dirs \
729 --exclude
=doc
/Devices
/ \
732 --exclude
=doc
/L4VM
/ \
733 --exclude
=tinderclient.log \
734 --exclude
=tools
/FetchDir
/ \
735 --exclude
=webtools
/ \
736 $(foreach os
,darwin freebsd linux solaris os2 win
,$(if-expr
"$(1)" != "$(os)", \
737 --exclude
=tools
/$(os
).x86
/ \
738 --exclude
=tools
/$(os
).amd64
/ \
739 --exclude
=out
/$(os
).amd64
/ \
740 --exclude
=out
/$(os
).x86
/ \
742 "$(2)" == "x86" , --exclude
=out
/$(os
).amd64
/$(KBUILD_TYPE
)/, \
743 "$(2)" == "amd64", --exclude
=out
/$(os
).x86
/$(KBUILD_TYPE
)/) \
749 VBOX_BLD_VM_LNX_X86_IP
:= 192.168.27.2
750 VBOX_BLD_VM_LNX_AMD64_IP
:= 192.168.27.12
751 VBOX_BLD_VM_LNX_NEW_X86_IP
:= 192.168.27.11
752 VBOX_BLD_VM_OS2_IP
:= 192.168.27.3
753 VBOX_BLD_VM_SOLARIS_IP
:= 192.168.27.4
754 VBOX_BLD_VM_DARWIN_X86_IP
:= 192.168.27.5
755 VBOX_BLD_VM_DARWIN_AMD64_IP
:= 192.168.27.15
756 VBOX_BLD_VM_WIN_X86_IP
:= 192.168.27.6
757 VBOX_BLD_VM_WIN_AMD64_IP
:= 192.168.27.16
758 VBOX_BLD_VM_FBSD_X86_IP
:= 192.168.27.7
759 VBOX_BLD_VM_FBSD_AMD64_IP
:= 192.168.27.17
761 VBOX_WITH_OS2_ADD_BUILD
=1
764 # For profiling the VM building steps.
767 VBOX_BLD_VM_MSG_BEGIN
= $(call MSG_L1
,Building
$1.
)
768 VBOX_BLD_VM_MSG_END__
=
770 VBOX_BLD_VM_MSG_BEGIN
= @echo
`date "+%Y-%m-%dT%H:%M:%S"` - Building
$1.
771 VBOX_BLD_VM_MSG_END__
= @echo
`date "+%Y-%m-%dT%H:%M:%S"` - Done building
$1.
775 # Build the additions, all of them.
777 # This is currently tailored (hardcoded) for the additions
778 # build box. Can make it pretty and configurable later.
780 # The fetching must be done in serial fashion, while the building
781 # should be more flexible wrt to -jN.
784 + $(KMK
) -C tools fetch VBOX_ONLY_ADDITIONS
=1
785 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=linux VBOX_ONLY_ADDITIONS
=1
786 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=linux VBOX_ONLY_ADDITIONS
=1
787 ifdef VBOX_WITH_OS2_ADD_BUILD
788 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=os2 BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=os2 VBOX_ONLY_ADDITIONS
=1
790 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=solaris VBOX_ONLY_ADDITIONS
=1
791 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=solaris VBOX_ONLY_ADDITIONS
=1
792 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=win VBOX_ONLY_ADDITIONS
=1
793 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=win VBOX_ONLY_ADDITIONS
=1
796 ## @todo Currently combined solaris additions building assumes that amd64 is
797 # built first. The windows amd64 additions need some x86 files, so don't change
798 # the order of the windows builds. TODO: Split building and packing for these two VMs.
800 additions-build-rsync-into-vms \
801 additions-build-win.x86 \
802 additions-build-win.amd64 \
803 additions-build-solaris.amd64 \
804 additions-build-solaris.x86 \
805 additions-build-os2.x86 \
806 additions-build-linux.x86.combined
808 additions-build-rsync-into-vms
: \
809 additions-build-solaris.rsync-into-vm \
810 additions-build-os2.rsync-into-vm
811 $(call MSG_L1
,Rsynced the sources
+ tools into the VMs.
)
812 .NOTPARALLEL
: additions-build-rsync-into-vms
815 VBOX_ADDITIONS_BUILD.amd64
= VBOX_ONLY_ADDITIONS
=1 VBOX_WITHOUT_ADDITIONS_ISO
=1 \
816 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
817 KBUILD_TARGET_ARCH
=amd64 BUILD_TARGET_ARCH
=amd64 \
818 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
820 VBOX_ADDITIONS_BUILD.x86
= VBOX_ONLY_ADDITIONS
=1 VBOX_WITHOUT_ADDITIONS_ISO
=1 \
821 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
822 KBUILD_TARGET_ARCH
=x86 BUILD_TARGET_ARCH
=x86 \
823 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
825 # Automatically determine the additions build subdir name. Used for figuring
826 # out directory names inside the additions building VMs.
827 VBOX_ADDITIONS_BUILD_SUBDIRNAME
:= $(lastword
$(subst /, ,$(PATH_ROOT
)))
829 # When building in parallel on a Windows host, make sure we finish the host
830 # bit before kicking off any UNIX guest or we'll run into file sharing issues.
831 ifeq ($(KBUILD_TARGET
),win
)
832 VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST
= additions-build-win.x86 additions-build-win.amd64
834 VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST
=
837 # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
838 additions-build-win.amd64
: additions-build-win.x86
839 ifeq ($(KBUILD_TARGET
),win
)
840 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
841 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) packing
843 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/amd64 additions
)
844 $(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 "
845 $(call VBOX_BLD_VM_MSG_END__
,Windows
/amd64 additions
)
848 additions-build-win.x86
:
849 ifeq ($(KBUILD_TARGET
),win
)
850 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
851 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) packing
853 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/x86 additions
)
854 $(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"
855 $(call VBOX_BLD_VM_MSG_END__
,Windows
/x86 additions
)
858 # ASSUMES the 64-bit edition are built first. This also serializes VM access.
859 ifeq ($(KBUILD_TARGET
),solaris
)
860 additions-build-solaris.amd64
:
861 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
862 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) packing
864 additions-build-solaris.x86
: additions-build-solaris.amd64
865 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
=1 all $(VBOX_ADD_HOST_BUILD_TWEAK
)
866 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
=1 packing
868 additions-build-solaris.rsync-into-vm
:
870 additions-build-solaris.rsync-into-vm
:
871 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,solaris
,*) \
872 '--exclude=src/VBox/Additions/WINNT/**' \
873 '--exclude=src/VBox/Frontends/**' \
874 '--exclude=src/VBox/VMM/**' \
875 .
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME
)
877 additions-build-solaris.build-it
: additions-build-solaris.rsync-into-vm
878 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/amd64 additions
)
879 $(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"
880 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/amd64 additions
)
881 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/x86 additions
)
882 $(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"
883 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/x86 additions
)
885 additions-build-solaris.rsync-out-of-vm
: additions-build-solaris.build-it
886 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME
)/out
/solaris.x86 out
/
887 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME
)/out
/solaris.amd64 out
/
889 .NOTPARALLEL
: additions-build-solaris.rsync-into-vm
# additions-build-solaris.rsync-out-of-vm
890 .PHONY
: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
892 additions-build-solaris.amd64
: additions-build-solaris.rsync-out-of-vm
893 additions-build-solaris.x86
: additions-build-solaris.rsync-out-of-vm
896 ifdef VBOX_WITH_OS2_ADD_BUILD
897 ifeq ($(KBUILD_TARGET
),os2
)
898 additions-build-os2.x86
:
899 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
900 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) packing
902 additions-build-os2.rsync-into-vm
:
904 additions-build-os2.rsync-into-vm
:
905 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,os2
,*) \
906 '--exclude=src/VBox/Additions/x11/**' \
907 '--exclude=src/VBox/Additions/WINNT/**' \
908 '--exclude=src/VBox/Frontends/**' \
909 '--exclude=src/VBox/VMM/**' \
910 . rsync
://vbox@
$(VBOX_BLD_VM_OS2_IP
)/tinderbox
/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME
)
912 additions-build-os2.build-it
: additions-build-os2.rsync-into-vm
913 $(call VBOX_BLD_VM_MSG_BEGIN
,OS
/2 additions
)
914 $(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"
915 $(call VBOX_BLD_VM_MSG_END__
,OS
/2 additions
)
917 additions-build-os2.rsync-out-of-vm
: additions-build-os2.build-it
918 $(VBOX_KMK_TIME
) rsync
-v
-a
--delete rsync
://vbox@
$(VBOX_BLD_VM_OS2_IP
)/tinderbox
/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME
)/out
/os2.x86 .
/out
920 .NOTPARALLEL
: additions-build-os2.rsync-into-vm
#additions-build-os2.rsync-out-of-vm
921 .PHONY
: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
923 additions-build-os2.x86
: additions-build-os2.rsync-out-of-vm
927 additions-build-os2.x86
:
931 additions-build-linux.amd64
: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST
)
932 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.amd64
)
933 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
934 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.amd64
) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE
=1
936 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/amd64 additions
)
937 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_AMD64_IP
) " echo $@ && 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"
938 $(call VBOX_BLD_VM_MSG_END__
,Linux
/amd64 additions
)
941 additions-build-linux.x86
: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST
)
942 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.x86
)
943 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
944 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE
=1
946 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/x86 additions
)
947 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_X86_IP
) " echo $@ && 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"
948 $(call VBOX_BLD_VM_MSG_END__
,Linux
/x86 additions
)
951 # Combined Linux Additions .run package. This depends on the archives
952 # created during packing by the architecture-specific builds.
953 additions-build-linux.x86.combined
: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST
) additions-build-linux.x86 additions-build-linux.amd64
954 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.x86
)
955 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) all $(VBOX_ADD_HOST_BUILD_TWEAK
)
956 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_ADDITIONS_BUILD.x86
) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
=1
958 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/x86 additions
)
959 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_X86_IP
) " echo $@ && 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"
960 $(call VBOX_BLD_VM_MSG_END__
,Linux
/x86 additions
)
965 + $(KMK
) VBOX_ONLY_ADDITIONS
=1 \
966 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64
= \
967 VBOX_WITH_ADDITIONS_ISO.freebsd.x86
= \
968 VBOX_WITH_ADDITIONS_ISO.linux.amd64
= \
969 VBOX_WITH_ADDITIONS_ISO.linux.x86
=1 \
970 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
=1 \
971 VBOX_WITH_ADDITIONS_ISO.os2.x86
=1 \
972 VBOX_WITH_ADDITIONS_ISO.solaris.amd64
=1 \
973 VBOX_WITH_ADDITIONS_ISO.solaris.x86
=1 \
974 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
=1 \
975 VBOX_WITH_ADDITIONS_ISO.win.amd64
=1 \
976 VBOX_WITH_ADDITIONS_ISO.win.x86
=1 \
977 -C src
/VBox
/Additions \
978 $(VBOX_PATH_ADDITIONS
)/VBoxGuestAdditions.iso
981 additions-build-win.x86 \
982 additions-build-win.amd64 \
983 additions-build-solaris.amd64 \
984 additions-build-solaris.x86 \
985 additions-build-os2.x86 \
986 additions-build-linux.amd64 \
987 additions-build-linux.x86 \
988 additions-build-linux.x86.combined \
993 # Build the extension packs, all of them.
995 # This is tailored (hardcoded) for the extension pack build box.
997 # The fetching must be done in serial fashion, while the building should be
998 # more flexible wrt to -jN.
1001 + $(KMK
) -C tools fetch VBOX_ONLY_EXTPACKS
=1
1002 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=darwin BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=darwin VBOX_ONLY_EXTPACKS
=1
1003 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=darwin BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=darwin VBOX_ONLY_EXTPACKS
=1
1004 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1005 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1006 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=linux VBOX_ONLY_EXTPACKS
=1
1007 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=linux VBOX_ONLY_EXTPACKS
=1
1008 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1009 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=solaris VBOX_ONLY_EXTPACKS
=1
1010 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=solaris VBOX_ONLY_EXTPACKS
=1
1011 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=win VBOX_ONLY_EXTPACKS
=1
1012 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=win VBOX_ONLY_EXTPACKS
=1
1016 extpacks-build-win.amd64 \
1017 extpacks-build-win.x86 \
1018 extpacks-build-solaris.amd64 \
1019 extpacks-build-solaris.x86 \
1020 extpacks-build-os2.x86 \
1021 extpacks-build-linux.amd64 \
1022 extpacks-build-linux.x86 \
1023 extpacks-build-darwin.amd64 \
1024 extpacks-build-darwin.x86 \
1025 extpacks-build-freebsd.amd64 \
1026 extpacks-build-freebsd.x86
1028 VBOX_EXTPACKS_BUILD.amd64
= VBOX_ONLY_EXTPACKS
=1 \
1029 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
1030 KBUILD_TARGET_ARCH
=amd64 BUILD_TARGET_ARCH
=amd64 \
1031 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
1033 VBOX_EXTPACKS_BUILD.x86
= VBOX_ONLY_EXTPACKS
=1 \
1034 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
1035 KBUILD_TARGET_ARCH
=x86 BUILD_TARGET_ARCH
=x86 \
1036 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
1038 # Automatically determine the extpack build subdir name. Used for figuring out
1039 # directory names inside the extension pack building VMs.
1040 VBOX_EXTPACKS_BUILD_SUBDIRNAME
:= $(lastword
$(subst /, ,$(PATH_ROOT
)))
1042 # When building in parallel on a Windows host, make sure we finish the host
1043 # bit before kicking off any UNIX guest or we'll run into file sharing issues.
1044 ifeq ($(KBUILD_TARGET
),win
)
1045 VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
= extpacks-build-win.x86 extpacks-build-win.amd64
1047 VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
=
1050 extpacks-build-win.amd64
:
1051 ifeq ($(KBUILD_TARGET
),win
)
1052 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.amd64
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1054 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/amd64 extension packs
)
1055 $(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"
1056 $(call VBOX_BLD_VM_MSG_END__
,Windows
/amd64 extension packs
)
1059 extpacks-build-win.x86
:
1060 ifeq ($(KBUILD_TARGET
),win
)
1061 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.x86
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1063 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/x86 extension packs
)
1064 $(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"
1065 $(call VBOX_BLD_VM_MSG_END__
,Windows
/x86 extension packs
)
1068 ifeq ($(KBUILD_TARGET
),solaris
)
1069 extpacks-build-solaris.amd64
:
1070 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.amd64
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1072 extpacks-build-solaris.x86
: extpacks-build-solaris.amd64
1073 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.x86
) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1076 # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1077 extpacks-build-solaris.rsync-into-vm
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1078 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,solaris
,*) .
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)
1080 extpacks-build-solaris.build-it
: extpacks-build-solaris.rsync-into-vm
1081 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/amd64 extension packs
)
1082 $(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"
1083 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/amd64 extension packs
)
1084 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/x86 extension packs
)
1085 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_SOLARIS_IP
) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1086 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/x86 extension packs
)
1088 extpacks-build-solaris.rsync-out-of-vm
: extpacks-build-solaris.build-it
1089 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/solaris.x86 out
/
1090 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/solaris.amd64 out
/
1092 .NOTPARALLEL
: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
1093 .PHONY
: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1095 extpacks-build-solaris.amd64
: extpacks-build-solaris.rsync-out-of-vm
1096 extpacks-build-solaris.x86
: extpacks-build-solaris.rsync-out-of-vm
1099 extpacks-build-os2.x86
:
1100 #ifeq ($(KBUILD_TARGET),os2)
1101 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1103 # $(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) "
1106 extpacks-build-linux.amd64
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1107 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.amd64
)
1108 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.amd64
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1110 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/amd64 extension packs
)
1111 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_AMD64_IP
) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1112 $(call VBOX_BLD_VM_MSG_END__
,Linux
/amd64 extension packs
)
1115 extpacks-build-linux.x86
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1116 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.x86
)
1117 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.x86
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1119 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/x86 extension packs
)
1120 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_NEW_X86_IP
) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1121 $(call VBOX_BLD_VM_MSG_END__
,Linux
/x86 extension packs
)
1124 extpacks-build-freebsd.amd64
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1125 #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1126 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1128 # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1129 # $(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"
1130 # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1133 extpacks-build-freebsd.x86
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1134 #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1135 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1137 # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1138 # $(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"
1139 # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1142 extpacks-build-darwin.amd64
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1143 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),darwin.amd64
)
1144 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.amd64
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1146 $(call VBOX_BLD_VM_MSG_BEGIN
,Darwin
/amd64 extension packs
)
1147 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,darwin
,amd64
) .
$(VBOX_BLD_VM_DARWIN_AMD64_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)
1148 $(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"
1149 $(VBOX_KMK_TIME
) rsync
-am
-v
--delete
$(VBOX_BLD_VM_DARWIN_AMD64_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/darwin.amd64 out
/
1150 $(call VBOX_BLD_VM_MSG_END__
,Darwin
/amd64 extension packs
)
1153 extpacks-build-darwin.x86
: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST
)
1154 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),darwin.x86
)
1155 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_EXTPACKS_BUILD.x86
) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK
)
1157 $(call VBOX_BLD_VM_MSG_BEGIN
,Darwin
/x86 extension packs
)
1158 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,darwin
,x86
) .
$(VBOX_BLD_VM_DARWIN_X86_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)
1159 $(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"
1160 $(VBOX_KMK_TIME
) rsync
-am
-v
--delete
$(VBOX_BLD_VM_DARWIN_X86_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/darwin.x86 out
/
1161 $(call VBOX_BLD_VM_MSG_END__
,Darwin
/x86 extension packs
)
1166 + $(KMK
) VBOX_ONLY_EXTPACKS
=1 \
1167 VBOX_WITH_EXTPACK_OS_ARCHS
="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
1169 # +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1172 extpacks-build-win.x86 \
1173 extpacks-build-win.amd64 \
1174 extpacks-build-solaris.amd64 \
1175 extpacks-build-solaris.x86 \
1176 extpacks-build-os2.x86 \
1177 extpacks-build-linux.amd64 \
1178 extpacks-build-linux.x86 \
1179 extpacks-build-freebsd.amd64 \
1180 extpacks-build-freebsd.x86 \
1181 extpacks-build-darwin.amd64 \
1182 extpacks-build-darwin.x86 \
1187 # Build the test suite, all of it.
1189 # This is currently tailored (hardcoded) for the additions build box just like
1190 # the additions build above, which it in fact is a copy of.
1193 + $(KMK
) -C tools fetch VBOX_ONLY_TESTSUITE
=1
1194 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=darwin BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=darwin VBOX_ONLY_TESTSUITE
=1
1195 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=darwin BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=darwin VBOX_ONLY_TESTSUITE
=1
1196 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1197 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1198 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=linux VBOX_ONLY_TESTSUITE
=1
1199 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=linux BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=linux VBOX_ONLY_TESTSUITE
=1
1200 # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
1201 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=solaris VBOX_ONLY_TESTSUITE
=1
1202 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=solaris BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=solaris VBOX_ONLY_TESTSUITE
=1
1203 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=amd64 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=amd64 BUILD_TARGET
=win VBOX_ONLY_TESTSUITE
=1
1204 + $(KMK
) -C tools fetch KBUILD_TARGET_ARCH
=x86 KBUILD_TARGET
=win BUILD_TARGET_ARCH
=x86 BUILD_TARGET
=win VBOX_ONLY_TESTSUITE
=1
1208 testsuite-build-solaris.amd64 \
1209 testsuite-build-solaris.x86 \
1210 testsuite-build-win.x86 \
1211 testsuite-build-win.amd64 \
1212 testsuite-build-os2.x86 \
1213 testsuite-build-linux.amd64 \
1214 testsuite-build-linux.x86 \
1215 testsuite-build-freebsd.amd64 \
1216 testsuite-build-freebsd.x86 \
1217 testsuite-build-darwin.amd64 \
1218 testsuite-build-darwin.x86
1220 VBOX_TESTSUITE_BUILD.amd64
= VBOX_ONLY_TESTSUITE
=1 \
1221 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
1222 KBUILD_TARGET_ARCH
=amd64 BUILD_TARGET_ARCH
=amd64 \
1223 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
1225 VBOX_TESTSUITE_BUILD.x86
= VBOX_ONLY_TESTSUITE
=1 \
1226 KBUILD_TYPE
=$(KBUILD_TYPE
) BUILD_TYPE
=$(KBUILD_TYPE
) \
1227 KBUILD_TARGET_ARCH
=x86 BUILD_TARGET_ARCH
=x86 \
1228 VBOX_SVN_REV
=$(VBOX_SVN_REV
)
1230 # Automatically determine the testsuite build subdir name. Used for figuring
1231 # out directory names inside the test suite building VMs.
1232 VBOX_TESTSUITE_BUILD_SUBDIRNAME
:= $(lastword
$(subst /, ,$(PATH_ROOT
)))
1234 # When building in parallel on a Windows host, make sure we finish the host
1235 # bit before kicking off any UNIX guest or we'll run into file sharing issues.
1236 ifeq ($(KBUILD_TARGET
),win
)
1237 VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
= testsuite-build-win.x86 testsuite-build-win.amd64
1239 VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
=
1242 # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1243 testsuite-build-win.amd64
: testsuite-build-win.x86
1244 ifeq ($(KBUILD_TARGET
),win
)
1245 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.amd64
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1247 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/amd64 testsuite
)
1248 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_WIN_X86_IP
) " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.amd64) all "
1249 $(call VBOX_BLD_VM_MSG_END__
,Windows
/amd64 testsuite
)
1252 testsuite-build-win.x86
:
1253 ifeq ($(KBUILD_TARGET
),win
)
1254 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.x86
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1256 $(call VBOX_BLD_VM_MSG_BEGIN
,Windows
/x86 testsuite
)
1257 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_WIN_AMD64_IP
) " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1258 $(call VBOX_BLD_VM_MSG_END__
,Windows
/x86 testsuite
)
1261 ifeq ($(KBUILD_TARGET
),solaris
)
1262 testsuite-build-solaris.amd64
:
1263 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.amd64
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1265 testsuite-build-solaris.x86
:
1266 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.x86
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1269 testsuite-build-solaris.rsync-into-vm
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1270 $(VBOX_KMK_TIME
) rsync
-a
--delete
--delete-excluded
--exclude .svn
--exclude
=FetchDir
--exclude
=tinderclient.log
--exclude
=win.amd64
--exclude
=win.x86 .
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME
)
1272 testsuite-build-solaris.build-it
: testsuite-build-solaris.rsync-into-vm
1273 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/amd64 testsuite
)
1274 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_SOLARIS_IP
) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1275 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/amd64 testsuite
)
1276 $(call VBOX_BLD_VM_MSG_BEGIN
,Solaris
/x86 testsuite
)
1277 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_SOLARIS_IP
) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all "
1278 $(call VBOX_BLD_VM_MSG_END__
,Solaris
/x86 testsuite
)
1280 testsuite-build-solaris.rsync-out-of-vm
: testsuite-build-solaris.build-it
1281 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME
)/out
/solaris.x86 out
/
1282 $(VBOX_KMK_TIME
) rsync
-a
--delete
$(VBOX_BLD_VM_SOLARIS_IP
):/mnt
/tinderbox
/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME
)/out
/solaris.amd64 out
/
1284 .NOTPARALLEL
: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
1285 .PHONY
: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
1287 testsuite-build-solaris.amd64
: testsuite-build-solaris.rsync-out-of-vm
1288 testsuite-build-solaris.x86
: testsuite-build-solaris.rsync-out-of-vm
1291 testsuite-build-os2.x86
:
1292 #ifeq ($(KBUILD_TARGET),os2)
1293 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1295 # $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_OS2_IP) " cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) "
1298 testsuite-build-linux.amd64
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1299 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.amd64
)
1300 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.amd64
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1302 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/amd64 testsuite
)
1303 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_AMD64_IP
) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1304 $(call VBOX_BLD_VM_MSG_END__
,Linux
/amd64 testsuite
)
1307 testsuite-build-linux.x86
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1308 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),linux.x86
)
1309 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.x86
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1311 $(call VBOX_BLD_VM_MSG_BEGIN
,Linux
/x86 testsuite
)
1312 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_LNX_X86_IP
) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1313 $(call VBOX_BLD_VM_MSG_END__
,Linux
/x86 testsuite
)
1316 testsuite-build-freebsd.amd64
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1317 #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1318 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1320 # $(call VBOX_BLD_VM_MSG_BEGIN,freebsd/amd64 testsuite)
1321 # $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1322 # $(call VBOX_BLD_VM_MSG_END__,freebsd/amd64 testsuite)
1325 testsuite-build-freebsd.x86
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1326 #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1327 # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1329 # $(call VBOX_BLD_VM_MSG_BEGIN,freebsd/x86 testsuite)
1330 # $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1331 # $(call VBOX_BLD_VM_MSG_END__,freebsd/x86 testsuite)
1334 testsuite-build-darwin.amd64
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1335 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),darwin.amd64
)
1336 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.amd64
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1338 $(call VBOX_BLD_VM_MSG_BEGIN
,darwin
/amd64 testsuite
)
1339 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,darwin
,amd64
) .
$(VBOX_BLD_VM_DARWIN_AMD64_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)
1340 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_DARWIN_AMD64_IP
) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1341 $(VBOX_KMK_TIME
) rsync
-am
-v
--delete
$(VBOX_BLD_VM_DARWIN_AMD64_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/darwin.amd64 out
/
1342 $(call VBOX_BLD_VM_MSG_END__
,darwin
/amd64 testsuite
)
1345 testsuite-build-darwin.x86
: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST
)
1346 ifeq ($(KBUILD_TARGET
).
$(KBUILD_TARGET_ARCH
),darwin.x86
)
1347 + $(VBOX_KMK_TIME
) $(KMK
) $(VBOX_TESTSUITE_BUILD.x86
) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK
)
1349 $(call VBOX_BLD_VM_MSG_BEGIN
,darwin
/x86 testsuite
)
1350 $(VBOX_KMK_TIME
) $(call VBOX_RSYNC_IN_FN
,darwin
,x86
) .
$(VBOX_BLD_VM_DARWIN_X86_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)
1351 $(VBOX_KMK_TIME
) ssh vbox@
$(VBOX_BLD_VM_DARWIN_X86_IP
) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1352 $(VBOX_KMK_TIME
) rsync
-am
-v
--delete
$(VBOX_BLD_VM_DARWIN_X86_IP
):/Users
/vbox
/tinderbox
/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME
)/out
/darwin.x86 out
/
1353 $(call VBOX_BLD_VM_MSG_END__
,darwin
/x86 testsuite
)
1358 + $(KMK
) VBOX_ONLY_TESTSUITE
=1 \
1359 VBOX_WITH_TESTSUITE_PACKING.darwin.amd64
=1 \
1360 VBOX_WITH_TESTSUITE_PACKING.darwin.x86
=2 \
1361 VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64
= \
1362 VBOX_WITH_TESTSUITE_PACKING.freebsd.x86
= \
1363 VBOX_WITH_TESTSUITE_PACKING.linux.amd64
=1 \
1364 VBOX_WITH_TESTSUITE_PACKING.linux.x86
=1 \
1365 VBOX_WITH_TESTSUITE_PACKING.os2.x86
= \
1366 VBOX_WITH_TESTSUITE_PACKING.solaris.amd64
=1 \
1367 VBOX_WITH_TESTSUITE_PACKING.solaris.x86
=1 \
1368 VBOX_WITH_TESTSUITE_PACKING.win.amd64
=1 \
1369 VBOX_WITH_TESTSUITE_PACKING.win.x86
=1 \
1370 -C src
/VBox
/Testsuite \
1371 $(PATH_OUT
)/VBoxTestSuite.zip
1374 testsuite-build-win.x86 \
1375 testsuite-build-win.amd64 \
1376 testsuite-build-solaris.amd64 \
1377 testsuite-build-solaris.x86 \
1378 testsuite-build-os2.x86 \
1379 testsuite-build-linux.amd64 \
1380 testsuite-build-linux.x86 \
1381 testsuite-build-freebsd.amd64 \
1382 testsuite-build-freebsd.x86 \
1383 testsuite-build-darwin.amd64 \
1384 testsuite-build-darwin.x86 \
1389 # Build the EFI firmware, all of it.
1391 # Mainly hooks right now, maybe we need them later.
1395 efi-build
: $(VBOX_VERSION_HEADER
)
1396 $(PATH_ROOT
)/webtools
/tinderbox
/client
/efi-build.sh
1401 # Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1403 # - must be executed on an OSE checkout
1406 # the path where to store the tarball
1407 TARBALLPATH ?
= $(abspath
$(PATH_ROOT
)/..
)
1408 # the root directory inside the tarball
1409 TARBALLROOT ?
= VirtualBox-
$(subst _OSE
,,$(VBOX_VERSION_STRING
))
1410 # the name of the tarball file
1411 TARBALLNAME ?
= VirtualBox-
$(subst _OSE
,,$(VBOX_VERSION_STRING
)).
tar.bz2
1413 @
$(call MSG_L1
,Creating tarball
$(TARBALLPATH
)/$(TARBALLNAME
))
1414 @if
[ -r
"$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1416 echo
"Found RDP stuff, refused to build OSE tarball!"; \
1420 if
[ -z
"$(VBOX_OSE)" ]; then \
1422 echo
"Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1426 $(QUIET
)$(MKDIR
) -p
$(TARBALLPATH
)
1427 $(QUIET
)$(RM
) -f
$(TARBALLPATH
)/$(TARBALLROOT
)
1428 $(QUIET
)$(LN_SYMLINK
) $(PATH_ROOT
) $(TARBALLPATH
)/$(TARBALLROOT
)
1429 $(QUIET
)tar -cjh
--dereference
--owner
0 --group
0 --totals \
1431 --exclude
=$(TARBALLROOT
)/out \
1432 --exclude
=$(TARBALLROOT
)/env.sh \
1433 --exclude
=$(TARBALLROOT
)/configure.log \
1434 --exclude
=$(TARBALLROOT
)/build.log \
1435 --exclude
=$(TARBALLROOT
)/AutoConfig.kmk \
1436 --exclude
=$(TARBALLROOT
)/LocalConfig.kmk \
1437 --exclude
=$(TARBALLROOT
)/prebuild \
1439 -f
$(TARBALLPATH
)/$(TARBALLNAME
) \
1441 $(QUIET
)$(RM
) $(TARBALLPATH
)/$(TARBALLROOT
)
1445 # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1447 # - must be executed on an PUEL checkout
1450 # the path where to store the zip archive
1451 ZIPPATH ?
= $(abspath
$(PATH_ROOT
)/..
)
1452 # the root directory inside the zip archive
1453 ZIPROOT ?
= VirtualBox-
$(VBOX_VERSION_STRING
)
1454 # the name of the zip archive
1455 ZIPNAME ?
= VirtualBox-
$(VBOX_VERSION_STRING
).zip
1457 @
$(call MSG_L1
,Creating zip
$(ZIPPATH
)/$(ZIPNAME
))
1458 @if
[ ! -r
"$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1460 echo
"Did not find RDP stuff, is this an OSE branch?"; \
1464 @if
[ -z
"$(PASSWORD)" ]; then \
1466 echo
"Please specify a password with PASSWORD=..."; \
1470 $(QUIET
)$(MKDIR
) -p
$(ZIPPATH
)
1471 $(QUIET
)$(RM
) -f
$(ZIPPATH
)/$(ZIPROOT
)
1472 $(QUIET
)$(RM
) -f
$(ZIPPATH
)/$(ZIPNAME
)
1473 $(QUIET
)$(LN_SYMLINK
) $(PATH_ROOT
) $(ZIPPATH
)/$(ZIPROOT
)
1474 $(QUIET
)(cd
$(ZIPPATH
); 7z a \
1475 -l
-tzip
-mmt
=on
-mx
=7 -p
$(PASSWORD
) \
1477 -i
!$(ZIPROOT
)/Config.kmk \
1478 -i
!$(ZIPROOT
)/Doxyfile.Core \
1479 -i
!$(ZIPROOT
)/Makefile.kmk \
1480 -i
!$(ZIPROOT
)/configure \
1481 -i
!$(ZIPROOT
)/configure.vbs \
1483 -i
!$(ZIPROOT
)/include \
1484 -i
!$(ZIPROOT
)/kBuild \
1486 -i
!$(ZIPROOT
)/tools
/env.sh \
1487 -i
!$(ZIPROOT
)/tools
/linux.x86
/bin
/* \
1488 -i
!$(ZIPROOT
)/tools
/linux.amd64
/bin
/* \
1489 -x
!$(ZIPROOT
)/doc
/Devices \
1490 -x
!$(ZIPROOT
)/doc
/\
*pdf \
1491 -x
!$(ZIPROOT
)/doc
/L4VM \
1492 -x
!$(ZIPROOT
)/doc
/VMM \
1493 -x
!$(ZIPROOT
)/doc
/licenses_old \
1494 -x
!$(ZIPROOT
)/doc
/manual
/de_DE \
1495 -x
!$(ZIPROOT
)/doc
/manual
/fr_FR \
1496 -x
!$(ZIPROOT
)/src
/tests \
1497 -x
!$(ZIPROOT
)/src
/VBox
/Artwork
/2008-\
* \
1498 -x
!$(ZIPROOT
)/src
/VBox
/Installer
/AMI \
1499 -x
!$(ZIPROOT
)/src
/VBox
/Installer
/Avanquest \
1500 -x
!$(ZIPROOT
)/src
/VBox
/Installer
/Encore \
1501 -x
!$(ZIPROOT
)/src
/VBox
/Installer
/linux
/debian \
1502 -x
!$(ZIPROOT
)/src
/VBox
/Installer
/linux
/rpm \
1503 $(ZIPPATH
)/$(ZIPNAME
))
1504 $(QUIET
)$(RM
) $(ZIPPATH
)/$(ZIPROOT
)
1508 # Generate ALL the rules.
1510 include $(FILE_KBUILD_SUB_FOOTER
)
1514 # Generate x86.mac and err.mac.
1517 $(SED
) -f
include/VBox
/err.sed
--output
include/VBox
/err.mac
include/VBox
/err.h
1518 $(APPEND
) include/VBox
/err.mac
'%include "iprt/err.mac"'
1519 $(SED
) -f
include/VBox
/err.sed
--output
include/iprt
/err.mac
include/iprt
/err.h
1520 $(SED
) -f
include/VBox
/various.sed
--output
include/iprt
/x86.mac
include/iprt
/x86.h
1521 $(APPEND
) include/iprt
/x86.mac
'%include "iprt/x86extra.mac"'
1522 $(SED
) -f
include/VBox
/various.sed
--output
include/VBox
/apic.mac
include/VBox
/apic.h
1523 $(SED
) -f
include/VBox
/various.sed
--output
include/VBox
/param.mac
include/VBox
/param.h
1524 $(SED
) -f
include/VBox
/various.sed
--output
include/VBox
/VMMDevTesting.mac
include/VBox
/VMMDevTesting.h
1531 $(ECHO
) This is now done by gen-slickedit-workspace.sh
/cmd.
1536 # Add fetching of the tools to the 'up[date][2]' targets.
1538 up update up2 update2
::
1540 +$(MAKE
) -C tools fetch
1542 $(MAKE
) -C tools
-f Makefile-ose.kmk fetch
1547 # For efficiently build serveral build types / archs.
1549 both-debug-release both-release-debug
: \
1550 build-release-
$(KBUILD_TARGET_ARCH
) \
1551 build-debug-
$(KBUILD_TARGET_ARCH
)
1552 both-x86-amd64 both-amd64-x86
: \
1553 build-
$(KBUILD_TYPE
)-x86 \
1554 build-
$(KBUILD_TYPE
)-x86
1555 both-types-archs both-archs-types
: \
1562 +$(MAKE
) KBUILD_TYPE
=release KBUILD_TARGET_ARCH
=x86
1565 +$(MAKE
) KBUILD_TYPE
=debug KBUILD_TARGET_ARCH
=x86
1567 build-release-amd64
:
1568 +$(MAKE
) KBUILD_TYPE
=release KBUILD_TARGET_ARCH
=amd64
1571 +$(MAKE
) KBUILD_TYPE
=debug KBUILD_TARGET_ARCH
=amd64
1575 # Aliases for building the SDK.
1577 .NOTPARALLEL
: sdk sdk-fetch
1579 + $(KMK
) VBOX_ONLY_SDK
=1 \
1580 pass_bldprogs pass_others pass_installs pass_packing
1583 + $(KMK
) VBOX_ONLY_SDK
=1 -C tools