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