1 | # $Id: Makefile.kmk 43633 2012-10-12 12:16:43Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top level makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 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 |
|
---|
18 | SUB_DEPTH = .
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Sub-makefiles / Sub-directories.
|
---|
23 | #
|
---|
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
|
---|
26 | endif
|
---|
27 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
28 |
|
---|
29 |
|
---|
30 | ## @todo split up this file!
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Clean up global stuff that Config.kmk generates.
|
---|
35 | #
|
---|
36 | OTHER_CLEAN += \
|
---|
37 | $(VBOX_PACKAGE_HEADER) \
|
---|
38 | $(VBOX_LICENSE_VER_KMK) \
|
---|
39 | $(VBOX_VERSION_MK) \
|
---|
40 | $(VBOX_VERSION_HEADER) \
|
---|
41 | $(VBOX_VERSION_STAMP) \
|
---|
42 | $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
|
---|
43 | $(VBOX_SVN_REV_KMK).ts \
|
---|
44 | $(VBOX_SVN_REV_KMK) \
|
---|
45 | $(PATH_OUT)/GCCConfig.kmk
|
---|
46 |
|
---|
47 |
|
---|
48 | if !defined(VBOX_ONLY_ADDITIONS) \
|
---|
49 | && !defined(VBOX_ONLY_DOCS) \
|
---|
50 | && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
51 | && !defined(VBOX_ONLY_TESTSUITE) # -> line 426b ;-)
|
---|
52 |
|
---|
53 | if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
|
---|
54 | #
|
---|
55 | # Install the license (and misc non-executable stuff).
|
---|
56 | #
|
---|
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)
|
---|
64 | endif
|
---|
65 |
|
---|
66 |
|
---|
67 | #
|
---|
68 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
69 | #
|
---|
70 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
71 | # and .linux property suffixes.
|
---|
72 | #
|
---|
73 | INSTALLS += InstallExternalLibs
|
---|
74 |
|
---|
75 | InstallExternalLibs_INST = $(INST_BIN)
|
---|
76 |
|
---|
77 | # The SDL DLLs
|
---|
78 | if1of ($(KBUILD_TARGET), win os2)
|
---|
79 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
80 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
81 | InstallExternalLibs_SOURCES += \
|
---|
82 | $(DLL_SDK_LIBSDL_SDL)
|
---|
83 | ifdef VBOX_WITH_SECURELABEL
|
---|
84 | InstallExternalLibs_SOURCES += \
|
---|
85 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
86 | endif
|
---|
87 | ifeq ($(KBUILD_TARGET),os2)
|
---|
88 | InstallExternalLibs_SOURCES += \
|
---|
89 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
90 | endif
|
---|
91 | endif
|
---|
92 | endif
|
---|
93 |
|
---|
94 |
|
---|
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
|
---|
110 | endif
|
---|
111 | endif
|
---|
112 |
|
---|
113 | #
|
---|
114 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
115 | # Note: The installer fixes the darwin .dylibs when hardening is enabled.
|
---|
116 | #
|
---|
117 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
118 | INSTALLS += qt4-bin
|
---|
119 | qt4-bin_MODE = 755
|
---|
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
|
---|
124 | qt4-bin_SOURCES += \
|
---|
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
|
---|
128 | endif
|
---|
129 | ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
|
---|
130 | qt4-bin_SOURCES += \
|
---|
131 | $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
|
---|
132 | endif
|
---|
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/
|
---|
138 | endif
|
---|
139 | else
|
---|
140 | if defined(VBOX_WITH_QT4_SUN) || defined(VBOX_WITH_QT4_PAYLOAD)
|
---|
141 | ifeq ($(KBUILD_TARGET),win)
|
---|
142 | INSTALLS += qt4-bin
|
---|
143 | qt4-bin_MODE = 755
|
---|
144 | qt4-bin_INST = $(INST_BIN)
|
---|
145 | qt4-bin_SOURCES = \
|
---|
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)
|
---|
148 | else
|
---|
149 | INSTALLS += qt4-bin
|
---|
150 | qt4-bin_MODE = 755
|
---|
151 | qt4-bin_INST = $(INST_BIN)
|
---|
152 | qt4-bin_SOURCES = \
|
---|
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)
|
---|
155 | endif
|
---|
156 | endif # VBOX_WITH_QT4_SUN
|
---|
157 | endif
|
---|
158 |
|
---|
159 |
|
---|
160 | #
|
---|
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.
|
---|
164 | #
|
---|
165 | ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
|
---|
166 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
167 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
168 | INSTALLS += buildserver-additions
|
---|
169 | endif
|
---|
170 | else
|
---|
171 | INSTALLS += buildserver-additions
|
---|
172 | endif
|
---|
173 |
|
---|
174 | #
|
---|
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.
|
---|
178 | #
|
---|
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
|
---|
183 |
|
---|
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
|
---|
188 | else
|
---|
189 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
|
---|
190 | endif
|
---|
191 | $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
192 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
193 |
|
---|
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
|
---|
197 | endif
|
---|
198 | endif
|
---|
199 |
|
---|
200 |
|
---|
201 | #
|
---|
202 | #
|
---|
203 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
204 | #
|
---|
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))
|
---|
221 |
|
---|
222 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
223 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
224 |
|
---|
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"
|
---|
231 |
|
---|
232 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
|
---|
233 | $(RM) -f $@ $@.tmp
|
---|
234 | ifneq ($(KBUILD_HOST),win)
|
---|
235 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
|
---|
236 | else
|
---|
237 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
|
---|
238 | endif
|
---|
239 | $(CP) -f $@.tmp $@
|
---|
240 | $(RM) -f $@.tmp
|
---|
241 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
242 |
|
---|
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
|
---|
246 | endif
|
---|
247 | endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
248 |
|
---|
249 |
|
---|
250 | ifdef VBOX_WITH_EFI
|
---|
251 | #
|
---|
252 | # Install EFI firmware image
|
---|
253 | #
|
---|
254 | ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
255 | #
|
---|
256 | # Either from the build server.
|
---|
257 | #
|
---|
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)
|
---|
271 |
|
---|
272 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
273 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
274 |
|
---|
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"
|
---|
282 |
|
---|
283 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
|
---|
284 | $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
|
---|
285 | $(RM) -f $@ $@.tmp
|
---|
286 | ifneq ($(KBUILD_HOST),win)
|
---|
287 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $@.tmp
|
---|
288 | else
|
---|
289 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
|
---|
290 | endif
|
---|
291 | $(CP) -f $@.tmp $@
|
---|
292 | $(RM) -f $@.tmp
|
---|
293 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
294 |
|
---|
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
|
---|
298 | endif
|
---|
299 | else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
300 | #
|
---|
301 | # Or from the local copy
|
---|
302 | #
|
---|
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
|
---|
311 |
|
---|
312 |
|
---|
313 | #
|
---|
314 | # Install staged binaries on platforms where we can't cross
|
---|
315 | # compile things.
|
---|
316 | #
|
---|
317 | ifn1of ($(KBUILD_TARGET), l4 linux win)
|
---|
318 | VBOX_PATH_STAGED ?= .
|
---|
319 |
|
---|
320 | # Additions.
|
---|
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
|
---|
328 | endif
|
---|
329 | endif
|
---|
330 | endif
|
---|
331 |
|
---|
332 | # guesttool.exe
|
---|
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
|
---|
338 | endif
|
---|
339 | endif
|
---|
340 |
|
---|
341 | endif
|
---|
342 |
|
---|
343 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
|
---|
344 |
|
---|
345 |
|
---|
346 | ifdef VBOX_ONLY_DOCS
|
---|
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.
|
---|
349 | docs:
|
---|
350 | else # !VBOX_ONLY_DOCS
|
---|
351 | #
|
---|
352 | # Generate documentation.
|
---|
353 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
354 | #
|
---|
355 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
356 | docs: docs.Core
|
---|
357 | endif
|
---|
358 | endif # !VBOX_ONLY_DOCS
|
---|
359 |
|
---|
360 | docs.Core docs.core: $(PATH_TARGET)/docs.Core
|
---|
361 |
|
---|
362 |
|
---|
363 |
|
---|
364 | #
|
---|
365 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
366 | #
|
---|
367 | # This includes so much because we wish to have the complete CFGM
|
---|
368 | # and GCFGM lists.
|
---|
369 | #
|
---|
370 | OTHER_CLEAN += \
|
---|
371 | $(PATH_TARGET)/Doxyfile.Core \
|
---|
372 | $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
373 |
|
---|
374 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
375 | include/iprt \
|
---|
376 | include/iprt/cpp \
|
---|
377 | include/iprt/linux \
|
---|
378 | include/VBox \
|
---|
379 | include/VBox/vmm \
|
---|
380 | include/VBox/com \
|
---|
381 | include/VBox/ExtPack \
|
---|
382 | include/VBox/HostServices \
|
---|
383 | include/VBox/GuestHost \
|
---|
384 | include/VBox/HGSMI \
|
---|
385 | src/VBox/VMM \
|
---|
386 | src/VBox/VMM/VMMR0 \
|
---|
387 | src/VBox/VMM/VMMRC \
|
---|
388 | src/VBox/VMM/VMMR3 \
|
---|
389 | src/VBox/VMM/VMMAll \
|
---|
390 | src/VBox/VMM/VMMSwitcher \
|
---|
391 | src/VBox/Debugger \
|
---|
392 | src/VBox/Devices \
|
---|
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 \
|
---|
414 | src/VBox/Main \
|
---|
415 | src/VBox/Main/glue \
|
---|
416 | src/VBox/Main/webservice \
|
---|
417 | src/VBox/Main/xml \
|
---|
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 \
|
---|
488 | src/VBox/Additions \
|
---|
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 \
|
---|
587 | src/VBox/Storage
|
---|
588 |
|
---|
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 \
|
---|
618 | \
|
---|
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 \
|
---|
638 | \
|
---|
639 | $(PATH_ROOT)/include/VBox/vmm/vm.h \
|
---|
640 | \
|
---|
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 \
|
---|
657 | \
|
---|
658 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
659 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
660 | $(PATH_ROOT)/include/VBox/version.h
|
---|
661 |
|
---|
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))
|
---|
668 |
|
---|
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
|
---|
673 |
|
---|
674 |
|
---|
675 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
676 | BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
|
---|
677 |
|
---|
678 | -include $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
679 |
|
---|
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) \
|
---|
684 | | $$(dir $$@)
|
---|
685 | $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
686 | $(CP) -f Doxyfile.Core $@.tmp
|
---|
687 | $(APPEND) $@.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"
|
---|
692 | $(APPEND) $@.tmp
|
---|
693 | $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
694 | $(APPEND) $@.tmp
|
---|
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 "
|
---|
697 | $(APPEND) $@.tmp
|
---|
698 | $(MV) -f $@.tmp $@
|
---|
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)"
|
---|
701 |
|
---|
702 | # Do the actual job.
|
---|
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
|
---|
708 |
|
---|
709 |
|
---|
710 | #
|
---|
711 | # Alias for kmk_time. Used by both the additions and testsuite build setups.
|
---|
712 | #
|
---|
713 | VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
|
---|
714 |
|
---|
715 | #
|
---|
716 | # Common rsync bits.
|
---|
717 | #
|
---|
718 |
|
---|
719 | ##
|
---|
720 | # The basic rsync invocation for syncing the tree into a VM; the source and
|
---|
721 | # target specs are missing.
|
---|
722 | #
|
---|
723 | # @param 1 os name.
|
---|
724 | # @param 2 arch or *.
|
---|
725 | #
|
---|
726 | VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
|
---|
727 | --exclude=*.pyc \
|
---|
728 | --exclude=.svn/ \
|
---|
729 | --exclude=doc/Devices/ \
|
---|
730 | --exclude=doc/tg/ \
|
---|
731 | --exclude=doc/vp/ \
|
---|
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/ \
|
---|
741 | ,$(select \
|
---|
742 | "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
|
---|
743 | "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
|
---|
744 | ))
|
---|
745 |
|
---|
746 | #
|
---|
747 | # VM IP addresses.
|
---|
748 | #
|
---|
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
|
---|
760 |
|
---|
761 | VBOX_WITH_OS2_ADD_BUILD=1
|
---|
762 |
|
---|
763 | #
|
---|
764 | # For profiling the VM building steps.
|
---|
765 | #
|
---|
766 | if 0
|
---|
767 | VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
|
---|
768 | VBOX_BLD_VM_MSG_END__ =
|
---|
769 | else
|
---|
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.
|
---|
772 | endif
|
---|
773 |
|
---|
774 | #
|
---|
775 | # Build the additions, all of them.
|
---|
776 | #
|
---|
777 | # This is currently tailored (hardcoded) for the additions
|
---|
778 | # build box. Can make it pretty and configurable later.
|
---|
779 | #
|
---|
780 | # The fetching must be done in serial fashion, while the building
|
---|
781 | # should be more flexible wrt to -jN.
|
---|
782 | #
|
---|
783 | additions-fetch:
|
---|
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
|
---|
789 | endif
|
---|
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
|
---|
794 |
|
---|
795 |
|
---|
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.
|
---|
799 | additions-build: \
|
---|
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
|
---|
807 |
|
---|
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
|
---|
813 |
|
---|
814 |
|
---|
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)
|
---|
819 |
|
---|
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)
|
---|
824 |
|
---|
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)))
|
---|
828 |
|
---|
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
|
---|
833 | else
|
---|
834 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
835 | endif
|
---|
836 |
|
---|
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
|
---|
842 | else
|
---|
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)
|
---|
846 | endif
|
---|
847 |
|
---|
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
|
---|
852 | else
|
---|
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)
|
---|
856 | endif
|
---|
857 |
|
---|
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
|
---|
863 |
|
---|
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
|
---|
867 |
|
---|
868 | additions-build-solaris.rsync-into-vm:
|
---|
869 | else
|
---|
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)
|
---|
876 |
|
---|
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)
|
---|
884 |
|
---|
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/
|
---|
888 |
|
---|
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
|
---|
891 |
|
---|
892 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
893 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
894 | endif
|
---|
895 |
|
---|
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
|
---|
901 |
|
---|
902 | additions-build-os2.rsync-into-vm:
|
---|
903 | else
|
---|
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)
|
---|
911 |
|
---|
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)
|
---|
916 |
|
---|
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
|
---|
919 |
|
---|
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
|
---|
922 |
|
---|
923 | additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
|
---|
924 | endif
|
---|
925 | #
|
---|
926 | else
|
---|
927 | additions-build-os2.x86:
|
---|
928 | # Dummy
|
---|
929 | endif
|
---|
930 |
|
---|
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
|
---|
935 | else
|
---|
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)
|
---|
939 | endif
|
---|
940 |
|
---|
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
|
---|
945 | else
|
---|
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)
|
---|
949 | endif
|
---|
950 |
|
---|
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
|
---|
957 | else
|
---|
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)
|
---|
961 | endif
|
---|
962 |
|
---|
963 |
|
---|
964 | additions-packing:
|
---|
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
|
---|
979 |
|
---|
980 | .PHONY: \
|
---|
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 \
|
---|
989 | additions-packing
|
---|
990 |
|
---|
991 |
|
---|
992 | #
|
---|
993 | # Build the extension packs, all of them.
|
---|
994 | #
|
---|
995 | # This is tailored (hardcoded) for the extension pack build box.
|
---|
996 | #
|
---|
997 | # The fetching must be done in serial fashion, while the building should be
|
---|
998 | # more flexible wrt to -jN.
|
---|
999 | #
|
---|
1000 | extpacks-fetch:
|
---|
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
|
---|
1013 |
|
---|
1014 |
|
---|
1015 | extpacks-build: \
|
---|
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
|
---|
1027 |
|
---|
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)
|
---|
1032 |
|
---|
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)
|
---|
1037 |
|
---|
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)))
|
---|
1041 |
|
---|
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
|
---|
1046 | else
|
---|
1047 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
|
---|
1048 | endif
|
---|
1049 |
|
---|
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)
|
---|
1053 | else
|
---|
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)
|
---|
1057 | endif
|
---|
1058 |
|
---|
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)
|
---|
1062 | else
|
---|
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)
|
---|
1066 | endif
|
---|
1067 |
|
---|
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)
|
---|
1071 |
|
---|
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)
|
---|
1074 |
|
---|
1075 | else
|
---|
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)
|
---|
1079 |
|
---|
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)
|
---|
1087 |
|
---|
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/
|
---|
1091 |
|
---|
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
|
---|
1094 |
|
---|
1095 | extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
|
---|
1096 | extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
|
---|
1097 | endif
|
---|
1098 |
|
---|
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)
|
---|
1102 | #else
|
---|
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) "
|
---|
1104 | #endif
|
---|
1105 |
|
---|
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)
|
---|
1109 | else
|
---|
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)
|
---|
1113 | endif
|
---|
1114 |
|
---|
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)
|
---|
1118 | else
|
---|
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)
|
---|
1122 | endif
|
---|
1123 |
|
---|
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)
|
---|
1127 | #else
|
---|
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)
|
---|
1131 | #endif
|
---|
1132 |
|
---|
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)
|
---|
1136 | #else
|
---|
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)
|
---|
1140 | #endif
|
---|
1141 |
|
---|
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)
|
---|
1145 | else
|
---|
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)
|
---|
1151 | endif
|
---|
1152 |
|
---|
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)
|
---|
1156 | else
|
---|
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)
|
---|
1162 | endif
|
---|
1163 |
|
---|
1164 |
|
---|
1165 | extpacks-packing:
|
---|
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" \
|
---|
1168 | packing
|
---|
1169 | # +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
|
---|
1170 |
|
---|
1171 | .PHONY: \
|
---|
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 \
|
---|
1183 | extpacks-packing
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | #
|
---|
1187 | # Build the test suite, all of it.
|
---|
1188 | #
|
---|
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.
|
---|
1191 | #
|
---|
1192 | testsuite-fetch:
|
---|
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
|
---|
1205 |
|
---|
1206 |
|
---|
1207 | testsuite-build: \
|
---|
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
|
---|
1219 |
|
---|
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)
|
---|
1224 |
|
---|
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)
|
---|
1229 |
|
---|
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)))
|
---|
1233 |
|
---|
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
|
---|
1238 | else
|
---|
1239 | VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
|
---|
1240 | endif
|
---|
1241 |
|
---|
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)
|
---|
1246 | else
|
---|
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)
|
---|
1250 | endif
|
---|
1251 |
|
---|
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)
|
---|
1255 | else
|
---|
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)
|
---|
1259 | endif
|
---|
1260 |
|
---|
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)
|
---|
1264 |
|
---|
1265 | testsuite-build-solaris.x86:
|
---|
1266 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1267 |
|
---|
1268 | else
|
---|
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)
|
---|
1271 |
|
---|
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)
|
---|
1279 |
|
---|
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/
|
---|
1283 |
|
---|
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
|
---|
1286 |
|
---|
1287 | testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
|
---|
1288 | testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
|
---|
1289 | endif
|
---|
1290 |
|
---|
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)
|
---|
1294 | #else
|
---|
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) "
|
---|
1296 | #endif
|
---|
1297 |
|
---|
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)
|
---|
1301 | else
|
---|
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)
|
---|
1305 | endif
|
---|
1306 |
|
---|
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)
|
---|
1310 | else
|
---|
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)
|
---|
1314 | endif
|
---|
1315 |
|
---|
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)
|
---|
1319 | #else
|
---|
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)
|
---|
1323 | #endif
|
---|
1324 |
|
---|
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)
|
---|
1328 | #else
|
---|
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)
|
---|
1332 | #endif
|
---|
1333 |
|
---|
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)
|
---|
1337 | else
|
---|
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)
|
---|
1343 | endif
|
---|
1344 |
|
---|
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)
|
---|
1348 | else
|
---|
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)
|
---|
1354 | endif
|
---|
1355 |
|
---|
1356 |
|
---|
1357 | testsuite-packing:
|
---|
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 \
|
---|
1372 | $(PATH_OUT)/VBoxTestBoxScript.zip
|
---|
1373 |
|
---|
1374 | .PHONY: \
|
---|
1375 | testsuite-build-win.x86 \
|
---|
1376 | testsuite-build-win.amd64 \
|
---|
1377 | testsuite-build-solaris.amd64 \
|
---|
1378 | testsuite-build-solaris.x86 \
|
---|
1379 | testsuite-build-os2.x86 \
|
---|
1380 | testsuite-build-linux.amd64 \
|
---|
1381 | testsuite-build-linux.x86 \
|
---|
1382 | testsuite-build-freebsd.amd64 \
|
---|
1383 | testsuite-build-freebsd.x86 \
|
---|
1384 | testsuite-build-darwin.amd64 \
|
---|
1385 | testsuite-build-darwin.x86 \
|
---|
1386 | testsuite-packing
|
---|
1387 |
|
---|
1388 |
|
---|
1389 | #
|
---|
1390 | # Build the EFI firmware, all of it.
|
---|
1391 | #
|
---|
1392 | # Mainly hooks right now, maybe we need them later.
|
---|
1393 | #
|
---|
1394 | efi-fetch:
|
---|
1395 |
|
---|
1396 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
1397 | $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
|
---|
1398 |
|
---|
1399 | efi-packing:
|
---|
1400 |
|
---|
1401 | #
|
---|
1402 | # Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
|
---|
1403 | # - includes kBuild
|
---|
1404 | # - must be executed on an OSE checkout
|
---|
1405 | #
|
---|
1406 |
|
---|
1407 | # the path where to store the tarball
|
---|
1408 | TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1409 | # the root directory inside the tarball
|
---|
1410 | TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
|
---|
1411 | # the name of the tarball file
|
---|
1412 | TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
|
---|
1413 | snapshot-ose:
|
---|
1414 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
1415 | @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1416 | echo; \
|
---|
1417 | echo "Found RDP stuff, refused to build OSE tarball!"; \
|
---|
1418 | echo; \
|
---|
1419 | exit 1; \
|
---|
1420 | fi; \
|
---|
1421 | if [ -z "$(VBOX_OSE)" ]; then \
|
---|
1422 | echo; \
|
---|
1423 | echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
|
---|
1424 | echo; \
|
---|
1425 | exit 1; \
|
---|
1426 | fi
|
---|
1427 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
1428 | $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1429 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1430 | $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
|
---|
1431 | --exclude=.svn \
|
---|
1432 | --exclude=$(TARBALLROOT)/out \
|
---|
1433 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
1434 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
1435 | --exclude=$(TARBALLROOT)/build.log \
|
---|
1436 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
1437 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
1438 | --exclude=$(TARBALLROOT)/prebuild \
|
---|
1439 | -C $(TARBALLPATH) \
|
---|
1440 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
1441 | $(TARBALLROOT)
|
---|
1442 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1443 |
|
---|
1444 |
|
---|
1445 | #
|
---|
1446 | # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
|
---|
1447 | # - includes kBuild
|
---|
1448 | # - must be executed on an PUEL checkout
|
---|
1449 | #
|
---|
1450 |
|
---|
1451 | # the path where to store the zip archive
|
---|
1452 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1453 | # the root directory inside the zip archive
|
---|
1454 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
1455 | # the name of the zip archive
|
---|
1456 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
1457 | snapshot-puel:
|
---|
1458 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
1459 | @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1460 | echo; \
|
---|
1461 | echo "Did not find RDP stuff, is this an OSE branch?"; \
|
---|
1462 | echo; \
|
---|
1463 | exit 1; \
|
---|
1464 | fi
|
---|
1465 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
1466 | echo; \
|
---|
1467 | echo "Please specify a password with PASSWORD=..."; \
|
---|
1468 | echo; \
|
---|
1469 | exit 1; \
|
---|
1470 | fi
|
---|
1471 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
1472 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
1473 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
1474 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
1475 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
1476 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
1477 | -xr!.svn \
|
---|
1478 | -i!$(ZIPROOT)/Config.kmk \
|
---|
1479 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
1480 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
1481 | -i!$(ZIPROOT)/configure \
|
---|
1482 | -i!$(ZIPROOT)/configure.vbs \
|
---|
1483 | -i!$(ZIPROOT)/doc \
|
---|
1484 | -i!$(ZIPROOT)/include \
|
---|
1485 | -i!$(ZIPROOT)/kBuild \
|
---|
1486 | -i!$(ZIPROOT)/src \
|
---|
1487 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
1488 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
1489 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
1490 | -x!$(ZIPROOT)/doc/Devices \
|
---|
1491 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
1492 | -x!$(ZIPROOT)/doc/L4VM \
|
---|
1493 | -x!$(ZIPROOT)/doc/VMM \
|
---|
1494 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
1495 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
1496 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
1497 | -x!$(ZIPROOT)/src/tests \
|
---|
1498 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
1499 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
1500 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
1501 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
1502 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
1503 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
1504 | $(ZIPPATH)/$(ZIPNAME))
|
---|
1505 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
1506 |
|
---|
1507 |
|
---|
1508 | #
|
---|
1509 | # Generate ALL the rules.
|
---|
1510 | #
|
---|
1511 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1512 |
|
---|
1513 |
|
---|
1514 | #
|
---|
1515 | # Generate x86.mac and err.mac.
|
---|
1516 | #
|
---|
1517 | incs:
|
---|
1518 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
1519 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
1520 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
1521 | $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
|
---|
1522 | $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
|
---|
1523 | $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
|
---|
1524 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
1525 | $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
|
---|
1526 |
|
---|
1527 |
|
---|
1528 | #
|
---|
1529 | # Legacy.
|
---|
1530 | #
|
---|
1531 | vslick.h:
|
---|
1532 | $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
|
---|
1533 | exit 1
|
---|
1534 |
|
---|
1535 |
|
---|
1536 | #
|
---|
1537 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
1538 | #
|
---|
1539 | up update up2 update2::
|
---|
1540 | ifndef VBOX_OSE
|
---|
1541 | +$(MAKE) -C tools fetch
|
---|
1542 | else
|
---|
1543 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
1544 | endif
|
---|
1545 |
|
---|
1546 |
|
---|
1547 | #
|
---|
1548 | # For efficiently build serveral build types / archs.
|
---|
1549 | #
|
---|
1550 | both-debug-release both-release-debug: \
|
---|
1551 | build-release-$(KBUILD_TARGET_ARCH) \
|
---|
1552 | build-debug-$(KBUILD_TARGET_ARCH)
|
---|
1553 | both-x86-amd64 both-amd64-x86: \
|
---|
1554 | build-$(KBUILD_TYPE)-x86 \
|
---|
1555 | build-$(KBUILD_TYPE)-x86
|
---|
1556 | both-types-archs both-archs-types: \
|
---|
1557 | build-debug-x86 \
|
---|
1558 | build-release-x86 \
|
---|
1559 | build-debug-amd64 \
|
---|
1560 | build-release-amd64
|
---|
1561 |
|
---|
1562 | build-release-x86:
|
---|
1563 | +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
|
---|
1564 |
|
---|
1565 | build-debug-x86:
|
---|
1566 | +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
|
---|
1567 |
|
---|
1568 | build-release-amd64:
|
---|
1569 | +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
|
---|
1570 |
|
---|
1571 | build-debug-amd64:
|
---|
1572 | +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
|
---|
1573 |
|
---|
1574 |
|
---|
1575 | #
|
---|
1576 | # Aliases for building the SDK.
|
---|
1577 | #
|
---|
1578 | .NOTPARALLEL: sdk sdk-fetch
|
---|
1579 | sdk:
|
---|
1580 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
1581 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
1582 |
|
---|
1583 | sdk-fetch:
|
---|
1584 | + $(KMK) VBOX_ONLY_SDK=1 -C tools
|
---|
1585 |
|
---|