1 | # $Id: Makefile.kmk 68790 2017-09-19 10:07:28Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top level makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 | ifndef VBOX_ONLY_ROOT_MAKEFILE
|
---|
25 | if (defined(VBOX_WITH_DOCS) || defined(VBOX_WITH_MAIN)) \
|
---|
26 | && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK))
|
---|
27 | include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
|
---|
28 | endif
|
---|
29 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
30 | ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
|
---|
31 | include $(PATH_SUB_CURRENT)/include/Makefile.kmk
|
---|
32 | endif
|
---|
33 | endif
|
---|
34 |
|
---|
35 | #
|
---|
36 | # Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
|
---|
37 | # from the build server), and it's not really worth the effort of dragging in
|
---|
38 | #q this tool only if absolutely needed.
|
---|
39 | #
|
---|
40 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
41 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
42 | ifndef TOOL_ZIP_PACK
|
---|
43 | TOOL_ZIP_PACK = zip
|
---|
44 | endif
|
---|
45 |
|
---|
46 |
|
---|
47 | ## @todo split up this file!
|
---|
48 |
|
---|
49 |
|
---|
50 | #
|
---|
51 | # Clean up global stuff that Config.kmk generates.
|
---|
52 | #
|
---|
53 | OTHER_CLEAN += \
|
---|
54 | $(VBOX_PACKAGE_HEADER) \
|
---|
55 | $(VBOX_LICENSE_VER_KMK) \
|
---|
56 | $(VBOX_VERSION_MK) \
|
---|
57 | $(VBOX_VERSION_HEADER) \
|
---|
58 | $(VBOX_VERSION_STAMP) \
|
---|
59 | $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
|
---|
60 | $(VBOX_SVN_REV_KMK).ts \
|
---|
61 | $(VBOX_SVN_REV_KMK) \
|
---|
62 | $(PATH_OUT)/DynamicConfig.kmk
|
---|
63 |
|
---|
64 |
|
---|
65 | if !defined(VBOX_ONLY_ADDITIONS) \
|
---|
66 | && !defined(VBOX_ONLY_DOCS) \
|
---|
67 | && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
68 | && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
|
---|
69 |
|
---|
70 | if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
|
---|
71 | #
|
---|
72 | # Install the license (and misc non-executable stuff).
|
---|
73 | #
|
---|
74 | INSTALLS += InstallLicenseFiles
|
---|
75 | InstallLicenseFiles_INST = $(INST_BIN)
|
---|
76 | InstallLicenseFiles_MODE = 0644
|
---|
77 | InstallLicenseFiles_SOURCES =
|
---|
78 | InstallLicenseFiles_SOURCES += \
|
---|
79 | $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
|
---|
80 | $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
|
---|
81 | endif
|
---|
82 |
|
---|
83 |
|
---|
84 | #
|
---|
85 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
86 | #
|
---|
87 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
88 | # and .linux property suffixes.
|
---|
89 | #
|
---|
90 | INSTALLS += InstallExternalLibs
|
---|
91 |
|
---|
92 | InstallExternalLibs_INST = $(INST_BIN)
|
---|
93 |
|
---|
94 | # The SDL DLLs
|
---|
95 | if1of ($(KBUILD_TARGET), win os2)
|
---|
96 | ifdef VBOX_WITH_VBOXSDL
|
---|
97 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
98 | InstallExternalLibs_SOURCES += \
|
---|
99 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
|
---|
100 | ifdef VBOX_WITH_SECURELABEL
|
---|
101 | InstallExternalLibs_SOURCES += \
|
---|
102 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
|
---|
103 | endif
|
---|
104 | ifeq ($(KBUILD_TARGET),os2)
|
---|
105 | InstallExternalLibs_SOURCES += \
|
---|
106 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
107 | endif
|
---|
108 | endif
|
---|
109 | endif
|
---|
110 |
|
---|
111 |
|
---|
112 | # The compiler runtime DLLs.
|
---|
113 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
114 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
|
---|
115 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
|
---|
116 | VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
|
---|
117 | VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
|
---|
118 | VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
|
---|
119 | VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
|
---|
120 | VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
|
---|
121 | VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
|
---|
122 |
|
---|
123 | InstallExternalLibs_SOURCES += \
|
---|
124 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
|
---|
125 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
|
---|
126 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
|
---|
127 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
|
---|
128 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
129 | InstallExternalLibs_SOURCES += \
|
---|
130 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
|
---|
131 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
|
---|
132 | endif
|
---|
133 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
134 | InstallExternalLibs_SOURCES += \
|
---|
135 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
|
---|
136 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
|
---|
137 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
|
---|
138 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
|
---|
139 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
140 | InstallExternalLibs_SOURCES += \
|
---|
141 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
|
---|
142 | $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
|
---|
143 | endif
|
---|
144 | endif
|
---|
145 | endif
|
---|
146 |
|
---|
147 | #
|
---|
148 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
149 | # Note: The installer fixes the darwin .dylibs when hardening is enabled.
|
---|
150 | # Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
|
---|
151 | # https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
|
---|
152 | # the Info.plist file goes into Resources.
|
---|
153 | #
|
---|
154 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
155 | include $(KBUILD_PATH)/units/qt5.kmk
|
---|
156 | INSTALLS += qt5-bin
|
---|
157 | qt5-bin_MODE = 755
|
---|
158 | qt5-bin_INST = $(INST_VIRTUALBOX)Contents/
|
---|
159 | qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
|
---|
160 | $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod) \
|
---|
161 | $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist)
|
---|
162 | qt5-bin_SOURCES += \
|
---|
163 | $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
|
---|
164 | $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
|
---|
165 | $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL)
|
---|
166 | qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
|
---|
167 | Frameworks/$(qtmod).framework/Versions/Current=>5 \
|
---|
168 | Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \
|
---|
169 | Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources)
|
---|
170 | else # win x11
|
---|
171 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
172 | ifndef VBOX_ONLY_BUILD
|
---|
173 | ifneq ($(VBOX_GCC_VERSION_CXX),)
|
---|
174 | ifeq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),)
|
---|
175 | $(error gcc >= 4.4 required when compiling against Qt5!)
|
---|
176 | endif
|
---|
177 | endif
|
---|
178 | endif
|
---|
179 | endif
|
---|
180 | if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
|
---|
181 | include $(KBUILD_PATH)/units/qt5.kmk
|
---|
182 | ifeq ($(KBUILD_TARGET),win)
|
---|
183 | INSTALLS += qt5-bin
|
---|
184 | qt5-bin_MODE = 755
|
---|
185 | qt5-bin_INST = $(INST_BIN)
|
---|
186 | qt5-bin_SOURCES = \
|
---|
187 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL)))
|
---|
188 | qt5-bin_SOURCES += \
|
---|
189 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \
|
---|
190 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \
|
---|
191 | $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL)
|
---|
192 | ifdef VBOX_WITH_QT_PDBS
|
---|
193 | qt5-bin_SOURCES += \
|
---|
194 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
|
---|
195 | endif # VBOX_WITH_QT_PDBS
|
---|
196 | else # x11
|
---|
197 | INSTALLS += qt5-bin
|
---|
198 | qt5-bin_MODE = 755
|
---|
199 | qt5-bin_INST = $(INST_BIN)
|
---|
200 | ifdef VBOX_WITH_HARDENING
|
---|
201 | # The wildcards are necessary to install the libs instead of the symlinks
|
---|
202 | qt5-bin_SOURCES = \
|
---|
203 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \
|
---|
204 | $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
|
---|
205 | ifneq ($(KBUILD_TARGET),solaris)
|
---|
206 | qt5-bin_SOURCES += \
|
---|
207 | $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib))
|
---|
208 | endif # solaris
|
---|
209 | else # !VBOX_WITH_HARDENING
|
---|
210 | # For non-hardened builds we need to remove the RUNPATH. This stuff is
|
---|
211 | # ugly but we need to prevent kBuild from hard-linking otherwise we
|
---|
212 | # (indirectly) change the binaries in tools
|
---|
213 | ifneq ($(KBUILD_TARGET),solaris)
|
---|
214 | QT5_VERSION = 5.6.1
|
---|
215 | else
|
---|
216 | QT5_VERSION = 5.6.2
|
---|
217 | endif
|
---|
218 | qt5-bin_SOURCES = \
|
---|
219 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \
|
---|
220 | $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib))
|
---|
221 | ifneq ($(KBUILD_TARGET),solaris)
|
---|
222 | qt5-bin_SOURCES += \
|
---|
223 | $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib))
|
---|
224 | endif # solaris
|
---|
225 |
|
---|
226 | $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \
|
---|
227 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
228 | $(call MSG_INST_FILE,$^,$@)
|
---|
229 | $(QUIET)$(CP) $^ $@
|
---|
230 | $(QUIET)chrpath --delete $@
|
---|
231 |
|
---|
232 | ifneq ($(KBUILD_TARGET),solaris)
|
---|
233 | $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
|
---|
234 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
235 | $(call MSG_INST_FILE,$^,$@)
|
---|
236 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
237 | $(QUIET)$(CP) $^ $@
|
---|
238 | $(QUIET)chrpath --delete $@
|
---|
239 | endif # !solaris
|
---|
240 |
|
---|
241 | # @todo For solaris dlopen fails to navigate executable rpath to dependent libraries,
|
---|
242 | # so add explicit rpath for libqxcb.so, find better solution later.
|
---|
243 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
244 | $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
|
---|
245 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
|
---|
246 | $(call MSG_INST_FILE,$^,$@)
|
---|
247 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
248 | $(QUIET)$(CP) $^ $@
|
---|
249 | $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
|
---|
250 | endif # solaris
|
---|
251 |
|
---|
252 | $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
|
---|
253 | $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/
|
---|
254 | $(call MSG_INST_FILE,$^,$@)
|
---|
255 | $(QUIET)$(CP) $^ $@
|
---|
256 | $(QUIET)chrpath --delete $@
|
---|
257 |
|
---|
258 | endif # !VBOX_WITH_HARDENING
|
---|
259 | endif # x11
|
---|
260 | endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD
|
---|
261 | endif # win x11
|
---|
262 |
|
---|
263 |
|
---|
264 | #
|
---|
265 | # Install additions iso from the build server if configured to do so.
|
---|
266 | #
|
---|
267 | # Note! For building the combined package, just get the additions .ISO
|
---|
268 | # once for amd64 to prevent version inconsistences. In all other
|
---|
269 | # cases we get the .ISO per target architecture.
|
---|
270 | #
|
---|
271 | if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
|
---|
272 | && ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
|
---|
273 | || "$(KBUILD_TARGET_ARCH)" == "amd64" )
|
---|
274 | INSTALLS += buildserver-additions
|
---|
275 | buildserver-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
276 | buildserver-additions_MODE = 0644
|
---|
277 | buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
278 | buildserver-additions_CLEANS = \
|
---|
279 | $(buildserver-additions_0_OUTDIR)/unpacked.ts \
|
---|
280 | $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
|
---|
281 | $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
|
---|
282 | $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
283 |
|
---|
284 | $$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
|
---|
285 | $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
|
---|
286 | $(call MSG_L1,Unpacking additions archive)
|
---|
287 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
288 | $(APPEND) -n $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
289 | $(APPEND) -t $@ "done"
|
---|
290 |
|
---|
291 | $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
|
---|
292 | $(RM) -f -- "$@" "$@.tmp"
|
---|
293 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp"
|
---|
294 | $(MV) -f -- "$@.tmp" "$@"
|
---|
295 |
|
---|
296 | endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
|
---|
297 |
|
---|
298 |
|
---|
299 | #
|
---|
300 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
301 | #
|
---|
302 | ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
303 | ## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
|
---|
304 | INSTALLS += buildserver-docs
|
---|
305 | buildserver-docs_INST = $(INST_BIN)
|
---|
306 | buildserver-docs_MODE = 0644
|
---|
307 | buildserver-docs_SOURCES = \
|
---|
308 | $(addprefix $(PATH_TARGET)/, \
|
---|
309 | VirtualBox.chm UserManual.pdf \
|
---|
310 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
311 | buildserver-docs_CLEANS = \
|
---|
312 | $(buildserver-docs_0_OUTDIR)/unpacked.ts \
|
---|
313 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
|
---|
314 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
|
---|
315 | $(addprefix $(PATH_TARGET)/, \
|
---|
316 | VirtualBox.chm UserManual.pdf \
|
---|
317 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
318 |
|
---|
319 | $$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
|
---|
320 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
|
---|
321 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
|
---|
322 | $(call MSG_L1,Unpacking documentation)
|
---|
323 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
324 | $(APPEND) -n $(PATH_TARGET)/VirtualBox.chm
|
---|
325 | $(APPEND) -n $(PATH_TARGET)/UserManual.pdf
|
---|
326 | for i in $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf); do $(APPEND) -n $$i; done
|
---|
327 | $(APPEND) -t $@ "done"
|
---|
328 |
|
---|
329 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
|
---|
330 | $(RM) -f -- "$@" "$@.tmp"
|
---|
331 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp"
|
---|
332 | $(MV) -f -- "$@.tmp" "$@"
|
---|
333 |
|
---|
334 | endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
335 |
|
---|
336 |
|
---|
337 | ifdef VBOX_WITH_EFI
|
---|
338 | #
|
---|
339 | # Install EFI firmware image
|
---|
340 | #
|
---|
341 | ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
342 | #
|
---|
343 | # Either from the build server.
|
---|
344 | #
|
---|
345 | ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
|
---|
346 | include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
|
---|
347 | endif
|
---|
348 | INSTALLS += buildserver-efifw
|
---|
349 | buildserver-efifw_INST = $(INST_BIN)
|
---|
350 | buildserver-efifw_MODE = 0644
|
---|
351 | buildserver-efifw_SOURCES = \
|
---|
352 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
353 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
|
---|
354 | buildserver-efifw_CLEANS = \
|
---|
355 | $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
356 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
357 | $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
|
---|
358 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
|
---|
359 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
|
---|
360 | $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
|
---|
361 |
|
---|
362 | INSTALLS += buildserver-efifw-dbg-amd64
|
---|
363 | buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
|
---|
364 | buildserver-efifw-dbg-amd64_MODE = 0644
|
---|
365 | buildserver-efifw-dbg-amd64_SOURCES = \
|
---|
366 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
|
---|
367 |
|
---|
368 | INSTALLS += buildserver-efifw-dbg-x86
|
---|
369 | buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
|
---|
370 | buildserver-efifw-dbg-x86_MODE = 0644
|
---|
371 | buildserver-efifw-dbg-x86_SOURCES = \
|
---|
372 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
|
---|
373 |
|
---|
374 | $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
375 | +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
|
---|
376 | $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
|
---|
377 | $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
|
---|
378 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
|
---|
379 | $(call MSG_L1,Unpacking EFI firmware)
|
---|
380 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
|
---|
381 | $(foreach arch, amd64 x86, \
|
---|
382 | $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
|
---|
383 | $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
|
---|
384 | ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
|
---|
385 | $(APPEND) -n $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd
|
---|
386 | $(APPEND) -n $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
|
---|
387 | $(APPEND) -t $@ "done"
|
---|
388 |
|
---|
389 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
|
---|
390 | $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
|
---|
391 | $(RM) -f -- "$@" "$@.tmp"
|
---|
392 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp"
|
---|
393 | $(MV) -f -- "$@.tmp" "$@"
|
---|
394 |
|
---|
395 | else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
396 | #
|
---|
397 | # Or from the local copy (no debug).
|
---|
398 | #
|
---|
399 | INSTALLS += local-efifw
|
---|
400 | local-efifw_INST = $(INST_BIN)
|
---|
401 | local-efifw_MODE = 0644
|
---|
402 | local-efifw_SOURCES = \
|
---|
403 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
|
---|
404 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
|
---|
405 | endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
406 | endif # VBOX_WITH_EFI
|
---|
407 |
|
---|
408 |
|
---|
409 | ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
|
---|
410 | #
|
---|
411 | # Get the extension pack from from the build server to facility the automatic
|
---|
412 | # testing (everything in one tarball (VBoxAll-*)).
|
---|
413 | #
|
---|
414 | # Note! Using the plural here as we might be downloading more packages eventually.
|
---|
415 | #
|
---|
416 | INSTALLS += buildserver-extpacks
|
---|
417 | buildserver-extpacks_INST = $(INST_DIST)
|
---|
418 | buildserver-extpacks_MODE = 0644
|
---|
419 | buildserver-extpacks_SOURCES = \
|
---|
420 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
|
---|
421 | buildserver-extpacks_CLEANS = \
|
---|
422 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
|
---|
423 | $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
|
---|
424 |
|
---|
425 | $$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
|
---|
426 | $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
|
---|
427 | $(RM) -f -- "$@.tmp" "$@"
|
---|
428 | $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING)"
|
---|
429 | $(MV) -f -- "$@.tmp" "$@"
|
---|
430 |
|
---|
431 | endif
|
---|
432 |
|
---|
433 |
|
---|
434 | #
|
---|
435 | # Install staged binaries on platforms where we can't cross
|
---|
436 | # compile things.
|
---|
437 | #
|
---|
438 | ifn1of ($(KBUILD_TARGET), linux win)
|
---|
439 | VBOX_PATH_STAGED ?= .
|
---|
440 |
|
---|
441 | # Additions.
|
---|
442 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
443 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
444 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
445 | INSTALLS += staged-additions
|
---|
446 | staged-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
447 | staged-additions_MODE = 0644
|
---|
448 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
449 | endif
|
---|
450 | endif
|
---|
451 | endif
|
---|
452 |
|
---|
453 | # guesttool.exe
|
---|
454 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
455 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
456 | INSTALLS += staged-guesttool
|
---|
457 | staged-guesttool_INST = $(INST_BIN)
|
---|
458 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
459 | endif
|
---|
460 | endif
|
---|
461 |
|
---|
462 | endif
|
---|
463 |
|
---|
464 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
|
---|
465 |
|
---|
466 |
|
---|
467 | ifdef VBOX_ONLY_DOCS
|
---|
468 | # It may sound a bit odd, but for preparing the documentation package the
|
---|
469 | # doxygen documentation isn't needed and increases the build time a lot.
|
---|
470 | docs:
|
---|
471 | else # !VBOX_ONLY_DOCS
|
---|
472 | #
|
---|
473 | # Generate documentation.
|
---|
474 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
475 | #
|
---|
476 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
477 | docs: docs.Core
|
---|
478 | endif
|
---|
479 | endif # !VBOX_ONLY_DOCS
|
---|
480 |
|
---|
481 | #
|
---|
482 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
483 | #
|
---|
484 | # This includes so much because we wish to have the complete CFGM
|
---|
485 | # and GCFGM lists.
|
---|
486 | #
|
---|
487 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
488 | BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
|
---|
489 | OTHER_CLEAN += \
|
---|
490 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
|
---|
491 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
|
---|
492 |
|
---|
493 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
494 | include/iprt \
|
---|
495 | include/iprt/cpp \
|
---|
496 | include/iprt/crypto \
|
---|
497 | include/iprt/formats \
|
---|
498 | include/iprt/linux \
|
---|
499 | include/iprt/nt \
|
---|
500 | include/iprt/solaris \
|
---|
501 | include/iprt/win \
|
---|
502 | include/iprt/nocrt \
|
---|
503 | include/VBox \
|
---|
504 | include/VBox/vmm \
|
---|
505 | include/VBox/com \
|
---|
506 | include/VBox/ExtPack \
|
---|
507 | include/VBox/HostServices \
|
---|
508 | include/VBox/GuestHost \
|
---|
509 | include/VBox/HGSMI \
|
---|
510 | src/VBox/VMM \
|
---|
511 | src/VBox/VMM/VMMR0 \
|
---|
512 | src/VBox/VMM/VMMRC \
|
---|
513 | src/VBox/VMM/VMMR3 \
|
---|
514 | src/VBox/VMM/VMMAll \
|
---|
515 | src/VBox/VMM/VMMSwitcher \
|
---|
516 | src/VBox/VMM/include \
|
---|
517 | src/VBox/Debugger \
|
---|
518 | src/VBox/Devices \
|
---|
519 | src/VBox/Devices/Audio \
|
---|
520 | src/VBox/Devices/Bus \
|
---|
521 | src/VBox/Devices/Graphics \
|
---|
522 | src/VBox/Devices/Graphics/BIOS \
|
---|
523 | src/VBox/Devices/Graphics/shaderlib \
|
---|
524 | src/VBox/Devices/Input \
|
---|
525 | src/VBox/Devices/Networking \
|
---|
526 | src/VBox/Devices/PC \
|
---|
527 | src/VBox/Devices/PC/BIOS \
|
---|
528 | src/VBox/Devices/Parallel \
|
---|
529 | src/VBox/Devices/Serial \
|
---|
530 | src/VBox/Devices/Storage \
|
---|
531 | src/VBox/Devices/USB \
|
---|
532 | src/VBox/Devices/USB/darwin \
|
---|
533 | src/VBox/Devices/USB/linux \
|
---|
534 | src/VBox/Devices/USB/os2 \
|
---|
535 | src/VBox/Devices/USB/solaris \
|
---|
536 | src/VBox/Devices/USB/vrdp \
|
---|
537 | src/VBox/Devices/USB/win32 \
|
---|
538 | src/VBox/Devices/VMMDev \
|
---|
539 | src/VBox/Main/include \
|
---|
540 | src/VBox/Main/include/hgcm \
|
---|
541 | src/VBox/Main \
|
---|
542 | src/VBox/Main/glue \
|
---|
543 | src/VBox/Main/webservice \
|
---|
544 | src/VBox/Main/xml \
|
---|
545 | src/VBox/Main/src-all \
|
---|
546 | src/VBox/Main/src-all/win \
|
---|
547 | src/VBox/Main/src-client \
|
---|
548 | src/VBox/Main/src-client/win \
|
---|
549 | src/VBox/Main/src-client/xpcom \
|
---|
550 | src/VBox/Main/src-server \
|
---|
551 | src/VBox/Main/src-server/darwin \
|
---|
552 | src/VBox/Main/src-server/linux \
|
---|
553 | src/VBox/Main/src-server/os2 \
|
---|
554 | src/VBox/Main/src-server/solaris \
|
---|
555 | src/VBox/Main/src-server/win \
|
---|
556 | src/VBox/Main/src-server/xpcom \
|
---|
557 | src/VBox/HostServices \
|
---|
558 | src/VBox/HostServices/DragAndDrop \
|
---|
559 | src/VBox/HostServices/GuestControl \
|
---|
560 | src/VBox/HostServices/GuestProperties \
|
---|
561 | src/VBox/HostServices/SharedClipboard \
|
---|
562 | src/VBox/HostServices/SharedFolders \
|
---|
563 | src/VBox/HostServices/SharedOpenGL \
|
---|
564 | src/VBox/HostServices/SharedOpenGL/crserver \
|
---|
565 | src/VBox/HostServices/SharedOpenGL/crserverlib \
|
---|
566 | src/VBox/HostServices/SharedOpenGL/render \
|
---|
567 | src/VBox/HostServices/SharedOpenGL/unpacker \
|
---|
568 | src/VBox/HostServices/auth \
|
---|
569 | src/VBox/HostServices/auth/directoryservice \
|
---|
570 | src/VBox/HostServices/auth/pam \
|
---|
571 | src/VBox/HostServices/auth/simple \
|
---|
572 | src/VBox/HostServices/auth/winlogon \
|
---|
573 | src/VBox/HostDrivers/Support \
|
---|
574 | src/VBox/HostDrivers/Support/darwin \
|
---|
575 | src/VBox/HostDrivers/Support/freebsd \
|
---|
576 | src/VBox/HostDrivers/Support/linux \
|
---|
577 | src/VBox/HostDrivers/Support/os2 \
|
---|
578 | src/VBox/HostDrivers/Support/solaris \
|
---|
579 | src/VBox/HostDrivers/Support/win \
|
---|
580 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
581 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
582 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
583 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
584 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
585 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
586 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
587 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
588 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
589 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
590 | src/VBox/HostDrivers/VBoxNetAdp \
|
---|
591 | src/VBox/HostDrivers/VBoxNetAdp/darwin \
|
---|
592 | src/VBox/HostDrivers/VBoxNetAdp/linux \
|
---|
593 | src/VBox/HostDrivers/VBoxNetAdp/solaris \
|
---|
594 | src/VBox/HostDrivers/VBoxNetAdp/win \
|
---|
595 | src/VBox/HostDrivers/VBoxPci \
|
---|
596 | src/VBox/HostDrivers/VBoxPci/darwin \
|
---|
597 | src/VBox/HostDrivers/VBoxPci/linux \
|
---|
598 | src/VBox/HostDrivers/VBoxPci/solaris \
|
---|
599 | src/VBox/HostDrivers/VBoxPci/win \
|
---|
600 | src/VBox/HostDrivers/VBoxUSB \
|
---|
601 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
602 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
603 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
604 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
605 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
606 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
607 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
608 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
609 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
610 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
611 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
612 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
613 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
614 | src/VBox/Additions \
|
---|
615 | src/VBox/Additions/WINNT \
|
---|
616 | src/VBox/Additions/WINNT/Graphics \
|
---|
617 | src/VBox/Additions/WINNT/Graphics/Video \
|
---|
618 | src/VBox/Additions/WINNT/Graphics/Video/common \
|
---|
619 | src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
|
---|
620 | src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
|
---|
621 | src/VBox/Additions/WINNT/Graphics/Video/disp \
|
---|
622 | src/VBox/Additions/WINNT/Graphics/Video/disp/common \
|
---|
623 | src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
|
---|
624 | src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
|
---|
625 | src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
|
---|
626 | src/VBox/Additions/WINNT/Graphics/Video/mp \
|
---|
627 | src/VBox/Additions/WINNT/Graphics/Video/mp/common \
|
---|
628 | src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
|
---|
629 | src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
|
---|
630 | src/VBox/Additions/WINNT/Graphics/Wine_new \
|
---|
631 | src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
|
---|
632 | src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
|
---|
633 | src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
|
---|
634 | src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
|
---|
635 | src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
|
---|
636 | src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
|
---|
637 | src/VBox/Additions/WINNT/Installer \
|
---|
638 | src/VBox/Additions/WINNT/Installer/ISO \
|
---|
639 | src/VBox/Additions/WINNT/Installer/InstallHelper \
|
---|
640 | src/VBox/Additions/WINNT/Installer/Languages \
|
---|
641 | src/VBox/Additions/WINNT/Installer/Loader \
|
---|
642 | src/VBox/Additions/WINNT/Mouse \
|
---|
643 | src/VBox/Additions/WINNT/Mouse/NT5 \
|
---|
644 | src/VBox/Additions/WINNT/Mouse/common \
|
---|
645 | src/VBox/Additions/WINNT/SharedFolders \
|
---|
646 | src/VBox/Additions/WINNT/SharedFolders/redirector \
|
---|
647 | src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
|
---|
648 | src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
|
---|
649 | src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
|
---|
650 | src/VBox/Additions/WINNT/VBoxCredProv \
|
---|
651 | src/VBox/Additions/WINNT/VBoxGINA \
|
---|
652 | src/VBox/Additions/WINNT/VBoxHook \
|
---|
653 | src/VBox/Additions/WINNT/VBoxTray \
|
---|
654 | src/VBox/Additions/WINNT/VBoxUSB \
|
---|
655 | src/VBox/Additions/WINNT/i8042prt \
|
---|
656 | src/VBox/Additions/WINNT/i8042prt/i386 \
|
---|
657 | src/VBox/Additions/WINNT/i8042prt/include \
|
---|
658 | src/VBox/Additions/WINNT/include \
|
---|
659 | src/VBox/Additions/common \
|
---|
660 | src/VBox/Additions/common/VBoxControl \
|
---|
661 | src/VBox/Additions/common/VBoxGuest \
|
---|
662 | src/VBox/Additions/common/VBoxGuest/freebsd \
|
---|
663 | src/VBox/Additions/common/VBoxGuest/linux \
|
---|
664 | src/VBox/Additions/common/VBoxGuest/win \
|
---|
665 | src/VBox/Additions/common/VBoxGuestLib \
|
---|
666 | src/VBox/Additions/common/VBoxService \
|
---|
667 | src/VBox/Additions/common/VBoxVideo \
|
---|
668 | src/VBox/Additions/common/crOpenGL \
|
---|
669 | src/VBox/Additions/common/crOpenGL/array \
|
---|
670 | src/VBox/Additions/common/crOpenGL/feedback \
|
---|
671 | src/VBox/Additions/common/crOpenGL/pack \
|
---|
672 | src/VBox/Additions/common/crOpenGL/passthrough \
|
---|
673 | src/VBox/Additions/common/pam \
|
---|
674 | src/VBox/Additions/darwin \
|
---|
675 | src/VBox/Additions/freebsd \
|
---|
676 | src/VBox/Additions/freebsd/Installer \
|
---|
677 | src/VBox/Additions/freebsd/drm \
|
---|
678 | src/VBox/Additions/freebsd/vboxvfs \
|
---|
679 | src/VBox/Additions/linux \
|
---|
680 | src/VBox/Additions/linux/drm \
|
---|
681 | src/VBox/Additions/linux/installer \
|
---|
682 | src/VBox/Additions/linux/selinux-fedora \
|
---|
683 | src/VBox/Additions/linux/sharedfolders \
|
---|
684 | src/VBox/Additions/os2 \
|
---|
685 | src/VBox/Additions/os2/VBoxGradd \
|
---|
686 | src/VBox/Additions/os2/VBoxGradd/graddlib \
|
---|
687 | src/VBox/Additions/os2/VBoxGrext \
|
---|
688 | src/VBox/Additions/os2/VBoxMouse \
|
---|
689 | src/VBox/Additions/os2/VBoxSF \
|
---|
690 | src/VBox/Additions/solaris \
|
---|
691 | src/VBox/Additions/solaris/DRM \
|
---|
692 | src/VBox/Additions/solaris/Installer \
|
---|
693 | src/VBox/Additions/solaris/SharedFolders \
|
---|
694 | src/VBox/Additions/solaris/SharedFolders/solaris10 \
|
---|
695 | src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
|
---|
696 | src/VBox/Additions/solaris/Virtio \
|
---|
697 | src/VBox/Additions/x11 \
|
---|
698 | src/VBox/Additions/x11/Installer \
|
---|
699 | src/VBox/Additions/x11/VBoxClient \
|
---|
700 | src/VBox/Additions/x11/vboxmouse \
|
---|
701 | src/VBox/Additions/x11/vboxmouse/xorg70 \
|
---|
702 | src/VBox/Additions/x11/vboxmouse/xorg71 \
|
---|
703 | src/VBox/Additions/x11/vboxvideo \
|
---|
704 | src/VBox/NetworkServices \
|
---|
705 | src/VBox/NetworkServices/DHCP \
|
---|
706 | src/VBox/NetworkServices/NAT \
|
---|
707 | src/VBox/NetworkServices/NetLib \
|
---|
708 | src/VBox/Storage \
|
---|
709 | src/VBox/ValidationKit/ \
|
---|
710 | src/VBox/ValidationKit/docs/ \
|
---|
711 | src/VBox/ValidationKit/testdriver/ \
|
---|
712 | src/VBox/ValidationKit/bootsectors/ \
|
---|
713 | src/VBox/ValidationKit/bootsectors/bs3kit/ \
|
---|
714 | src/VBox/ValidationKit/tests/ \
|
---|
715 | src/VBox/ValidationKit/tests/additions/ \
|
---|
716 | src/VBox/ValidationKit/tests/api/ \
|
---|
717 | src/VBox/ValidationKit/tests/autostart/ \
|
---|
718 | src/VBox/ValidationKit/tests/benchmarks/ \
|
---|
719 | src/VBox/ValidationKit/tests/cpu/ \
|
---|
720 | src/VBox/ValidationKit/tests/installation/ \
|
---|
721 | src/VBox/ValidationKit/tests/network/ \
|
---|
722 | src/VBox/ValidationKit/tests/selftests/ \
|
---|
723 | src/VBox/ValidationKit/tests/smoketests/ \
|
---|
724 | src/VBox/ValidationKit/tests/storage/ \
|
---|
725 | src/VBox/ValidationKit/tests/teleportation/ \
|
---|
726 | src/VBox/ValidationKit/tests/unittests/ \
|
---|
727 | src/VBox/ValidationKit/tests/usb/ \
|
---|
728 | src/VBox/ValidationKit/common/ \
|
---|
729 | src/VBox/ValidationKit/utils/ \
|
---|
730 | src/VBox/ValidationKit/utils/TestExecServ/ \
|
---|
731 | src/VBox/ValidationKit/utils/cpu/ \
|
---|
732 | src/VBox/ValidationKit/utils/misc/ \
|
---|
733 | src/VBox/ValidationKit/utils/network/ \
|
---|
734 | src/VBox/ValidationKit/utils/nt/ \
|
---|
735 | src/VBox/ValidationKit/utils/usb/ \
|
---|
736 | src/VBox/ValidationKit/vms/ \
|
---|
737 | src/VBox/ValidationKit/testmanager/ \
|
---|
738 | src/VBox/ValidationKit/testmanager/core/ \
|
---|
739 | src/VBox/ValidationKit/testmanager/db/ \
|
---|
740 | src/VBox/ValidationKit/testmanager/debug/ \
|
---|
741 | src/VBox/ValidationKit/testmanager/cgi/ \
|
---|
742 | src/VBox/ValidationKit/testmanager/webui/ \
|
---|
743 | src/VBox/ValidationKit/testboxscript/ \
|
---|
744 |
|
---|
745 | # These must come first in order to make things look nice.
|
---|
746 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
747 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
748 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
749 | $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
|
---|
750 | $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
|
---|
751 | $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
|
---|
752 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
753 | $(PATH_ROOT)/include/VBox/vmm/vmm.h \
|
---|
754 | $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
|
---|
755 | $(PATH_ROOT)/include/VBox/vmm/cpum.h \
|
---|
756 | $(PATH_ROOT)/include/VBox/vmm/mm.h \
|
---|
757 | $(PATH_ROOT)/include/VBox/vmm/pgm.h \
|
---|
758 | $(PATH_ROOT)/include/VBox/vmm/selm.h \
|
---|
759 | $(PATH_ROOT)/include/VBox/vmm/trpm.h \
|
---|
760 | $(PATH_ROOT)/include/VBox/vmm/patm.h \
|
---|
761 | $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
|
---|
762 | $(PATH_ROOT)/include/VBox/vmm/stam.h \
|
---|
763 | $(PATH_ROOT)/include/VBox/vmm/em.h \
|
---|
764 | $(PATH_ROOT)/include/VBox/vmm/hm.h \
|
---|
765 | $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
|
---|
766 | $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
|
---|
767 | $(PATH_ROOT)/include/VBox/vmm/iem.h \
|
---|
768 | $(PATH_ROOT)/include/VBox/vmm/pdm.h \
|
---|
769 | $(PATH_ROOT)/include/VBox/vmm/rem.h \
|
---|
770 | $(PATH_ROOT)/include/VBox/vmm/iom.h \
|
---|
771 | $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
|
---|
772 | $(PATH_ROOT)/include/VBox/vmm/gim.h \
|
---|
773 | $(PATH_ROOT)/include/VBox/vmm/tm.h \
|
---|
774 | $(PATH_ROOT)/include/VBox/vmm/csam.h \
|
---|
775 | $(PATH_ROOT)/include/VBox/vmm/ssm.h \
|
---|
776 | \
|
---|
777 | $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
|
---|
778 | $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
|
---|
779 | $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
|
---|
780 | $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
|
---|
781 | $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
|
---|
782 | $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
|
---|
783 | $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
|
---|
784 | $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
|
---|
785 | $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
|
---|
786 | $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
|
---|
787 | $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
|
---|
788 | $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
|
---|
789 | $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
|
---|
790 | $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
|
---|
791 | $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
|
---|
792 | $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
|
---|
793 | $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
|
---|
794 | $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
|
---|
795 | $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
|
---|
796 | $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
|
---|
797 | $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
|
---|
798 | \
|
---|
799 | $(PATH_ROOT)/include/VBox/vmm/vm.h \
|
---|
800 | \
|
---|
801 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
802 | $(PATH_ROOT)/include/VBox/vd.h \
|
---|
803 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
804 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
805 | $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
|
---|
806 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
807 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
808 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
809 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
810 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
811 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
812 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
813 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
814 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
815 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
816 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
817 | \
|
---|
818 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
819 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
820 | $(PATH_ROOT)/include/VBox/version.h \
|
---|
821 | \
|
---|
822 | $(PATH_ROOT)/include/VBox/com/com.h
|
---|
823 |
|
---|
824 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
825 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
826 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
|
---|
827 | , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
|
---|
828 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
829 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
830 | $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
|
---|
831 |
|
---|
832 | # And some some additional stuff.
|
---|
833 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
834 | $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
|
---|
835 | $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
|
---|
836 |
|
---|
837 | includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
|
---|
838 |
|
---|
839 | # Generate the Doxyfile
|
---|
840 | $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
|
---|
841 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
|
---|
842 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
|
---|
843 | | $$(dir $$@)
|
---|
844 | $(QUIET)$(RM) -f $@ $@.tmp $@.dep
|
---|
845 | $(QUIET)$(CP) -f Doxyfile.Core $@.tmp
|
---|
846 | $(QUIET)$(APPEND) $@.tmp
|
---|
847 | $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
848 | $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
849 | $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
850 | $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
851 | $(QUIET)$(APPEND) $@.tmp "EXCLUDE = " \
|
---|
852 | "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
|
---|
853 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
|
---|
854 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
|
---|
855 | "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
|
---|
856 | "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
|
---|
857 | $(QUIET)$(APPEND) $@.tmp
|
---|
858 | $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
|
---|
859 | $(QUIET)$(APPEND) $@.tmp
|
---|
860 | $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
861 | $(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
862 | $(QUIET)$(APPEND) $@.tmp
|
---|
863 | $(QUIET)$(MV) -f $@.tmp $@
|
---|
864 | @$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
865 | @$(APPEND) $@.dep "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
866 |
|
---|
867 | # Do the actual job.
|
---|
868 | $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
|
---|
869 | | $(VBOX_CORE_DOXYFILE_OUTPUT)/
|
---|
870 | $(QUIET)$(RM) -f $@
|
---|
871 | $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
872 | doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
|
---|
873 | $(SED) -n \
|
---|
874 | -e ':nextwarning' \
|
---|
875 | -e '/^ *$(DOLLAR)/d' \
|
---|
876 | -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
|
---|
877 | -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
|
---|
878 | -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
|
---|
879 | -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
|
---|
880 | -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
|
---|
881 | -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
|
---|
882 | \
|
---|
883 | -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
|
---|
884 | \
|
---|
885 | -e 'b end' \
|
---|
886 | -e ':ignore' \
|
---|
887 | -e 'n' \
|
---|
888 | -e '/^[[:space:]]/b ignore' \
|
---|
889 | -e '/^Possible candidates/b ignore' \
|
---|
890 | -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
|
---|
891 | -e 'b nextwarning' \
|
---|
892 | -e ':end' \
|
---|
893 | -e 'p' \
|
---|
894 | --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
|
---|
895 | $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
|
---|
896 | $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
|
---|
897 | $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
|
---|
898 | $(APPEND) $@
|
---|
899 |
|
---|
900 | docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
|
---|
901 |
|
---|
902 |
|
---|
903 | #
|
---|
904 | # Alias for kmk_time. Used by both the additions and validation kit build setups.
|
---|
905 | #
|
---|
906 | VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
|
---|
907 |
|
---|
908 | #
|
---|
909 | # Common rsync bits.
|
---|
910 | #
|
---|
911 |
|
---|
912 | ##
|
---|
913 | # The basic rsync invocation for syncing the tree into a VM; the source and
|
---|
914 | # target specs are missing.
|
---|
915 | #
|
---|
916 | # @param 1 os name.
|
---|
917 | # @param 2 arch or *.
|
---|
918 | #
|
---|
919 | VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
|
---|
920 | --exclude=*.pyc \
|
---|
921 | --exclude=.svn/ \
|
---|
922 | --exclude=doc/Devices/ \
|
---|
923 | --exclude=doc/tg/ \
|
---|
924 | --exclude=doc/vp/ \
|
---|
925 | --exclude=tinderclient.log \
|
---|
926 | --exclude=tools/FetchDir/ \
|
---|
927 | --exclude=webtools/ \
|
---|
928 | $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
|
---|
929 | --exclude=tools/$(os).x86/ \
|
---|
930 | --exclude=tools/$(os).amd64/ \
|
---|
931 | --exclude=out/$(os).amd64/ \
|
---|
932 | --exclude=out/$(os).x86/ \
|
---|
933 | ,$(select \
|
---|
934 | "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
|
---|
935 | "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
|
---|
936 | ))
|
---|
937 |
|
---|
938 | #
|
---|
939 | # VM IP addresses.
|
---|
940 | #
|
---|
941 | VBOX_BLD_VM_LNX_IP := 192.168.27.2
|
---|
942 | VBOX_BLD_VM_OS2_IP := 192.168.27.3
|
---|
943 | VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
|
---|
944 | VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
|
---|
945 | VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
|
---|
946 | VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
|
---|
947 | VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
|
---|
948 | VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
|
---|
949 | VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
|
---|
950 |
|
---|
951 | VBOX_WITH_OS2_ADD_BUILD=1
|
---|
952 |
|
---|
953 | #
|
---|
954 | # For profiling the VM building steps.
|
---|
955 | #
|
---|
956 | if 0
|
---|
957 | VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
|
---|
958 | VBOX_BLD_VM_MSG_END__ =
|
---|
959 | else
|
---|
960 | VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Start building $1.
|
---|
961 | VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
|
---|
962 | endif
|
---|
963 |
|
---|
964 | #
|
---|
965 | # Build the additions, all of them.
|
---|
966 | #
|
---|
967 | # This is currently tailored (hardcoded) for the additions
|
---|
968 | # build box. Can make it pretty and configurable later.
|
---|
969 | #
|
---|
970 | # The fetching must be done in serial fashion, while the building
|
---|
971 | # should be more flexible wrt to -jN.
|
---|
972 | #
|
---|
973 | additions-fetch:
|
---|
974 | + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
|
---|
975 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
976 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
977 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
978 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
|
---|
979 | endif
|
---|
980 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
981 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
982 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
983 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
984 |
|
---|
985 |
|
---|
986 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
987 | # built first. The windows amd64 additions need some x86 files, so don't change
|
---|
988 | # the order of the windows builds. TODO: Split building and packing for these two VMs.
|
---|
989 | additions-build: \
|
---|
990 | additions-build-rsync-into-vms \
|
---|
991 | additions-build-win.x86 \
|
---|
992 | additions-build-win.amd64 \
|
---|
993 | additions-build-solaris.amd64 \
|
---|
994 | additions-build-solaris.x86 \
|
---|
995 | additions-build-os2.x86 \
|
---|
996 | additions-build-linux
|
---|
997 |
|
---|
998 | additions-build-rsync-into-vms: \
|
---|
999 | additions-build-solaris.rsync-into-vm \
|
---|
1000 | additions-build-os2.rsync-into-vm \
|
---|
1001 | additions-build-linux.rsync-into-vm
|
---|
1002 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
1003 | .NOTPARALLEL: additions-build-rsync-into-vms
|
---|
1004 | .PHONY: additions-build-rsync-into-vms
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
1008 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1009 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1010 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1011 |
|
---|
1012 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
1013 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1014 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1015 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1016 |
|
---|
1017 | # Automatically determine the additions build subdir name. Used for figuring
|
---|
1018 | # out directory names inside the additions building VMs.
|
---|
1019 | VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1020 |
|
---|
1021 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1022 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1023 | ifeq ($(KBUILD_TARGET),win)
|
---|
1024 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
|
---|
1025 | else
|
---|
1026 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
1027 | endif
|
---|
1028 |
|
---|
1029 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
1030 | additions-build-win.amd64: additions-build-win.x86
|
---|
1031 | ifeq ($(KBUILD_TARGET),win)
|
---|
1032 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1033 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
1034 | else
|
---|
1035 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
|
---|
1036 | $(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 "
|
---|
1037 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
|
---|
1038 | endif
|
---|
1039 |
|
---|
1040 | additions-build-win.x86:
|
---|
1041 | ifeq ($(KBUILD_TARGET),win)
|
---|
1042 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1043 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
1044 | else
|
---|
1045 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
|
---|
1046 | $(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"
|
---|
1047 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
|
---|
1048 | endif
|
---|
1049 |
|
---|
1050 | # ASSUMES the 64-bit edition are built first. This also serializes VM access.
|
---|
1051 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1052 | additions-build-solaris.amd64:
|
---|
1053 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1054 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
1055 |
|
---|
1056 | additions-build-solaris.x86: additions-build-solaris.amd64
|
---|
1057 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1058 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
|
---|
1059 |
|
---|
1060 | additions-build-solaris.rsync-into-vm:
|
---|
1061 | else
|
---|
1062 | additions-build-solaris.rsync-into-vm:
|
---|
1063 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
|
---|
1064 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1065 | '--exclude=src/VBox/Frontends/**' \
|
---|
1066 | '--exclude=src/VBox/VMM/**' \
|
---|
1067 | . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1068 |
|
---|
1069 | additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
|
---|
1070 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
|
---|
1071 | $(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"
|
---|
1072 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
|
---|
1073 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
|
---|
1074 | $(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"
|
---|
1075 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
|
---|
1076 |
|
---|
1077 | additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
|
---|
1078 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1079 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1080 |
|
---|
1081 | .NOTPARALLEL: additions-build-solaris.rsync-into-vm
|
---|
1082 | .PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
|
---|
1083 |
|
---|
1084 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
1085 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
1086 | endif
|
---|
1087 |
|
---|
1088 | ifdef VBOX_WITH_OS2_ADD_BUILD
|
---|
1089 | ifeq ($(KBUILD_TARGET),os2)
|
---|
1090 | additions-build-os2.x86:
|
---|
1091 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1092 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
1093 |
|
---|
1094 | additions-build-os2.rsync-into-vm:
|
---|
1095 | else
|
---|
1096 | additions-build-os2.rsync-into-vm:
|
---|
1097 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
|
---|
1098 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1099 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1100 | '--exclude=src/VBox/Frontends/**' \
|
---|
1101 | '--exclude=src/VBox/VMM/**' \
|
---|
1102 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1103 |
|
---|
1104 | additions-build-os2.build-it: additions-build-os2.rsync-into-vm
|
---|
1105 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
|
---|
1106 | $(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"
|
---|
1107 | $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
|
---|
1108 |
|
---|
1109 | additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
|
---|
1110 | $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
1111 |
|
---|
1112 | .NOTPARALLEL: additions-build-os2.rsync-into-vm
|
---|
1113 | .PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
|
---|
1114 |
|
---|
1115 | additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
|
---|
1116 | endif
|
---|
1117 | #
|
---|
1118 | else
|
---|
1119 | additions-build-os2.x86:
|
---|
1120 | # Dummy
|
---|
1121 | endif
|
---|
1122 |
|
---|
1123 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1124 | additions-build-linux.amd64:
|
---|
1125 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1126 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
1127 |
|
---|
1128 | additions-build-linux.x86:
|
---|
1129 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1130 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
1131 |
|
---|
1132 | additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
|
---|
1133 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
1134 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
|
---|
1135 | else
|
---|
1136 | additions-build-linux.rsync-into-vm:
|
---|
1137 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
|
---|
1138 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1139 | '--exclude=src/VBox/Frontends/**' \
|
---|
1140 | '--exclude=src/VBox/VMM/**' \
|
---|
1141 | . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
1142 |
|
---|
1143 | additions-build-linux.build-it: additions-build-linux.rsync-into-vm
|
---|
1144 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
1145 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
|
---|
1146 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_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/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
|
---|
1147 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
|
---|
1148 | endif
|
---|
1149 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
|
---|
1150 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && dchroot -c debian-4.0-amd64 \"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)\""'
|
---|
1151 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
|
---|
1152 | ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
|
---|
1153 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
|
---|
1154 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 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/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
|
---|
1155 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
|
---|
1156 | endif
|
---|
1157 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
|
---|
1158 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 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)\""'
|
---|
1159 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
|
---|
1160 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
|
---|
1161 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 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\""'
|
---|
1162 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
|
---|
1163 |
|
---|
1164 | additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
|
---|
1165 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1166 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1167 |
|
---|
1168 | .NOTPARALLEL: additions-build-linux.rsync-into-vm
|
---|
1169 | .PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
|
---|
1170 |
|
---|
1171 | additions-build-linux: additions-build-linux.rsync-out-of-vm
|
---|
1172 | endif
|
---|
1173 |
|
---|
1174 | additions-packing:
|
---|
1175 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
1176 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
1177 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
1178 | VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
|
---|
1179 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
1180 | VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
|
---|
1181 | VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
|
---|
1182 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
1183 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
1184 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
1185 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
1186 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
1187 | -C src/VBox/Additions \
|
---|
1188 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
|
---|
1189 |
|
---|
1190 | .PHONY: \
|
---|
1191 | additions-build-win.x86 \
|
---|
1192 | additions-build-win.amd64 \
|
---|
1193 | additions-build-solaris.amd64 \
|
---|
1194 | additions-build-solaris.x86 \
|
---|
1195 | additions-build-os2.x86 \
|
---|
1196 | additions-build-linux \
|
---|
1197 | additions-build-linux.amd64 \
|
---|
1198 | additions-build-linux.x86 \
|
---|
1199 | additions-build-linux.x86.combined \
|
---|
1200 | additions-packing
|
---|
1201 |
|
---|
1202 |
|
---|
1203 | #
|
---|
1204 | # Build the extension packs, all of them.
|
---|
1205 | #
|
---|
1206 | # This is tailored (hardcoded) for the extension pack build box.
|
---|
1207 | #
|
---|
1208 | # The fetching must be done in serial fashion, while the building should be
|
---|
1209 | # more flexible wrt to -jN.
|
---|
1210 | #
|
---|
1211 | extpacks-fetch:
|
---|
1212 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
1213 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1214 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
1215 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1216 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
1217 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1218 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
1219 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
|
---|
1220 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
1221 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1222 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
1223 |
|
---|
1224 |
|
---|
1225 | extpacks-build: \
|
---|
1226 | extpacks-build-win.amd64 \
|
---|
1227 | extpacks-build-win.x86 \
|
---|
1228 | extpacks-build-solaris.amd64 \
|
---|
1229 | extpacks-build-os2.x86 \
|
---|
1230 | extpacks-build-linux \
|
---|
1231 | extpacks-build-darwin.amd64 \
|
---|
1232 | extpacks-build-freebsd.amd64 \
|
---|
1233 | extpacks-build-freebsd.x86
|
---|
1234 |
|
---|
1235 | VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
|
---|
1236 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1237 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1238 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1239 |
|
---|
1240 | VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
|
---|
1241 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1242 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1243 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1244 |
|
---|
1245 | # Automatically determine the extpack build subdir name. Used for figuring out
|
---|
1246 | # directory names inside the extension pack building VMs.
|
---|
1247 | VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1248 |
|
---|
1249 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1250 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1251 | ifeq ($(KBUILD_TARGET),win)
|
---|
1252 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
|
---|
1253 | else
|
---|
1254 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
|
---|
1255 | endif
|
---|
1256 |
|
---|
1257 | extpacks-build-win.amd64:
|
---|
1258 | ifeq ($(KBUILD_TARGET),win)
|
---|
1259 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1260 | else
|
---|
1261 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
|
---|
1262 | $(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"
|
---|
1263 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
|
---|
1264 | endif
|
---|
1265 |
|
---|
1266 | extpacks-build-win.x86:
|
---|
1267 | ifeq ($(KBUILD_TARGET),win)
|
---|
1268 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1269 | else
|
---|
1270 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
|
---|
1271 | $(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"
|
---|
1272 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
|
---|
1273 | endif
|
---|
1274 |
|
---|
1275 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1276 | extpacks-build-solaris.amd64:
|
---|
1277 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1278 |
|
---|
1279 | else
|
---|
1280 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
1281 | extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1282 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1283 |
|
---|
1284 | extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
|
---|
1285 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
|
---|
1286 | $(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"
|
---|
1287 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
|
---|
1288 |
|
---|
1289 | extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
|
---|
1290 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1291 |
|
---|
1292 | #.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
|
---|
1293 | .PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
|
---|
1294 |
|
---|
1295 | extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
|
---|
1296 | endif
|
---|
1297 |
|
---|
1298 | extpacks-build-os2.x86:
|
---|
1299 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
1300 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1301 | #else
|
---|
1302 | # $(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) "
|
---|
1303 | #endif
|
---|
1304 |
|
---|
1305 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1306 | extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1307 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1308 |
|
---|
1309 | extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1310 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1311 |
|
---|
1312 | extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
|
---|
1313 | else
|
---|
1314 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
1315 | extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1316 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1317 |
|
---|
1318 | extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
|
---|
1319 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
|
---|
1320 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all\""'
|
---|
1321 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
|
---|
1322 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
|
---|
1323 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c debian-4.0-i386 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all\""'
|
---|
1324 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
|
---|
1325 |
|
---|
1326 | extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
|
---|
1327 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1328 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1329 |
|
---|
1330 | #.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
|
---|
1331 | .PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
|
---|
1332 |
|
---|
1333 | extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
|
---|
1334 | endif
|
---|
1335 |
|
---|
1336 | extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1337 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1338 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1339 | #else
|
---|
1340 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
|
---|
1341 | # $(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"
|
---|
1342 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
|
---|
1343 | #endif
|
---|
1344 |
|
---|
1345 | extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1346 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1347 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1348 | #else
|
---|
1349 | # $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
|
---|
1350 | # $(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"
|
---|
1351 | # $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
|
---|
1352 | #endif
|
---|
1353 |
|
---|
1354 | extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1355 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1356 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1357 | else
|
---|
1358 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
|
---|
1359 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
1360 | $(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"
|
---|
1361 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1362 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
|
---|
1363 | endif
|
---|
1364 |
|
---|
1365 | extpacks-packing:
|
---|
1366 | + $(KMK) VBOX_ONLY_EXTPACKS=1 \
|
---|
1367 | VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
|
---|
1368 | packing
|
---|
1369 | # +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
|
---|
1370 |
|
---|
1371 | .PHONY: \
|
---|
1372 | extpacks-build-win.x86 \
|
---|
1373 | extpacks-build-win.amd64 \
|
---|
1374 | extpacks-build-solaris.amd64 \
|
---|
1375 | extpacks-build-os2.x86 \
|
---|
1376 | extpacks-build-linux \
|
---|
1377 | extpacks-build-linux.amd64 \
|
---|
1378 | extpacks-build-linux.x86 \
|
---|
1379 | extpacks-build-freebsd.amd64 \
|
---|
1380 | extpacks-build-freebsd.x86 \
|
---|
1381 | extpacks-build-darwin.amd64 \
|
---|
1382 | extpacks-packing
|
---|
1383 |
|
---|
1384 |
|
---|
1385 | #
|
---|
1386 | # Build the test suite, all of it.
|
---|
1387 | #
|
---|
1388 | # This is currently tailored (hardcoded) for the additions build box just like
|
---|
1389 | # the additions build above, which it in fact is a copy of.
|
---|
1390 | #
|
---|
1391 | validationkit-fetch:
|
---|
1392 | + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
|
---|
1393 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
|
---|
1394 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
|
---|
1395 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
|
---|
1396 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
|
---|
1397 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
|
---|
1398 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
|
---|
1399 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
|
---|
1400 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
|
---|
1401 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
|
---|
1402 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
|
---|
1403 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
|
---|
1404 |
|
---|
1405 |
|
---|
1406 | validationkit-build: \
|
---|
1407 | validationkit-build-rsync-into-vms \
|
---|
1408 | validationkit-build-solaris.amd64 \
|
---|
1409 | validationkit-build-solaris.x86 \
|
---|
1410 | validationkit-build-win.x86 \
|
---|
1411 | validationkit-build-win.amd64 \
|
---|
1412 | validationkit-build-os2.x86 \
|
---|
1413 | validationkit-build-linux \
|
---|
1414 | validationkit-build-freebsd.amd64 \
|
---|
1415 | validationkit-build-freebsd.x86 \
|
---|
1416 | validationkit-build-darwin.amd64 \
|
---|
1417 | validationkit-build-darwin.x86
|
---|
1418 |
|
---|
1419 | validationkit-build-rsync-into-vms: \
|
---|
1420 | validationkit-build-solaris.rsync-into-vm \
|
---|
1421 | validationkit-build-os2.rsync-into-vm \
|
---|
1422 | validationkit-build-linux.rsync-into-vm
|
---|
1423 | $(call MSG_L1,Rsynced the sources + tools into the VMs.)
|
---|
1424 | .NOTPARALLEL: validationkit-build-rsync-into-vms
|
---|
1425 | .PHONY: validationkit-build-rsync-into-vms
|
---|
1426 |
|
---|
1427 |
|
---|
1428 | VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1429 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1430 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1431 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1432 |
|
---|
1433 | VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1434 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1435 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1436 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1437 |
|
---|
1438 | # Automatically determine the Validation Kit build subdir name. Used for figuring
|
---|
1439 | # out directory names inside the test suite building VMs.
|
---|
1440 | VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1441 |
|
---|
1442 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1443 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1444 | ifeq ($(KBUILD_TARGET),win)
|
---|
1445 | VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
|
---|
1446 | else
|
---|
1447 | VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
|
---|
1448 | endif
|
---|
1449 |
|
---|
1450 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
1451 | validationkit-build-win.amd64: validationkit-build-win.x86
|
---|
1452 | ifeq ($(KBUILD_TARGET),win)
|
---|
1453 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1454 | else
|
---|
1455 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
|
---|
1456 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all "
|
---|
1457 | $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
|
---|
1458 | endif
|
---|
1459 |
|
---|
1460 | validationkit-build-win.x86:
|
---|
1461 | ifeq ($(KBUILD_TARGET),win)
|
---|
1462 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1463 | else
|
---|
1464 | $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
|
---|
1465 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
|
---|
1466 | $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
|
---|
1467 | endif
|
---|
1468 |
|
---|
1469 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1470 | validationkit-build-solaris.amd64:
|
---|
1471 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1472 |
|
---|
1473 | validationkit-build-solaris.x86:
|
---|
1474 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1475 |
|
---|
1476 | else
|
---|
1477 | validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1478 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
|
---|
1479 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1480 | '--exclude=src/VBox/Frontends/**' \
|
---|
1481 | '--exclude=src/VBox/VMM/**' \
|
---|
1482 | . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1483 |
|
---|
1484 | validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
|
---|
1485 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
|
---|
1486 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
|
---|
1487 | $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
|
---|
1488 | $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
|
---|
1489 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all "
|
---|
1490 | $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
|
---|
1491 |
|
---|
1492 | validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
|
---|
1493 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1494 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1495 |
|
---|
1496 | .PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
|
---|
1497 |
|
---|
1498 | validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
|
---|
1499 | validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
|
---|
1500 | endif
|
---|
1501 |
|
---|
1502 | ifeq ($(KBUILD_TARGET),os2)
|
---|
1503 | validationkit-build-os2.x86:
|
---|
1504 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1505 | validationkit-build-os2.rsync-into-vm:
|
---|
1506 | else # !OS/2
|
---|
1507 | validationkit-build-os2.rsync-into-vm:
|
---|
1508 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
|
---|
1509 | '--exclude=src/VBox/Additions/x11/**' \
|
---|
1510 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1511 | '--exclude=src/VBox/Frontends/**' \
|
---|
1512 | '--exclude=src/VBox/VMM/**' \
|
---|
1513 | . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1514 |
|
---|
1515 | validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
|
---|
1516 | $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
|
---|
1517 | $(VBOX_KMK_TIME) rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
|
---|
1518 | $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
|
---|
1519 |
|
---|
1520 | validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
|
---|
1521 | $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
|
---|
1522 |
|
---|
1523 | .PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
|
---|
1524 |
|
---|
1525 | validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
|
---|
1526 | endif # !OS/2
|
---|
1527 |
|
---|
1528 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1529 | validationkit-build-linux.amd64:
|
---|
1530 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1531 |
|
---|
1532 | validationkit-build-linux.x86:
|
---|
1533 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1534 |
|
---|
1535 | validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
|
---|
1536 | else
|
---|
1537 | validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1538 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
|
---|
1539 | '--exclude=src/VBox/Additions/WINNT/**' \
|
---|
1540 | '--exclude=src/VBox/Frontends/**' \
|
---|
1541 | '--exclude=src/VBox/VMM/**' \
|
---|
1542 | . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1543 |
|
---|
1544 | validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
|
---|
1545 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
|
---|
1546 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all\""'
|
---|
1547 | $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
|
---|
1548 | $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
|
---|
1549 | $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all\""'
|
---|
1550 | $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
|
---|
1551 |
|
---|
1552 | validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
|
---|
1553 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
|
---|
1554 | $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
|
---|
1555 |
|
---|
1556 | .PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
|
---|
1557 |
|
---|
1558 | validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
|
---|
1559 | endif
|
---|
1560 |
|
---|
1561 | validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1562 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
1563 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1564 | #else
|
---|
1565 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
|
---|
1566 | # $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
|
---|
1567 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
|
---|
1568 | #endif
|
---|
1569 |
|
---|
1570 | validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1571 | #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
1572 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1573 | #else
|
---|
1574 | # $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
|
---|
1575 | # $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
|
---|
1576 | # $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
|
---|
1577 | #endif
|
---|
1578 |
|
---|
1579 | validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1580 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
1581 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1582 | else
|
---|
1583 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
|
---|
1584 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1585 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
|
---|
1586 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
|
---|
1587 | $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
|
---|
1588 | endif
|
---|
1589 |
|
---|
1590 | validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
|
---|
1591 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
|
---|
1592 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
|
---|
1593 | else
|
---|
1594 | $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
|
---|
1595 | $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
|
---|
1596 | $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
|
---|
1597 | $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
|
---|
1598 | $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
|
---|
1599 | endif
|
---|
1600 |
|
---|
1601 |
|
---|
1602 | validationkit-packing:
|
---|
1603 | + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
|
---|
1604 | VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
|
---|
1605 | VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
|
---|
1606 | VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
|
---|
1607 | VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
|
---|
1608 | VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
|
---|
1609 | VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
|
---|
1610 | VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
|
---|
1611 | VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
|
---|
1612 | VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
|
---|
1613 | VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
|
---|
1614 | VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
|
---|
1615 | -C src/VBox/ValidationKit \
|
---|
1616 | $(PATH_OUT)/VBoxValidationKit.zip \
|
---|
1617 | $(PATH_OUT)/VBoxTestBoxScript.zip
|
---|
1618 |
|
---|
1619 | .PHONY: \
|
---|
1620 | validationkit-build-win.x86 \
|
---|
1621 | validationkit-build-win.amd64 \
|
---|
1622 | validationkit-build-solaris.amd64 \
|
---|
1623 | validationkit-build-solaris.x86 \
|
---|
1624 | validationkit-build-os2.x86 \
|
---|
1625 | validationkit-build-linux \
|
---|
1626 | validationkit-build-linux.amd64 \
|
---|
1627 | validationkit-build-linux.x86 \
|
---|
1628 | validationkit-build-freebsd.amd64 \
|
---|
1629 | validationkit-build-freebsd.x86 \
|
---|
1630 | validationkit-build-darwin.amd64 \
|
---|
1631 | validationkit-build-darwin.x86 \
|
---|
1632 | validationkit-packing
|
---|
1633 |
|
---|
1634 |
|
---|
1635 | #
|
---|
1636 | # Build the EFI firmware, all of it.
|
---|
1637 | #
|
---|
1638 | efi-fetch:
|
---|
1639 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
1640 |
|
---|
1641 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
1642 | + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
|
---|
1643 |
|
---|
1644 | efi-packing:
|
---|
1645 | + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
|
---|
1646 |
|
---|
1647 |
|
---|
1648 | #
|
---|
1649 | # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
|
---|
1650 | # - includes kBuild
|
---|
1651 | # - must be executed on an PUEL checkout
|
---|
1652 | #
|
---|
1653 |
|
---|
1654 | # the path where to store the zip archive
|
---|
1655 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1656 | # the root directory inside the zip archive
|
---|
1657 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
1658 | # the name of the zip archive
|
---|
1659 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
1660 | snapshot-puel:
|
---|
1661 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
1662 | @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1663 | echo; \
|
---|
1664 | echo "Did not find RDP stuff, is this an OSE branch?"; \
|
---|
1665 | echo; \
|
---|
1666 | exit 1; \
|
---|
1667 | fi
|
---|
1668 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
1669 | echo; \
|
---|
1670 | echo "Please specify a password with PASSWORD=..."; \
|
---|
1671 | echo; \
|
---|
1672 | exit 1; \
|
---|
1673 | fi
|
---|
1674 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
1675 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
1676 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
1677 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
1678 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
1679 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
1680 | -xr!.svn \
|
---|
1681 | -i!$(ZIPROOT)/Config.kmk \
|
---|
1682 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
1683 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
1684 | -i!$(ZIPROOT)/configure \
|
---|
1685 | -i!$(ZIPROOT)/configure.vbs \
|
---|
1686 | -i!$(ZIPROOT)/doc \
|
---|
1687 | -i!$(ZIPROOT)/include \
|
---|
1688 | -i!$(ZIPROOT)/kBuild \
|
---|
1689 | -i!$(ZIPROOT)/src \
|
---|
1690 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
1691 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
1692 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
1693 | -x!$(ZIPROOT)/doc/Devices \
|
---|
1694 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
1695 | -x!$(ZIPROOT)/doc/VMM \
|
---|
1696 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
1697 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
1698 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
1699 | -x!$(ZIPROOT)/src/tests \
|
---|
1700 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
1701 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
1702 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
1703 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
1704 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
1705 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
1706 | $(ZIPPATH)/$(ZIPNAME))
|
---|
1707 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
1708 |
|
---|
1709 |
|
---|
1710 | #
|
---|
1711 | # Generate ALL the rules.
|
---|
1712 | #
|
---|
1713 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1714 |
|
---|
1715 |
|
---|
1716 | #
|
---|
1717 | # Generate x86.mac and err.mac.
|
---|
1718 | #
|
---|
1719 | incs:
|
---|
1720 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
1721 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
1722 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
1723 | $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
|
---|
1724 | $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
|
---|
1725 | $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
|
---|
1726 | $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
|
---|
1727 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
1728 | $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
|
---|
1729 |
|
---|
1730 |
|
---|
1731 | #
|
---|
1732 | # Legacy.
|
---|
1733 | #
|
---|
1734 | vslick.h:
|
---|
1735 | $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
|
---|
1736 | exit 1
|
---|
1737 |
|
---|
1738 |
|
---|
1739 | #
|
---|
1740 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
1741 | #
|
---|
1742 | up update up2 update2::
|
---|
1743 | ifndef VBOX_OSE
|
---|
1744 | +$(MAKE) -C tools fetch
|
---|
1745 | else
|
---|
1746 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
1747 | endif
|
---|
1748 |
|
---|
1749 |
|
---|
1750 |
|
---|
1751 | #
|
---|
1752 | # Aliases for building the SDK.
|
---|
1753 | #
|
---|
1754 | .NOTPARALLEL: sdk sdk-fetch
|
---|
1755 | sdk:
|
---|
1756 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
1757 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
1758 |
|
---|
1759 | sdk-fetch:
|
---|
1760 | + $(KMK) VBOX_ONLY_SDK=1 -C tools
|
---|
1761 |
|
---|
1762 |
|
---|
1763 | #
|
---|
1764 | # Build the essentials to run a VM. Incomplete. Use with care!
|
---|
1765 | #
|
---|
1766 | quick: \
|
---|
1767 | VBoxRT \
|
---|
1768 | VBoxVMM \
|
---|
1769 | VMMR0 \
|
---|
1770 | VBoxDD \
|
---|
1771 | VBoxDDR0 \
|
---|
1772 | VBoxDD2 \
|
---|
1773 | VBoxDD2R0 \
|
---|
1774 | VBoxC \
|
---|
1775 | VBoxSVC \
|
---|
1776 | $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
|
---|
1777 | $(if-expr defined(VBOX_WITH_REM),VBoxREM,) \
|
---|
1778 | $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
|
---|
1779 | $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
|
---|
1780 | $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
|
---|
1781 |
|
---|