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