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