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