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