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