1 | # $Id: Makefile.kmk 45477 2013-04-11 09:10:52Z 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=doc/L4VM/ \
|
---|
767 | --exclude=tinderclient.log \
|
---|
768 | --exclude=tools/FetchDir/ \
|
---|
769 | --exclude=webtools/ \
|
---|
770 | $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
|
---|
771 | --exclude=tools/$(os).x86/ \
|
---|
772 | --exclude=tools/$(os).amd64/ \
|
---|
773 | --exclude=out/$(os).amd64/ \
|
---|
774 | --exclude=out/$(os).x86/ \
|
---|
775 | ,$(select \
|
---|
776 | "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
|
---|
777 | "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
|
---|
778 | ))
|
---|
779 |
|
---|
780 | #
|
---|
781 | # VM IP addresses.
|
---|
782 | #
|
---|
783 | VBOX_BLD_VM_LNX_X86_IP := 192.168.27.2
|
---|
784 | VBOX_BLD_VM_LNX_AMD64_IP := 192.168.27.12
|
---|
785 | VBOX_BLD_VM_LNX_NEW_X86_IP := 192.168.27.11
|
---|
786 | VBOX_BLD_VM_OS2_IP := 192.168.27.3
|
---|
787 | VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
|
---|
788 | VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
|
---|
789 | VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
|
---|
790 | VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
|
---|
791 | VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
|
---|
792 | VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
|
---|
793 | VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
|
---|
794 |
|
---|
795 | VBOX_WITH_OS2_ADD_BUILD=1
|
---|
796 |
|
---|
797 | #
|
---|
798 | # For profiling the VM building steps.
|
---|
799 | #
|
---|
800 | if 0
|
---|
801 | VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
|
---|
802 | VBOX_BLD_VM_MSG_END__ =
|
---|
803 | else
|
---|
804 | VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Building $1.
|
---|
805 | VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
|
---|
806 | endif
|
---|
807 |
|
---|
808 | #
|
---|
809 | # Build the additions, all of them.
|
---|
810 | #
|
---|
811 | # This is currently tailored (hardcoded) for the additions
|
---|
812 | # build box. Can make it pretty and configurable later.
|
---|
813 | #
|
---|
814 | # The fetching must be done in serial fashion, while the building
|
---|
815 | # should be more flexible wrt to -jN.
|
---|
816 | #
|
---|
817 | additions-fetch:
|
---|
818 | + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
|
---|
819 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
820 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
821 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
822 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
|
---|
823 | endif
|
---|
824 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
825 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
826 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
827 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
828 |
|
---|
829 |
|
---|
830 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
831 | # built first. The windows amd64 additions need some x86 files, so don't change
|
---|
832 | # the order of the windows builds. TODO: Split building and packing for these two VMs.
|
---|
833 | additions-build: \
|
---|
834 | additions-build-rsync-into-vms \
|
---|
835 | additions-build-win.x86 \
|
---|
836 | additions-build-win.amd64 \
|
---|
837 | additions-build-solaris.amd64 \
|
---|
838 | additions-build-solaris.x86 \
|
---|
839 | additions-build-os2.x86 \
|
---|
840 | additions-build-linux.x86.combined
|
---|
841 |
|
---|
842 | additions-build-rsync-into-vms: \
|
---|
843 | additions-build-solaris.rsync-into-vm \
|
---|
844 | additions-build-os2.rsync-into-vm
|
---|
845 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
846 | .NOTPARALLEL: additions-build-rsync-into-vms
|
---|
847 |
|
---|
848 |
|
---|
849 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
850 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
851 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
852 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
853 |
|
---|
854 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
855 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
856 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
857 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
858 |
|
---|
859 | # Automatically determine the additions build subdir name. Used for figuring
|
---|
860 | # out directory names inside the additions building VMs.
|
---|
861 | VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
862 |
|
---|
863 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
864 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
865 | ifeq ($(KBUILD_TARGET),win)
|
---|
866 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = additions-build-win.x86 additions-build-win.amd64
|
---|
867 | else
|
---|
868 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
869 | endif
|
---|
870 |
|
---|
871 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
872 | additions-build-win.amd64: additions-build-win.x86
|
---|
873 | ifeq ($(KBUILD_TARGET),win)
|
---|
874 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
875 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
876 | else
|
---|
877 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions)
|
---|
878 | $(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 "
|
---|
879 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions)
|
---|
880 | endif
|
---|
881 |
|
---|
882 | additions-build-win.x86:
|
---|
883 | ifeq ($(KBUILD_TARGET),win)
|
---|
884 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
885 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
886 | else
|
---|
887 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions)
|
---|
888 | $(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"
|
---|
889 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions)
|
---|
890 | endif
|
---|
891 |
|
---|
892 | # ASSUMES the 64-bit edition are built first. This also serializes VM access.
|
---|
893 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
894 | additions-build-solaris.amd64:
|
---|
895 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
896 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
897 |
|
---|
898 | additions-build-solaris.x86: additions-build-solaris.amd64
|
---|
899 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
900 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
|
---|
901 |
|
---|
902 | additions-build-solaris.rsync-into-vm:
|
---|
903 | else
|
---|
904 | additions-build-solaris.rsync-into-vm:
|
---|
905 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
|
---|
906 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
907 | '--exclude=src/VBox/Frontends/**' \
|
---|
908 | '--exclude=src/VBox/VMM/**' \
|
---|
909 | . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
910 |
|
---|
911 | additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
|
---|
912 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions)
|
---|
913 | $(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"
|
---|
914 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions)
|
---|
915 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions)
|
---|
916 | $(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"
|
---|
917 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions)
|
---|
918 |
|
---|
919 | additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
|
---|
920 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
921 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
922 |
|
---|
923 | .NOTPARALLEL: additions-build-solaris.rsync-into-vm # additions-build-solaris.rsync-out-of-vm
|
---|
924 | .PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
|
---|
925 |
|
---|
926 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
927 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
928 | endif
|
---|
929 |
|
---|
930 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
931 | ifeq ($(KBUILD_TARGET),os2)
|
---|
932 | additions-build-os2.x86:
|
---|
933 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
934 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
935 |
|
---|
936 | additions-build-os2.rsync-into-vm:
|
---|
937 | else
|
---|
938 | additions-build-os2.rsync-into-vm:
|
---|
939 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
|
---|
940 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
941 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
942 | '--exclude=src/VBox/Frontends/**' \
|
---|
943 | '--exclude=src/VBox/VMM/**' \
|
---|
944 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
945 |
|
---|
946 | additions-build-os2.build-it: additions-build-os2.rsync-into-vm
|
---|
947 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions)
|
---|
948 | $(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"
|
---|
949 | $(call VBOX_BLD_VM_MSG_END__,OS/2 additions)
|
---|
950 |
|
---|
951 | additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
|
---|
952 | $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
953 |
|
---|
954 | .NOTPARALLEL: additions-build-os2.rsync-into-vm #additions-build-os2.rsync-out-of-vm
|
---|
955 | .PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
|
---|
956 |
|
---|
957 | additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
|
---|
958 | endif
|
---|
959 | #
|
---|
960 | else
|
---|
961 | additions-build-os2.x86:
|
---|
962 | # Dummy
|
---|
963 | endif
|
---|
964 |
|
---|
965 | additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
966 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
967 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
968 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
969 | else
|
---|
970 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
971 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
|
---|
972 | $(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\""'
|
---|
973 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
|
---|
974 | endif
|
---|
975 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions)
|
---|
976 | $(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)"
|
---|
977 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions)
|
---|
978 | endif
|
---|
979 |
|
---|
980 | additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
981 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
982 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
983 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
984 | else
|
---|
985 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
986 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
|
---|
987 | $(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\""'
|
---|
988 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
|
---|
989 | endif
|
---|
990 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
|
---|
991 | $(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)\""'
|
---|
992 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
|
---|
993 | endif
|
---|
994 |
|
---|
995 | # Combined Linux Additions .run package. This depends on the archives
|
---|
996 | # created during packing by the architecture-specific builds.
|
---|
997 | additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
|
---|
998 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
999 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1000 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
|
---|
1001 | else
|
---|
1002 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
|
---|
1003 | $(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\""'
|
---|
1004 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
|
---|
1005 | endif
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | additions-packing:
|
---|
1009 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
1010 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
1011 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
1012 | VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
|
---|
1013 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
1014 | VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
|
---|
1015 | VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
|
---|
1016 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
1017 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
1018 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
1019 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
1020 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
1021 | -C src/VBox/Additions \
|
---|
1022 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
|
---|
1023 |
|
---|
1024 | .PHONY: \
|
---|
1025 | additions-build-win.x86 \
|
---|
1026 | additions-build-win.amd64 \
|
---|
1027 | additions-build-solaris.amd64 \
|
---|
1028 | additions-build-solaris.x86 \
|
---|
1029 | additions-build-os2.x86 \
|
---|
1030 | additions-build-linux.amd64 \
|
---|
1031 | additions-build-linux.x86 \
|
---|
1032 | additions-build-linux.x86.combined \
|
---|
1033 | additions-packing
|
---|
1034 |
|
---|
1035 |
|
---|
1036 | #
|
---|
1037 | # Build the extension packs, all of them.
|
---|
1038 | #
|
---|
1039 | # This is tailored (hardcoded) for the extension pack build box.
|
---|
1040 | #
|
---|
1041 | # The fetching must be done in serial fashion, while the building should be
|
---|
1042 | # more flexible wrt to -jN.
|
---|
1043 | #
|
---|
1044 | extpacks-fetch:
|
---|
1045 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
1046 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1047 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1048 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1049 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1050 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1051 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1052 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
|
---|
1053 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
1054 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
1055 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1056 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1057 |
|
---|
1058 |
|
---|
1059 | extpacks-build: \
|
---|
1060 | extpacks-build-win.amd64 \
|
---|
1061 | extpacks-build-win.x86 \
|
---|
1062 | extpacks-build-solaris.amd64 \
|
---|
1063 | extpacks-build-solaris.x86 \
|
---|
1064 | extpacks-build-os2.x86 \
|
---|
1065 | extpacks-build-linux.amd64 \
|
---|
1066 | extpacks-build-linux.x86 \
|
---|
1067 | extpacks-build-darwin.amd64 \
|
---|
1068 | extpacks-build-darwin.x86 \
|
---|
1069 | extpacks-build-freebsd.amd64 \
|
---|
1070 | extpacks-build-freebsd.x86
|
---|
1071 |
|
---|
1072 | VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
|
---|
1073 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1074 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1075 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1076 |
|
---|
1077 | VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
|
---|
1078 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1079 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1080 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1081 |
|
---|
1082 | # Automatically determine the extpack build subdir name. Used for figuring out
|
---|
1083 | # directory names inside the extension pack building VMs.
|
---|
1084 | VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1085 |
|
---|
1086 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1087 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1088 | ifeq ($(KBUILD_TARGET),win)
|
---|
1089 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
|
---|
1090 | else
|
---|
1091 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
|
---|
1092 | endif
|
---|
1093 |
|
---|
1094 | extpacks-build-win.amd64:
|
---|
1095 | ifeq ($(KBUILD_TARGET),win)
|
---|
1096 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1097 | else
|
---|
1098 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
|
---|
1099 | $(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"
|
---|
1100 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
|
---|
1101 | endif
|
---|
1102 |
|
---|
1103 | extpacks-build-win.x86:
|
---|
1104 | ifeq ($(KBUILD_TARGET),win)
|
---|
1105 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1106 | else
|
---|
1107 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
|
---|
1108 | $(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"
|
---|
1109 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
|
---|
1110 | endif
|
---|
1111 |
|
---|
1112 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1113 | extpacks-build-solaris.amd64:
|
---|
1114 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1115 |
|
---|
1116 | extpacks-build-solaris.x86: extpacks-build-solaris.amd64
|
---|
1117 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1118 |
|
---|
1119 | else
|
---|
1120 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
1121 | extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1122 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1123 |
|
---|
1124 | extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
|
---|
1125 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
|
---|
1126 | $(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"
|
---|
1127 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
|
---|
1128 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 extension packs)
|
---|
1129 | $(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"
|
---|
1130 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 extension packs)
|
---|
1131 |
|
---|
1132 | extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
|
---|
1133 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1134 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1135 |
|
---|
1136 | .NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
|
---|
1137 | .PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
|
---|
1138 |
|
---|
1139 | extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
|
---|
1140 | extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
|
---|
1141 | endif
|
---|
1142 |
|
---|
1143 | extpacks-build-os2.x86:
|
---|
1144 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
1145 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1146 | #else
|
---|
1147 | # $(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) "
|
---|
1148 | #endif
|
---|
1149 |
|
---|
1150 | extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1151 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
1152 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1153 | else
|
---|
1154 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
|
---|
1155 | $(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"
|
---|
1156 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
|
---|
1157 | endif
|
---|
1158 |
|
---|
1159 | extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1160 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
1161 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1162 | else
|
---|
1163 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
|
---|
1164 | $(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"
|
---|
1165 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
|
---|
1166 | endif
|
---|
1167 |
|
---|
1168 | extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1169 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1170 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1171 | #else
|
---|
1172 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
|
---|
1173 | # $(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"
|
---|
1174 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
|
---|
1175 | #endif
|
---|
1176 |
|
---|
1177 | extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1178 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1179 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1180 | #else
|
---|
1181 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
|
---|
1182 | # $(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"
|
---|
1183 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
|
---|
1184 | #endif
|
---|
1185 |
|
---|
1186 | extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1187 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1188 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1189 | else
|
---|
1190 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
|
---|
1191 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1192 | $(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"
|
---|
1193 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1194 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
|
---|
1195 | endif
|
---|
1196 |
|
---|
1197 | extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1198 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
|
---|
1199 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1200 | else
|
---|
1201 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 extension packs)
|
---|
1202 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1203 | $(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"
|
---|
1204 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
|
---|
1205 | $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 extension packs)
|
---|
1206 | endif
|
---|
1207 |
|
---|
1208 |
|
---|
1209 | extpacks-packing:
|
---|
1210 | + $(KMK) VBOX_ONLY_EXTPACKS=1 \
|
---|
1211 | VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
|
---|
1212 | packing
|
---|
1213 | # +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
|
---|
1214 |
|
---|
1215 | .PHONY: \
|
---|
1216 | extpacks-build-win.x86 \
|
---|
1217 | extpacks-build-win.amd64 \
|
---|
1218 | extpacks-build-solaris.amd64 \
|
---|
1219 | extpacks-build-solaris.x86 \
|
---|
1220 | extpacks-build-os2.x86 \
|
---|
1221 | extpacks-build-linux.amd64 \
|
---|
1222 | extpacks-build-linux.x86 \
|
---|
1223 | extpacks-build-freebsd.amd64 \
|
---|
1224 | extpacks-build-freebsd.x86 \
|
---|
1225 | extpacks-build-darwin.amd64 \
|
---|
1226 | extpacks-build-darwin.x86 \
|
---|
1227 | extpacks-packing
|
---|
1228 |
|
---|
1229 |
|
---|
1230 | #
|
---|
1231 | # Build the test suite, all of it.
|
---|
1232 | #
|
---|
1233 | # This is currently tailored (hardcoded) for the additions build box just like
|
---|
1234 | # the additions build above, which it in fact is a copy of.
|
---|
1235 | #
|
---|
1236 | testsuite-fetch:
|
---|
1237 | + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
|
---|
1238 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
|
---|
1239 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
|
---|
1240 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
|
---|
1241 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
|
---|
1242 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
|
---|
1243 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
|
---|
1244 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
|
---|
1245 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
|
---|
1246 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
|
---|
1247 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
|
---|
1248 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
|
---|
1249 |
|
---|
1250 |
|
---|
1251 | testsuite-build: \
|
---|
1252 | testsuite-build-rsync-into-vms \
|
---|
1253 | testsuite-build-solaris.amd64 \
|
---|
1254 | testsuite-build-solaris.x86 \
|
---|
1255 | testsuite-build-win.x86 \
|
---|
1256 | testsuite-build-win.amd64 \
|
---|
1257 | testsuite-build-os2.x86 \
|
---|
1258 | testsuite-build-linux.amd64 \
|
---|
1259 | testsuite-build-linux.x86 \
|
---|
1260 | testsuite-build-freebsd.amd64 \
|
---|
1261 | testsuite-build-freebsd.x86 \
|
---|
1262 | testsuite-build-darwin.amd64 \
|
---|
1263 | testsuite-build-darwin.x86
|
---|
1264 |
|
---|
1265 | testsuite-build-rsync-into-vms: \
|
---|
1266 | testsuite-build-solaris.rsync-into-vm \
|
---|
1267 | testsuite-build-os2.rsync-into-vm
|
---|
1268 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
1269 | .NOTPARALLEL: testsuite-build-rsync-into-vms
|
---|
1270 |
|
---|
1271 |
|
---|
1272 | VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
|
---|
1273 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1274 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1275 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1276 |
|
---|
1277 | VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
|
---|
1278 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1279 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1280 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1281 |
|
---|
1282 | # Automatically determine the testsuite build subdir name. Used for figuring
|
---|
1283 | # out directory names inside the test suite building VMs.
|
---|
1284 | VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1285 |
|
---|
1286 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1287 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1288 | ifeq ($(KBUILD_TARGET),win)
|
---|
1289 | VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
|
---|
1290 | else
|
---|
1291 | VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
|
---|
1292 | endif
|
---|
1293 |
|
---|
1294 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
1295 | testsuite-build-win.amd64: testsuite-build-win.x86
|
---|
1296 | ifeq ($(KBUILD_TARGET),win)
|
---|
1297 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1298 | else
|
---|
1299 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 testsuite)
|
---|
1300 | $(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 "
|
---|
1301 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 testsuite)
|
---|
1302 | endif
|
---|
1303 |
|
---|
1304 | testsuite-build-win.x86:
|
---|
1305 | ifeq ($(KBUILD_TARGET),win)
|
---|
1306 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1307 | else
|
---|
1308 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 testsuite)
|
---|
1309 | $(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"
|
---|
1310 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 testsuite)
|
---|
1311 | endif
|
---|
1312 |
|
---|
1313 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1314 | testsuite-build-solaris.amd64:
|
---|
1315 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1316 |
|
---|
1317 | testsuite-build-solaris.x86:
|
---|
1318 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1319 |
|
---|
1320 | else
|
---|
1321 | testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1322 | $(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)
|
---|
1323 |
|
---|
1324 | testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
|
---|
1325 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 testsuite)
|
---|
1326 | $(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"
|
---|
1327 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 testsuite)
|
---|
1328 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 testsuite)
|
---|
1329 | $(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 "
|
---|
1330 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 testsuite)
|
---|
1331 |
|
---|
1332 | testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
|
---|
1333 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1334 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1335 |
|
---|
1336 | .NOTPARALLEL: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
|
---|
1337 | .PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
|
---|
1338 |
|
---|
1339 | testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
|
---|
1340 | testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
|
---|
1341 | endif
|
---|
1342 |
|
---|
1343 | ifeq ($(KBUILD_TARGET),os2)
|
---|
1344 | testsuite-build-os2.x86:
|
---|
1345 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1346 | testsuite-build-os2.rsync-into-vm:
|
---|
1347 | else # !OS/2
|
---|
1348 | testsuite-build-os2.rsync-into-vm:
|
---|
1349 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
|
---|
1350 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1351 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1352 | '--exclude=src/VBox/Frontends/**' \
|
---|
1353 | '--exclude=src/VBox/VMM/**' \
|
---|
1354 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
|
---|
1355 |
|
---|
1356 | testsuite-build-os2.build-it: testsuite-build-os2.rsync-into-vm
|
---|
1357 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 TestSuite)
|
---|
1358 | $(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"
|
---|
1359 | $(call VBOX_BLD_VM_MSG_END__,OS/2 TestSuite)
|
---|
1360 |
|
---|
1361 | testsuite-build-os2.rsync-out-of-vm: testsuite-build-os2.build-it
|
---|
1362 | $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
1363 |
|
---|
1364 | .NOTPARALLEL: testsuite-build-os2.rsync-into-vm #testsuite-build-os2.rsync-out-of-vm
|
---|
1365 | .PHONY: testsuite-build-os2.rsync-into-vm testsuite-build-os2.rsync-out-of-vm testsuite-build-os2.build-it
|
---|
1366 |
|
---|
1367 | testsuite-build-os2.x86: testsuite-build-os2.rsync-out-of-vm
|
---|
1368 | endif # !OS/2
|
---|
1369 |
|
---|
1370 | testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1371 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
1372 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1373 | else
|
---|
1374 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 testsuite)
|
---|
1375 | $(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"
|
---|
1376 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 testsuite)
|
---|
1377 | endif
|
---|
1378 |
|
---|
1379 | testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1380 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
1381 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1382 | else
|
---|
1383 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 testsuite)
|
---|
1384 | $(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\""'
|
---|
1385 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 testsuite)
|
---|
1386 | endif
|
---|
1387 |
|
---|
1388 | testsuite-build-freebsd.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1389 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1390 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1391 | #else
|
---|
1392 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 testsuite)
|
---|
1393 | # $(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"
|
---|
1394 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 testsuite)
|
---|
1395 | #endif
|
---|
1396 |
|
---|
1397 | testsuite-build-freebsd.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1398 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1399 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1400 | #else
|
---|
1401 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 testsuite)
|
---|
1402 | # $(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"
|
---|
1403 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 testsuite)
|
---|
1404 | #endif
|
---|
1405 |
|
---|
1406 | testsuite-build-darwin.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1407 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1408 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1409 | else
|
---|
1410 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 testsuite)
|
---|
1411 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1412 | $(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"
|
---|
1413 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1414 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 testsuite)
|
---|
1415 | endif
|
---|
1416 |
|
---|
1417 | testsuite-build-darwin.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1418 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
|
---|
1419 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1420 | else
|
---|
1421 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 testsuite)
|
---|
1422 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1423 | $(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"
|
---|
1424 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
|
---|
1425 | $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 testsuite)
|
---|
1426 | endif
|
---|
1427 |
|
---|
1428 |
|
---|
1429 | testsuite-packing:
|
---|
1430 | + $(KMK) VBOX_ONLY_TESTSUITE=1 \
|
---|
1431 | VBOX_WITH_TESTSUITE_PACKING.darwin.amd64=1 \
|
---|
1432 | VBOX_WITH_TESTSUITE_PACKING.darwin.x86=2 \
|
---|
1433 | VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
|
---|
1434 | VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
|
---|
1435 | VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
|
---|
1436 | VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
|
---|
1437 | VBOX_WITH_TESTSUITE_PACKING.os2.x86=1 \
|
---|
1438 | VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
|
---|
1439 | VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
|
---|
1440 | VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
|
---|
1441 | VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
|
---|
1442 | -C src/VBox/Testsuite \
|
---|
1443 | $(PATH_OUT)/VBoxTestSuite.zip \
|
---|
1444 | $(PATH_OUT)/VBoxTestBoxScript.zip
|
---|
1445 |
|
---|
1446 | .PHONY: \
|
---|
1447 | testsuite-build-win.x86 \
|
---|
1448 | testsuite-build-win.amd64 \
|
---|
1449 | testsuite-build-solaris.amd64 \
|
---|
1450 | testsuite-build-solaris.x86 \
|
---|
1451 | testsuite-build-os2.x86 \
|
---|
1452 | testsuite-build-linux.amd64 \
|
---|
1453 | testsuite-build-linux.x86 \
|
---|
1454 | testsuite-build-freebsd.amd64 \
|
---|
1455 | testsuite-build-freebsd.x86 \
|
---|
1456 | testsuite-build-darwin.amd64 \
|
---|
1457 | testsuite-build-darwin.x86 \
|
---|
1458 | testsuite-packing
|
---|
1459 |
|
---|
1460 |
|
---|
1461 | #
|
---|
1462 | # Build the EFI firmware, all of it.
|
---|
1463 | #
|
---|
1464 | # Mainly hooks right now, maybe we need them later.
|
---|
1465 | #
|
---|
1466 | efi-fetch:
|
---|
1467 |
|
---|
1468 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
1469 | $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
|
---|
1470 |
|
---|
1471 | efi-packing:
|
---|
1472 |
|
---|
1473 | #
|
---|
1474 | # Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
|
---|
1475 | # - includes kBuild
|
---|
1476 | # - must be executed on an OSE checkout
|
---|
1477 | #
|
---|
1478 |
|
---|
1479 | # the path where to store the tarball
|
---|
1480 | TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1481 | # the root directory inside the tarball
|
---|
1482 | TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
|
---|
1483 | # the name of the tarball file
|
---|
1484 | TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
|
---|
1485 | snapshot-ose:
|
---|
1486 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
1487 | @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1488 | echo; \
|
---|
1489 | echo "Found RDP stuff, refused to build OSE tarball!"; \
|
---|
1490 | echo; \
|
---|
1491 | exit 1; \
|
---|
1492 | fi; \
|
---|
1493 | if [ -z "$(VBOX_OSE)" ]; then \
|
---|
1494 | echo; \
|
---|
1495 | echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
|
---|
1496 | echo; \
|
---|
1497 | exit 1; \
|
---|
1498 | fi
|
---|
1499 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
1500 | $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1501 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1502 | $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
|
---|
1503 | --exclude=.svn \
|
---|
1504 | --exclude=$(TARBALLROOT)/out \
|
---|
1505 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
1506 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
1507 | --exclude=$(TARBALLROOT)/build.log \
|
---|
1508 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
1509 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
1510 | --exclude=$(TARBALLROOT)/prebuild \
|
---|
1511 | -C $(TARBALLPATH) \
|
---|
1512 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
1513 | $(TARBALLROOT)
|
---|
1514 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1515 |
|
---|
1516 |
|
---|
1517 | #
|
---|
1518 | # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
|
---|
1519 | # - includes kBuild
|
---|
1520 | # - must be executed on an PUEL checkout
|
---|
1521 | #
|
---|
1522 |
|
---|
1523 | # the path where to store the zip archive
|
---|
1524 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1525 | # the root directory inside the zip archive
|
---|
1526 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
1527 | # the name of the zip archive
|
---|
1528 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
1529 | snapshot-puel:
|
---|
1530 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
1531 | @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1532 | echo; \
|
---|
1533 | echo "Did not find RDP stuff, is this an OSE branch?"; \
|
---|
1534 | echo; \
|
---|
1535 | exit 1; \
|
---|
1536 | fi
|
---|
1537 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
1538 | echo; \
|
---|
1539 | echo "Please specify a password with PASSWORD=..."; \
|
---|
1540 | echo; \
|
---|
1541 | exit 1; \
|
---|
1542 | fi
|
---|
1543 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
1544 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
1545 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
1546 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
1547 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
1548 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
1549 | -xr!.svn \
|
---|
1550 | -i!$(ZIPROOT)/Config.kmk \
|
---|
1551 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
1552 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
1553 | -i!$(ZIPROOT)/configure \
|
---|
1554 | -i!$(ZIPROOT)/configure.vbs \
|
---|
1555 | -i!$(ZIPROOT)/doc \
|
---|
1556 | -i!$(ZIPROOT)/include \
|
---|
1557 | -i!$(ZIPROOT)/kBuild \
|
---|
1558 | -i!$(ZIPROOT)/src \
|
---|
1559 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
1560 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
1561 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
1562 | -x!$(ZIPROOT)/doc/Devices \
|
---|
1563 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
1564 | -x!$(ZIPROOT)/doc/L4VM \
|
---|
1565 | -x!$(ZIPROOT)/doc/VMM \
|
---|
1566 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
1567 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
1568 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
1569 | -x!$(ZIPROOT)/src/tests \
|
---|
1570 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
1571 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
1572 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
1573 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
1574 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
1575 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
1576 | $(ZIPPATH)/$(ZIPNAME))
|
---|
1577 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
1578 |
|
---|
1579 |
|
---|
1580 | #
|
---|
1581 | # Generate ALL the rules.
|
---|
1582 | #
|
---|
1583 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1584 |
|
---|
1585 |
|
---|
1586 | #
|
---|
1587 | # Generate x86.mac and err.mac.
|
---|
1588 | #
|
---|
1589 | incs:
|
---|
1590 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
1591 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
1592 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
1593 | $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
|
---|
1594 | $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
|
---|
1595 | $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
|
---|
1596 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
1597 | $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
|
---|
1598 |
|
---|
1599 |
|
---|
1600 | #
|
---|
1601 | # Legacy.
|
---|
1602 | #
|
---|
1603 | vslick.h:
|
---|
1604 | $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
|
---|
1605 | exit 1
|
---|
1606 |
|
---|
1607 |
|
---|
1608 | #
|
---|
1609 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
1610 | #
|
---|
1611 | up update up2 update2::
|
---|
1612 | ifndef VBOX_OSE
|
---|
1613 | +$(MAKE) -C tools fetch
|
---|
1614 | else
|
---|
1615 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
1616 | endif
|
---|
1617 |
|
---|
1618 |
|
---|
1619 | #
|
---|
1620 | # For efficiently build serveral build types / archs.
|
---|
1621 | #
|
---|
1622 | both-debug-release both-release-debug: \
|
---|
1623 | build-release-$(KBUILD_TARGET_ARCH) \
|
---|
1624 | build-debug-$(KBUILD_TARGET_ARCH)
|
---|
1625 | both-x86-amd64 both-amd64-x86: \
|
---|
1626 | build-$(KBUILD_TYPE)-x86 \
|
---|
1627 | build-$(KBUILD_TYPE)-x86
|
---|
1628 | both-types-archs both-archs-types: \
|
---|
1629 | build-debug-x86 \
|
---|
1630 | build-release-x86 \
|
---|
1631 | build-debug-amd64 \
|
---|
1632 | build-release-amd64
|
---|
1633 |
|
---|
1634 | build-release-x86:
|
---|
1635 | +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
|
---|
1636 |
|
---|
1637 | build-debug-x86:
|
---|
1638 | +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
|
---|
1639 |
|
---|
1640 | build-release-amd64:
|
---|
1641 | +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
|
---|
1642 |
|
---|
1643 | build-debug-amd64:
|
---|
1644 | +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
|
---|
1645 |
|
---|
1646 |
|
---|
1647 | #
|
---|
1648 | # Aliases for building the SDK.
|
---|
1649 | #
|
---|
1650 | .NOTPARALLEL: sdk sdk-fetch
|
---|
1651 | sdk:
|
---|
1652 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
1653 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
1654 |
|
---|
1655 | sdk-fetch:
|
---|
1656 | + $(KMK) VBOX_ONLY_SDK=1 -C tools
|
---|
1657 |
|
---|