VirtualBox

source: vbox/trunk/Makefile.kmk@ 39688

Last change on this file since 39688 was 39688, checked in by vboxsync, 13 years ago

doxygen updates.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 59.8 KB
Line 
1# $Id: Makefile.kmk 39688 2011-12-30 08:53:48Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2011 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#
24if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
25 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
26endif
27include $(PATH_SUB_CURRENT)/src/Makefile.kmk
28
29
30#
31# Clean up global stuff that Config.kmk generates.
32#
33OTHER_CLEAN += \
34 $(VBOX_PACKAGE_HEADER) \
35 $(VBOX_LICENSE_VER_KMK) \
36 $(VBOX_VERSION_MK) \
37 $(VBOX_VERSION_HEADER) \
38 $(VBOX_VERSION_STAMP) \
39 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
40 $(VBOX_SVN_REV_KMK).ts \
41 $(VBOX_SVN_REV_KMK) \
42 $(PATH_OUT)/GCCConfig.kmk
43
44
45if !defined(VBOX_ONLY_ADDITIONS) \
46 && !defined(VBOX_ONLY_DOCS) \
47 && !defined(VBOX_ONLY_EXTPACKS) \
48 && !defined(VBOX_ONLY_TESTSUITE) # -> line 418b ;-)
49
50ifndef VBOX_OSE
51 #
52 # Install the license (and misc non-executable stuff).
53 #
54 INSTALLS += nobin
55 nobin_INST = $(INST_BIN)
56 nobin_MODE = 0644
57 nobin_SOURCES =
58 ifdef VBOX_LICENSE_FILES
59 nobin_SOURCES += \
60 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
61 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
62 endif
63endif # !OSE
64
65
66#
67# Install external binaries (mostly redistributable parts of tools we use).
68# This must be done *before* we build the manual.
69#
70# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
71# and .linux property suffixes.
72#
73INSTALLS += bin
74
75bin_INST = $(INST_BIN)
76
77# The SDL DLLs
78if1of ($(KBUILD_TARGET), win os2)
79 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
80 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
81 bin_SOURCES += \
82 $(DLL_SDK_LIBSDL_SDL)
83 ifdef VBOX_WITH_SECURELABEL
84 bin_SOURCES += \
85 $(DLL_SDK_LIBSDL_SDLTTF)
86 endif
87 ifeq ($(KBUILD_TARGET),os2)
88 bin_SOURCES += \
89 $(DLL_SDK_LIBSDL_FSLIB)
90 endif
91 endif
92endif
93
94
95# The compiler runtime DLLs.
96ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
97 ifdef VBOX_USE_VCC80
98 include $(KBUILD_PATH)/tools/VCC80X86.kmk
99 include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
100 bin_SOURCES.x86 += \
101 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
102 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
103 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
104 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
105 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
106 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
107 bin_SOURCES.amd64 += \
108 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
109 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
110 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
111 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
112 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
113 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
114 ifeq ($(VBOX_VCC_CRT_TYPE),d)
115 bin_SOURCES.x86 += \
116 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
117 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
118 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
119 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
120 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
121 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
122 bin_SOURCES.amd64 += \
123 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
124 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
125 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
126 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
127 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
128 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
129 endif
130 endif
131 ifndef VBOX_USE_VCC80
132 VBOX_INSTALL_VCC70_RT = 1
133 endif
134 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
135 VBOX_INSTALL_VCC70_RT = 1
136 endif
137 ifdef VBOX_INSTALL_VCC70_RT
138 include $(KBUILD_PATH)/tools/VCC70.kmk
139
140 ## @todo Move these defines to VCC70.
141 DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
142 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
143 bin_SOURCES += \
144 $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
145 $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
146 endif
147 ifeq ($(VBOX_VCC_CRT_TYPE),d)
148 DLL_TOOL_VCC70_MSVCR71D ?= $(PATH_TOOL_VCC70)/bin/msvcr71d.dll
149 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71D)),)
150 bin_SOURCES += \
151 $(DLL_TOOL_VCC70_MSVCR71D)=>msvcr71d.dll \
152 $(DLL_TOOL_VCC70_MSVCR71D)=>testcase/msvcr71d.dll
153 endif
154 endif
155
156 DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
157 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
158 bin_SOURCES += \
159 $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
160 $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
161 endif
162 ifeq ($(VBOX_VCC_CRT_TYPE),d)
163 DLL_TOOL_VCC70_MSVCP71D ?= $(PATH_TOOL_VCC70)/bin/msvcp71d.dll
164 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71D)),)
165 bin_SOURCES += \
166 $(DLL_TOOL_VCC70_MSVCP71D)=>msvcp71d.dll \
167 $(DLL_TOOL_VCC70_MSVCP71D)=>testcase/msvcp71d.dll
168 endif
169 endif
170
171 DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
172 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
173 bin_SOURCES += \
174 $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
175 $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
176 endif
177 endif
178endif
179
180
181#
182# Install our Qt DLLs / Shared Objects / Frameworks.
183# Note: The installer fixes the darwin .dylibs when hardening is enabled.
184#
185ifeq ($(KBUILD_TARGET),darwin)
186 INSTALLS += qt4-bin
187 qt4-bin_MODE = 755
188 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
189 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
190 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))
191 ifdef VBOX_WITH_COCOA_QT
192 qt4-bin_SOURCES += \
193 $(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 \
194 $(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 \
195 $(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
196 endif
197 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
198 qt4-bin_SOURCES += \
199 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
200 endif
201 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
202 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
203 ifdef VBOX_WITH_COCOA_QT
204 qt4-bin_SYMLINKS += \
205 Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
206 endif
207else
208 ifdef VBOX_WITH_QT4_SUN
209 ifeq ($(KBUILD_TARGET),win)
210 INSTALLS += qt4-bin
211 qt4-bin_MODE = 755
212 qt4-bin_INST = $(INST_BIN)
213 qt4-bin_SOURCES = \
214 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \
215 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
216 else
217 INSTALLS += qt4-bin
218 qt4-bin_MODE = 755
219 qt4-bin_INST = $(INST_BIN)
220 qt4-bin_SOURCES = \
221 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
222 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
223 endif
224 endif # VBOX_WITH_QT4_SUN
225endif
226
227
228#
229# For building the combined package, just get the additions .ISO
230# once for amd64 to prevent version inconsistences. In all other
231# cases we get the .ISO per target architecture.
232#
233ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
234 ifdef VBOX_WITH_COMBINED_PACKAGE
235 ifeq ($(KBUILD_TARGET_ARCH),amd64)
236 INSTALLS += buildserver-additions
237 endif
238 else
239 INSTALLS += buildserver-additions
240 endif
241
242#
243# Install additions iso from the build server.
244# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
245# been added to kBuild.
246#
247buildserver-additions_INST = $(INST_ADDITIONS_ISO)
248buildserver-additions_MODE = 0644
249buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
250buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
251
252$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
253 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
254 ifneq ($(KBUILD_HOST),win)
255 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
256 else
257 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
258 endif
259 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
260 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
261
262 ifeq ($(KBUILD_HOST),win)
263buildserver-additions-affinity-hack:
264 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
265 endif
266endif
267
268
269#
270#
271# Install documentation files (at the moment the .chm) from the build server.
272#
273ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
274## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
275INSTALLS += buildserver-docs
276buildserver-docs_INST = $(INST_BIN)
277buildserver-docs_MODE = 0644
278buildserver-docs_SOURCES = \
279 $(addprefix $(PATH_TARGET)/, \
280 VirtualBox.chm UserManual.pdf \
281 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
282buildserver-docs_CLEANS = \
283 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
284 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
285 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
286 $(addprefix $(PATH_TARGET)/, \
287 VirtualBox.chm UserManual.pdf \
288 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
289
290## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
291include $(KBUILD_PATH)/tools/ZIP.kmk
292
293$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
294$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
295 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
296 $(call MSG_L1,Unpacking documentation)
297 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
298 $(APPEND) -t $@ "done"
299
300$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
301 $(RM) -f $@ [email protected]
302 ifneq ($(KBUILD_HOST),win)
303 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename [email protected]
304 else
305 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
306 endif
307 $(CP) -f [email protected] $@
308 $(RM) -f [email protected]
309## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
310
311 ifeq ($(KBUILD_HOST),win)
312buildserver-documentation-affinity-hack:
313 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
314 endif
315endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
316
317
318 ifdef VBOX_WITH_EFI
319 #
320 # Install EFI firmware image
321 #
322 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
323 #
324 # Either from the build server.
325 #
326 INSTALLS += buildserver-efifw
327 buildserver-efifw_INST = $(INST_BIN)
328 buildserver-efifw_MODE = 0644
329 buildserver-efifw_SOURCES = \
330 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd=>VBoxEFI32.fd \
331 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd=>VBoxEFI64.fd
332 buildserver-efifw_CLEANS = \
333 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
334 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
335 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
336 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
337 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
338 ## @todo rainy day: cleanup the output directory (zip contains lots more)
339
340 ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
341 include $(KBUILD_PATH)/tools/ZIP.kmk
342
343 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
344 +| $$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
345 $$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd: \
346 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
347 $(call MSG_L1,Unpacking EFI firmware)
348 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
349 $(APPEND) -t $@ "done"
350
351 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
352 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
353 $(RM) -f $@ [email protected]
354 ifneq ($(KBUILD_HOST),win)
355 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename [email protected]
356 else
357 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
358 endif
359 $(CP) -f [email protected] $@
360 $(RM) -f [email protected]
361## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
362
363 ifeq ($(KBUILD_HOST),win)
364 buildserver-efifw-affinity-hack:
365 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
366 endif
367 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
368 #
369 # Or from the local copy
370 #
371 INSTALLS += local-efifw
372 local-efifw_INST = $(INST_BIN)
373 local-efifw_MODE = 0644
374 local-efifw_SOURCES = \
375 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
376 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
377 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
378 endif # VBOX_WITH_EFI
379
380
381#
382# Install staged binaries on platforms where we can't cross
383# compile things.
384#
385ifn1of ($(KBUILD_TARGET), l4 linux win)
386 VBOX_PATH_STAGED ?= .
387
388 # Additions.
389 ifndef VBOX_WITH_LINUX_ADDITIONS
390 ifndef VBOX_WITH_WIN32_ADDITIONS
391 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
392 INSTALLS += staged-additions
393 staged-additions_INST = $(INST_ADDITIONS_ISO)
394 staged-additions_MODE = 0644
395 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
396 endif
397 endif
398 endif
399
400 # guesttool.exe
401 ifndef VBOX_WITH_WIN32_ADDITIONS
402 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
403 INSTALLS += staged-guesttool
404 staged-guesttool_INST = $(INST_BIN)
405 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
406 endif
407 endif
408
409endif
410
411endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
412
413
414ifdef VBOX_ONLY_DOCS
415# It may sound a bit odd, but for preparing the documentation package the
416# doxygen documentation isn't needed and increases the build time a lot.
417docs:
418else # !VBOX_ONLY_DOCS
419#
420# Generate documentation.
421# (This should be converted into a separate pass or merged with an existing one later.)
422#
423 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
424docs: docs.Core
425 endif
426endif # !VBOX_ONLY_DOCS
427
428docs.Core docs.core: $(PATH_TARGET)/docs.Core
429
430
431
432#
433# The core (VMM+REM+Devices+Main) documentation.
434#
435# This includes so much because we wish to have the complete CFGM
436# and GCFGM lists.
437#
438OTHER_CLEAN += \
439 $(PATH_TARGET)/Doxyfile.Core \
440 $(PATH_TARGET)/Doxyfile.Core.dep
441
442VBOX_CORE_DOXYFILE_INPUT_DIRS = \
443 include/iprt \
444 include/iprt/cpp \
445 include/iprt/linux \
446 include/VBox \
447 include/VBox/vmm \
448 include/VBox/com \
449 include/VBox/ExtPack \
450 include/VBox/HostServices \
451 include/VBox/GuestHost \
452 include/VBox/HGSMI \
453 src/VBox/VMM \
454 src/VBox/VMM/VMMR0 \
455 src/VBox/VMM/VMMRC \
456 src/VBox/VMM/VMMR3 \
457 src/VBox/VMM/VMMAll \
458 src/VBox/VMM/VMMSwitcher \
459 src/VBox/Debugger \
460 src/VBox/Devices \
461 src/VBox/Devices/Audio \
462 src/VBox/Devices/Bus \
463 src/VBox/Devices/Graphics \
464 src/VBox/Devices/Graphics/BIOS \
465 src/VBox/Devices/Input \
466 src/VBox/Devices/Networking \
467 src/VBox/Devices/PC \
468 src/VBox/Devices/PC/BIOS \
469 src/VBox/Devices/Parallel \
470 src/VBox/Devices/Serial \
471 src/VBox/Devices/Storage \
472 src/VBox/Devices/USB \
473 src/VBox/Devices/USB/darwin \
474 src/VBox/Devices/USB/linux \
475 src/VBox/Devices/USB/os2 \
476 src/VBox/Devices/USB/solaris \
477 src/VBox/Devices/USB/vrdp \
478 src/VBox/Devices/USB/win32 \
479 src/VBox/Devices/VMMDev \
480 src/VBox/Main/include \
481 src/VBox/Main/include/hgcm \
482 src/VBox/Main \
483 src/VBox/Main/glue \
484 src/VBox/Main/webservice \
485 src/VBox/Main/xml \
486 src/VBox/Main/src-all \
487 src/VBox/Main/src-all/win \
488 src/VBox/Main/src-client \
489 src/VBox/Main/src-client/win \
490 src/VBox/Main/src-client/xpcom \
491 src/VBox/Main/src-server \
492 src/VBox/Main/src-server/darwin \
493 src/VBox/Main/src-server/linux \
494 src/VBox/Main/src-server/os2 \
495 src/VBox/Main/src-server/solaris \
496 src/VBox/Main/src-server/win \
497 src/VBox/Main/src-server/xpcom \
498 src/VBox/HostServices \
499 src/VBox/HostServices/DragAndDrop \
500 src/VBox/HostServices/GuestControl \
501 src/VBox/HostServices/GuestProperties \
502 src/VBox/HostServices/SharedClipboard \
503 src/VBox/HostServices/SharedFolders \
504 src/VBox/HostServices/SharedOpenGL \
505 src/VBox/HostServices/auth \
506 src/VBox/HostDrivers/Support \
507 src/VBox/HostDrivers/Support/darwin \
508 src/VBox/HostDrivers/Support/freebsd \
509 src/VBox/HostDrivers/Support/l4 \
510 src/VBox/HostDrivers/Support/linux \
511 src/VBox/HostDrivers/Support/os2 \
512 src/VBox/HostDrivers/Support/solaris \
513 src/VBox/HostDrivers/Support/win \
514 src/VBox/HostDrivers/VBoxNetFlt \
515 src/VBox/HostDrivers/VBoxNetFlt/darwin \
516 src/VBox/HostDrivers/VBoxNetFlt/linux \
517 src/VBox/HostDrivers/VBoxNetFlt/solaris \
518 src/VBox/HostDrivers/VBoxNetFlt/win \
519 src/VBox/HostDrivers/VBoxNetNat \
520 src/VBox/HostDrivers/VBoxNetNat/darwin \
521 src/VBox/HostDrivers/VBoxNetNat/linux \
522 src/VBox/HostDrivers/VBoxNetNat/solaris \
523 src/VBox/HostDrivers/VBoxNetNat/win \
524 src/VBox/HostDrivers/VBoxNetAdp \
525 src/VBox/HostDrivers/VBoxNetAdp/darwin \
526 src/VBox/HostDrivers/VBoxNetAdp/linux \
527 src/VBox/HostDrivers/VBoxNetAdp/solaris \
528 src/VBox/HostDrivers/VBoxNetAdp/win \
529 src/VBox/HostDrivers/VBoxPci \
530 src/VBox/HostDrivers/VBoxPci/darwin \
531 src/VBox/HostDrivers/VBoxPci/linux \
532 src/VBox/HostDrivers/VBoxPci/solaris \
533 src/VBox/HostDrivers/VBoxPci/win \
534 src/VBox/HostDrivers/VBoxUSB \
535 src/VBox/HostDrivers/VBoxUSB/darwin \
536 src/VBox/HostDrivers/VBoxUSB/os2 \
537 src/VBox/HostDrivers/VBoxUSB/solaris \
538 src/VBox/HostDrivers/VBoxUSB/win \
539 src/VBox/HostDrivers/VBoxUSB/win/Device \
540 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
541 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
542 src/VBox/HostDrivers/VBoxUSB/win/Filter \
543 src/VBox/HostDrivers/VBoxUSB/win/Install \
544 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
545 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
546 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
547 src/VBox/HostDrivers/VBoxUSB/win/usbd \
548 src/VBox/Additions \
549 src/VBox/Additions/common \
550 src/VBox/Additions/common/VBoxGuest \
551 src/VBox/Additions/common/VBoxGuestLib \
552 src/VBox/Additions/common/VBoxService \
553 src/VBox/Additions/common/VBoxControl \
554 src/VBox/Additions/common/VBoxVideo \
555 src/VBox/Additions/common/crOpenGL \
556 src/VBox/Additions/common/pam \
557 src/VBox/NetworkServices \
558 src/VBox/NetworkServices/DHCP \
559 src/VBox/NetworkServices/NAT \
560 src/VBox/NetworkServices/NetLib \
561 src/VBox/Storage
562
563# These must come first in order to make things look nice.
564VBOX_CORE_DOXYFILE_INPUT_FIRST =\
565 $(PATH_ROOT)/doc/VBox-doc.c \
566 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
567 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
568 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
569 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
570 $(PATH_ROOT)/include/VBox/cdefs.h \
571 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
572 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
573 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
574 $(PATH_ROOT)/include/VBox/vmm/mm.h \
575 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
576 $(PATH_ROOT)/include/VBox/vmm/selm.h \
577 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
578 $(PATH_ROOT)/include/VBox/vmm/patm.h \
579 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
580 $(PATH_ROOT)/include/VBox/vmm/stam.h \
581 $(PATH_ROOT)/include/VBox/vmm/em.h \
582 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
583 $(PATH_ROOT)/include/VBox/vmm/rem.h \
584 $(PATH_ROOT)/include/VBox/vmm/iom.h \
585 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
586 $(PATH_ROOT)/include/VBox/vmm/tm.h \
587 $(PATH_ROOT)/include/VBox/vmm/csam.h \
588 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
589 $(PATH_ROOT)/include/VBox/vmm/hwaccm.h \
590 $(PATH_ROOT)/include/VBox/vmm/hwacc_svm.h \
591 $(PATH_ROOT)/include/VBox/vmm/hwacc_vmx.h \
592 \
593 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
594 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
595 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
596 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
597 $(PATH_ROOT)/src/VBox/VMM/include/HWACCMInternal.h \
598 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
599 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
600 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
601 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
602 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
603 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
604 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
605 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
606 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
607 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
608 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
609 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
610 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
611 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
612 \
613 $(PATH_ROOT)/include/VBox/vmm/vm.h \
614 \
615 $(PATH_ROOT)/include/VBox/sup.h \
616 $(PATH_ROOT)/include/VBox/vd.h \
617 $(PATH_ROOT)/include/VBox/types.h \
618 $(PATH_ROOT)/include/VBox/err.h \
619 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
620 $(PATH_ROOT)/include/VBox/dbggui.h \
621 $(PATH_ROOT)/include/VBox/dis.h \
622 $(PATH_ROOT)/include/VBox/disopcode.h \
623 $(PATH_ROOT)/include/VBox/intnet.h \
624 $(PATH_ROOT)/include/VBox/settings.h \
625 $(PATH_ROOT)/include/VBox/pci.h \
626 $(PATH_ROOT)/include/VBox/scsi.h \
627 $(PATH_ROOT)/include/VBox/shflsvc.h \
628 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
629 $(PATH_ROOT)/include/VBox/usb.h \
630 $(PATH_ROOT)/include/VBox/vusb.h \
631 \
632 $(PATH_ROOT)/include/VBox/log.h \
633 $(PATH_ROOT)/include/VBox/param.h \
634 $(PATH_ROOT)/include/VBox/version.h
635
636VBOX_CORE_DOXYFILE_INPUT := \
637 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
638 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
639VBOX_CORE_DOXYFILE_INPUT := \
640 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
641 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
642
643# And some some additional stuff.
644VBOX_CORE_DOXYFILE_INPUT += \
645 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
646 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
647
648
649VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
650BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
651
652-include $(PATH_TARGET)/Doxyfile.Core.dep
653
654# Generate the Doxyfile
655$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
656 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
657 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
658 | $$(dir $$@)
659 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
660 $(CP) -f Doxyfile.Core [email protected]
661 $(APPEND) [email protected]
662 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
663 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
664 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
665 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
666 $(APPEND) [email protected]
667 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
668 $(APPEND) [email protected]
669 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
670 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
671 $(APPEND) [email protected]
672 $(MV) -f [email protected] $@
673 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
674 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
675
676# Do the actual job.
677$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
678 $(RM) -f $(PATH_TARGET)/docs.Core
679 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
680 doxygen $(PATH_TARGET)/Doxyfile.Core
681 $(APPEND) $(PATH_TARGET)/docs.Core
682
683
684#
685# Alias for kmk_time. Used by both the additions and testsuite build setups.
686#
687VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
688
689#
690# Common rsync bits.
691#
692
693##
694# The basic rsync invocation for syncing the tree into a VM; the source and
695# target specs are missing.
696#
697# @param 1 os name.
698# @param 2 arch or *.
699#
700VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
701 --exclude .svn/ \
702 --exclude doc/Devices/ \
703 --exclude doc/tg/ \
704 --exclude doc/vp/ \
705 --exclude doc/L4VM/ \
706 --exclude tinderclient.log \
707 --exclude tools/FetchDir/ \
708 --exclude webtools/ \
709 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
710 --exclude tools/$(os).x86/ \
711 --exclude tools/$(os).amd64/ \
712 --exclude out/$(os).amd64/ \
713 --exclude out/$(os).x86/ \
714 ,$(select \
715 "$(2)" == "x86" , --exclude out/$(os).amd64/$(KBUILD_TYPE)/, \
716 "$(2)" == "amd64", --exclude out/$(os).x86/$(KBUILD_TYPE)/) \
717 ))
718
719#
720# Build the additions, all of them.
721#
722# This is currently tailored (hardcoded) for the additions
723# build box. Can make it pretty and configurable later.
724#
725# The fetching must be done in serial fashion, while the building
726# should be more flexible wrt to -jN.
727#
728additions-fetch:
729 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
730 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
731 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
732# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
733 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
734 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
735 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
736 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
737
738
739## @todo Currently combined solaris additions building assumes that amd64 is
740# built first. The windows amd64 additions need some x86 files, so don't change
741# the order of the windows builds. TODO: Split building and packing for these two VMs.
742additions-build: \
743 additions-build-solaris.amd64 \
744 additions-build-solaris.x86 \
745 additions-build-win.x86 \
746 additions-build-win.amd64 \
747 additions-build-os2.x86 \
748 additions-build-linux.x86.combined
749
750VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
751 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
752 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
753 VBOX_SVN_REV=$(VBOX_SVN_REV)
754
755VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
756 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
757 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
758 VBOX_SVN_REV=$(VBOX_SVN_REV)
759
760# Automatically determine the additions build subdir name. Used for figuring
761# out directory names inside the additions building VMs.
762VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
763
764# When building in parallel on a Windows host, make sure we finish the host
765# bit before kicking off any UNIX guest or we'll run into file sharing issues.
766ifeq ($(KBUILD_TARGET),win)
767VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = additions-build-win.x86 additions-build-win.amd64
768else
769VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
770endif
771
772# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
773additions-build-win.amd64: additions-build-win.x86
774ifeq ($(KBUILD_TARGET),win)
775 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
776 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
777else
778 $(call MSG_L1,Building Windows/amd64 additions)
779 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing "
780endif
781
782additions-build-win.x86:
783ifeq ($(KBUILD_TARGET),win)
784 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
785 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
786else
787 $(call MSG_L1,Building Windows/x86 additions)
788 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
789endif
790
791# ASSUMES the 64-bit edition are built first. This also serializes VM access.
792ifeq ($(KBUILD_TARGET),solaris)
793additions-build-solaris.amd64:
794 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
795 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
796
797additions-build-solaris.x86: additions-build-solaris.amd64
798 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
799 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
800
801else
802additions-build-solaris.rsync-into-vm: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
803 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
804
805additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
806 $(call MSG_L1,Building Solaris/amd64 additions)
807 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing"
808 $(call MSG_L1,Building Solaris/x86 additions)
809 $(VBOX_KMK_TIME) ssh [email protected] " 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"
810
811additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
812 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
813 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
814
815.NOTPARALLEL: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm
816.PHONY: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm additions-build-solaris.build-it
817
818additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
819additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
820endif
821
822additions-build-os2.x86:
823#ifeq ($(KBUILD_TARGET),os2)
824# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
825# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
826#else
827# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
828#endif
829
830additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
831ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
832 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
833 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
834else
835 $(call MSG_L1,Building Linux/amd64 additions)
836 $(VBOX_KMK_TIME) ssh [email protected] " 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"
837endif
838
839additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
840ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
841 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
842 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
843else
844 $(call MSG_L1,Building Linux/x86 additions)
845 $(VBOX_KMK_TIME) ssh [email protected] " 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"
846endif
847
848# Combined Linux Additions .run package. This depends on the archives
849# created during packing by the archetecture-specific builds.
850additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
851ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
852 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
853 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
854else
855 $(call MSG_L1,Building Linux/x86 additions)
856 $(VBOX_KMK_TIME) ssh [email protected] " 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"
857endif
858
859
860additions-packing:
861 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
862 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
863 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
864 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
865 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
866 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
867 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
868 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
869 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
870 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
871 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
872 -C src/VBox/Additions \
873 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
874
875.PHONY: \
876 additions-build-win.x86 \
877 additions-build-win.amd64 \
878 additions-build-solaris.amd64 \
879 additions-build-solaris.x86 \
880 additions-build-os2.x86 \
881 additions-build-linux.amd64 \
882 additions-build-linux.x86 \
883 additions-build-linux.x86.combined \
884 additions-packing
885
886
887#
888# Build the extension packs, all of them.
889#
890# This is tailored (hardcoded) for the extension pack build box.
891#
892# The fetching must be done in serial fashion, while the building should be
893# more flexible wrt to -jN.
894#
895extpacks-fetch:
896 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
897 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
898 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
899# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
900# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
901 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
902 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
903# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
904 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
905 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
906 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
907 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
908
909
910extpacks-build: \
911 extpacks-build-win.amd64 \
912 extpacks-build-win.x86 \
913 extpacks-build-solaris.amd64 \
914 extpacks-build-solaris.x86 \
915 extpacks-build-os2.x86 \
916 extpacks-build-linux.amd64 \
917 extpacks-build-linux.x86 \
918 extpacks-build-darwin.amd64 \
919 extpacks-build-darwin.x86 \
920 extpacks-build-freebsd.amd64 \
921 extpacks-build-freebsd.x86
922
923VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
924 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
925 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
926 VBOX_SVN_REV=$(VBOX_SVN_REV)
927
928VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
929 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
930 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
931 VBOX_SVN_REV=$(VBOX_SVN_REV)
932
933# Automatically determine the extpack build subdir name. Used for figuring out
934# directory names inside the extension pack building VMs.
935VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
936
937# When building in parallel on a Windows host, make sure we finish the host
938# bit before kicking off any UNIX guest or we'll run into file sharing issues.
939ifeq ($(KBUILD_TARGET),win)
940VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
941else
942VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
943endif
944
945extpacks-build-win.amd64:
946ifeq ($(KBUILD_TARGET),win)
947 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
948else
949 $(call MSG_L1,Building Windows/amd64 extension packs)
950 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
951endif
952
953extpacks-build-win.x86:
954ifeq ($(KBUILD_TARGET),win)
955 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
956else
957 $(call MSG_L1,Building Windows/x86 extension packs)
958 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
959endif
960
961ifeq ($(KBUILD_TARGET),solaris)
962extpacks-build-solaris.amd64:
963 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
964
965extpacks-build-solaris.x86: extpacks-build-solaris.amd64
966 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
967
968else
969# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
970extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
971 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
972
973extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
974 $(call MSG_L1,Building Solaris/amd64 extension packs)
975 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
976 $(call MSG_L1,Building Solaris/x86 extension packs)
977 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
978
979extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
980 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
981 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
982
983.NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
984.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
985
986extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
987extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
988endif
989
990extpacks-build-os2.x86:
991#ifeq ($(KBUILD_TARGET),os2)
992# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
993#else
994# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
995#endif
996
997extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
998ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
999 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1000else
1001 $(call MSG_L1,Building Linux/amd64 extension packs)
1002 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1003endif
1004
1005extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1006ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1007 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1008else
1009 $(call MSG_L1,Building Linux/x86 extension packs)
1010 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1011endif
1012
1013extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1014#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1015# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1016#else
1017# $(call MSG_L1,Building FreeBSD/amd64 extension packs)
1018# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1019#endif
1020
1021extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1022#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1023# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1024#else
1025# $(call MSG_L1,Building FreeBSD/x86 extension packs)
1026# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1027#endif
1028
1029extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1030ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1031 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1032else
1033 $(call MSG_L1,Building Darwin/amd64 extension packs)
1034 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1035 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1036 $(VBOX_KMK_TIME) rsync -am -v --delete 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1037endif
1038
1039extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1040ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1041 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1042else
1043 $(call MSG_L1,Building Darwin/x86 extension packs)
1044 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1045 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1046 $(VBOX_KMK_TIME) rsync -am -v --delete 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1047endif
1048
1049
1050extpacks-packing:
1051 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1052 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
1053 packing
1054# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1055
1056.PHONY: \
1057 extpacks-build-win.x86 \
1058 extpacks-build-win.amd64 \
1059 extpacks-build-solaris.amd64 \
1060 extpacks-build-solaris.x86 \
1061 extpacks-build-os2.x86 \
1062 extpacks-build-linux.amd64 \
1063 extpacks-build-linux.x86 \
1064 extpacks-build-freebsd.amd64 \
1065 extpacks-build-freebsd.x86 \
1066 extpacks-build-darwin.amd64 \
1067 extpacks-build-darwin.x86 \
1068 extpacks-packing
1069
1070
1071#
1072# Build the test suite, all of it.
1073#
1074# This is currently tailored (hardcoded) for the additions build box just like
1075# the additions build above, which it in fact is a copy of.
1076#
1077testsuite-fetch:
1078 + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
1079 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1080 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1081# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1082# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1083 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1084 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1085# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
1086 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1087 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1088 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1089 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1090
1091
1092testsuite-build: \
1093 testsuite-build-solaris.amd64 \
1094 testsuite-build-solaris.x86 \
1095 testsuite-build-win.x86 \
1096 testsuite-build-win.amd64 \
1097 testsuite-build-os2.x86 \
1098 testsuite-build-linux.amd64 \
1099 testsuite-build-linux.x86 \
1100 testsuite-build-freebsd.amd64 \
1101 testsuite-build-freebsd.x86 \
1102 testsuite-build-darwin.amd64 \
1103 testsuite-build-darwin.x86
1104
1105VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
1106 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1107 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1108 VBOX_SVN_REV=$(VBOX_SVN_REV)
1109
1110VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
1111 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1112 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1113 VBOX_SVN_REV=$(VBOX_SVN_REV)
1114
1115# Automatically determine the testsuite build subdir name. Used for figuring
1116# out directory names inside the test suite building VMs.
1117VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1118
1119# When building in parallel on a Windows host, make sure we finish the host
1120# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1121ifeq ($(KBUILD_TARGET),win)
1122VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
1123else
1124VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
1125endif
1126
1127# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1128testsuite-build-win.amd64: testsuite-build-win.x86
1129ifeq ($(KBUILD_TARGET),win)
1130 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1131else
1132 $(call MSG_L1,Building Windows/amd64 testsuite)
1133 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.amd64) all "
1134endif
1135
1136testsuite-build-win.x86:
1137ifeq ($(KBUILD_TARGET),win)
1138 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1139else
1140 $(call MSG_L1,Building Windows/x86 testsuite)
1141 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1142endif
1143
1144ifeq ($(KBUILD_TARGET),solaris)
1145testsuite-build-solaris.amd64:
1146 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1147
1148testsuite-build-solaris.x86:
1149 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1150
1151else
1152testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1153 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
1154
1155testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
1156 $(call MSG_L1,Building Solaris/amd64 testsuite)
1157 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1158 $(call MSG_L1,Building Solaris/x86 testsuite)
1159 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all "
1160
1161testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
1162 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1163 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1164
1165.NOTPARALLEL: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
1166.PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
1167
1168testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
1169testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
1170endif
1171
1172testsuite-build-os2.x86:
1173#ifeq ($(KBUILD_TARGET),os2)
1174# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1175#else
1176# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) "
1177#endif
1178
1179testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1180ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1181 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1182else
1183 $(call MSG_L1,Building Linux/amd64 testsuite)
1184 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1185endif
1186
1187testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1188ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1189 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1190else
1191 $(call MSG_L1,Building Linux/x86 testsuite)
1192 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1193endif
1194
1195testsuite-build-freebsd.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1196#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1197# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1198#else
1199# $(call MSG_L1,Building freebsd/amd64 testsuite)
1200# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1201#endif
1202
1203testsuite-build-freebsd.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1204#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1205# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1206#else
1207# $(call MSG_L1,Building freebsd/x86 testsuite)
1208# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1209#endif
1210
1211testsuite-build-darwin.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1212ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1213 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1214else
1215 $(call MSG_L1,Building darwin/amd64 testsuite)
1216 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1217 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1218 $(VBOX_KMK_TIME) rsync -am -v --delete 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1219endif
1220
1221testsuite-build-darwin.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1222ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1223 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1224else
1225 $(call MSG_L1,Building darwin/x86 testsuite)
1226 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1227 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1228 $(VBOX_KMK_TIME) rsync -am -v --delete 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1229endif
1230
1231
1232testsuite-packing:
1233 + $(KMK) VBOX_ONLY_TESTSUITE=1 \
1234 VBOX_WITH_TESTSUITE_PACKING.darwin.amd64=1 \
1235 VBOX_WITH_TESTSUITE_PACKING.darwin.x86=2 \
1236 VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
1237 VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
1238 VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
1239 VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
1240 VBOX_WITH_TESTSUITE_PACKING.os2.x86= \
1241 VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
1242 VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
1243 VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
1244 VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
1245 -C src/VBox/Testsuite \
1246 $(PATH_OUT)/VBoxTestSuite.zip
1247
1248.PHONY: \
1249 testsuite-build-win.x86 \
1250 testsuite-build-win.amd64 \
1251 testsuite-build-solaris.amd64 \
1252 testsuite-build-solaris.x86 \
1253 testsuite-build-os2.x86 \
1254 testsuite-build-linux.amd64 \
1255 testsuite-build-linux.x86 \
1256 testsuite-build-freebsd.amd64 \
1257 testsuite-build-freebsd.x86 \
1258 testsuite-build-darwin.amd64 \
1259 testsuite-build-darwin.x86 \
1260 testsuite-packing
1261
1262
1263#
1264# Build the EFI firmware, all of it.
1265#
1266# Mainly hooks right now, maybe we need them later.
1267#
1268efi-fetch:
1269
1270efi-build: $(VBOX_VERSION_HEADER)
1271 $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
1272
1273efi-packing:
1274
1275#
1276# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1277# - includes kBuild
1278# - must be executed on an OSE checkout
1279#
1280
1281# the path where to store the tarball
1282TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1283# the root directory inside the tarball
1284TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING_RAW)
1285# the name of the tarball file
1286TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING_RAW).tar.bz2
1287snapshot-ose:
1288 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1289 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1290 echo; \
1291 echo "Found RDP stuff, refused to build OSE tarball!"; \
1292 echo; \
1293 exit 1; \
1294 fi; \
1295 if [ -z "$(VBOX_OSE)" ]; then \
1296 echo; \
1297 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1298 echo; \
1299 exit 1; \
1300 fi
1301 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1302 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1303 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1304 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
1305 --exclude=.svn \
1306 --exclude=$(TARBALLROOT)/out \
1307 --exclude=$(TARBALLROOT)/env.sh \
1308 --exclude=$(TARBALLROOT)/configure.log \
1309 --exclude=$(TARBALLROOT)/build.log \
1310 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1311 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1312 --exclude=$(TARBALLROOT)/prebuild \
1313 -C $(TARBALLPATH) \
1314 -f $(TARBALLPATH)/$(TARBALLNAME) \
1315 $(TARBALLROOT)
1316 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1317
1318
1319#
1320# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1321# - includes kBuild
1322# - must be executed on an PUEL checkout
1323#
1324
1325# the path where to store the zip archive
1326ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1327# the root directory inside the zip archive
1328ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1329# the name of the zip archive
1330ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1331snapshot-puel:
1332 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1333 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1334 echo; \
1335 echo "Did not find RDP stuff, is this an OSE branch?"; \
1336 echo; \
1337 exit 1; \
1338 fi
1339 @if [ -z "$(PASSWORD)" ]; then \
1340 echo; \
1341 echo "Please specify a password with PASSWORD=..."; \
1342 echo; \
1343 exit 1; \
1344 fi
1345 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1346 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1347 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1348 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1349 $(QUIET)(cd $(ZIPPATH); 7z a \
1350 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1351 -xr!.svn \
1352 -i!$(ZIPROOT)/Config.kmk \
1353 -i!$(ZIPROOT)/Doxyfile.Core \
1354 -i!$(ZIPROOT)/Makefile.kmk \
1355 -i!$(ZIPROOT)/configure \
1356 -i!$(ZIPROOT)/configure.vbs \
1357 -i!$(ZIPROOT)/doc \
1358 -i!$(ZIPROOT)/include \
1359 -i!$(ZIPROOT)/kBuild \
1360 -i!$(ZIPROOT)/src \
1361 -i!$(ZIPROOT)/tools/env.sh \
1362 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1363 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1364 -x!$(ZIPROOT)/doc/Devices \
1365 -x!$(ZIPROOT)/doc/\*pdf \
1366 -x!$(ZIPROOT)/doc/L4VM \
1367 -x!$(ZIPROOT)/doc/VMM \
1368 -x!$(ZIPROOT)/doc/licenses_old \
1369 -x!$(ZIPROOT)/doc/manual/de_DE \
1370 -x!$(ZIPROOT)/doc/manual/fr_FR \
1371 -x!$(ZIPROOT)/src/tests \
1372 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1373 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1374 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1375 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1376 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1377 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1378 $(ZIPPATH)/$(ZIPNAME))
1379 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1380
1381
1382#
1383# Generate ALL the rules.
1384#
1385include $(KBUILD_PATH)/subfooter.kmk
1386
1387
1388#
1389# Generate x86.mac and err.mac.
1390#
1391incs:
1392 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1393 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1394 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1395 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1396 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1397 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1398 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1399
1400
1401#
1402# Legacy.
1403#
1404vslick.h:
1405 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1406 exit 1
1407
1408
1409#
1410# Add fetching of the tools to the 'up[date][2]' targets.
1411#
1412up update up2 update2::
1413ifndef VBOX_OSE
1414 +$(MAKE) -C tools fetch
1415else
1416 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1417endif
1418
1419
1420
1421#
1422# Aliases for building the SDK.
1423#
1424.NOTPARALLEL: sdk sdk-fetch
1425sdk:
1426 + $(KMK) VBOX_ONLY_SDK=1 \
1427 pass_bldprogs pass_others pass_installs pass_packing
1428
1429sdk-fetch:
1430 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
1431
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