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