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