[2478] | 1 | # $Id: Makefile.kmk 100262 2023-06-23 12:17:11Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[1] | 3 | # Top-level makefile for the VirtualBox Guest Additions.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[98103] | 7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[4408] | 8 | #
|
---|
[96407] | 9 | # This file is part of VirtualBox base platform packages, as
|
---|
| 10 | # available from https://www.virtualbox.org.
|
---|
[5999] | 11 | #
|
---|
[96407] | 12 | # This program is free software; you can redistribute it and/or
|
---|
| 13 | # modify it under the terms of the GNU General Public License
|
---|
| 14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | # License.
|
---|
| 16 | #
|
---|
| 17 | # This program is distributed in the hope that it will be useful, but
|
---|
| 18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | # General Public License for more details.
|
---|
| 21 | #
|
---|
| 22 | # You should have received a copy of the GNU General Public License
|
---|
| 23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | #
|
---|
| 25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
| 26 | #
|
---|
[1] | 27 |
|
---|
[10129] | 28 | SUB_DEPTH = ../../..
|
---|
[41477] | 29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[1] | 30 |
|
---|
[2946] | 31 | #
|
---|
[10245] | 32 | # Globals
|
---|
| 33 | #
|
---|
| 34 | VBOX_PATH_ADDITIONS_SRC := $(PATH_SUB_CURRENT)
|
---|
| 35 |
|
---|
| 36 | #
|
---|
[9642] | 37 | # Cross building of the additions is generally done by remote building
|
---|
| 38 | # by means of smbfs, cifs, VBOX_ONLY_ADDITIONS=1 and setting KBUILD_TARGET
|
---|
| 39 | # and KBUILD_TARGET_ARCH to the desired target and architecture.
|
---|
| 40 | #
|
---|
| 41 | # Limited support for cross building the windows additions using wine
|
---|
| 42 | # is provided. There are a couple of issues with the approach (lack of
|
---|
| 43 | # signing, no VC++ 8 support, ++) that makes it unsuitable for releases.
|
---|
| 44 | #
|
---|
| 45 | #
|
---|
[9639] | 46 | # Note! VBOX_WITH_ADDITIONS is checked for by our parent makefile.
|
---|
[2946] | 47 | #
|
---|
[9639] | 48 | # Note! VBOX_WITH_X11_ADDITIONS is set in Config.kmk
|
---|
| 49 | #
|
---|
| 50 | # Note! The additions build box will set the VBOX_WITH_ADDITIONS_ISO.win.x86
|
---|
| 51 | # variables before invoking us from the root makefile.
|
---|
| 52 | #
|
---|
| 53 | # ==> All we have to worry about is what to do on the target we're on.
|
---|
| 54 | #
|
---|
| 55 | VBOX_WITH_ADDITIONS_ISO.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
|
---|
[2946] | 56 |
|
---|
[2487] | 57 | # Include sub-makefiles.
|
---|
| 58 | include $(PATH_SUB_CURRENT)/common/Makefile.kmk
|
---|
[9639] | 59 |
|
---|
[93430] | 60 | ifdef VBOX_WITH_X11_ADDITIONS
|
---|
| 61 | include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
|
---|
| 62 | endif
|
---|
[9639] | 63 |
|
---|
[93430] | 64 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
| 65 | include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
|
---|
| 66 | endif
|
---|
| 67 | ifeq ($(KBUILD_TARGET),linux)
|
---|
| 68 | include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
|
---|
| 69 | endif
|
---|
| 70 | ifeq ($(KBUILD_TARGET),os2)
|
---|
| 71 | include $(PATH_SUB_CURRENT)/os2/Makefile.kmk
|
---|
| 72 | endif
|
---|
| 73 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
| 74 | include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
|
---|
| 75 | endif
|
---|
| 76 | ifeq ($(KBUILD_TARGET),win)
|
---|
[94553] | 77 | include $(PATH_SUB_CURRENT)/3D/win/VBoxWddmUmHlp/Makefile.kmk
|
---|
[93430] | 78 | ifdef VBOX_WITH_MESA3D
|
---|
| 79 | include $(PATH_SUB_CURRENT)/3D/Makefile.kmk
|
---|
[27014] | 80 | endif
|
---|
[93430] | 81 | include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
|
---|
| 82 | endif
|
---|
| 83 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
| 84 | include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
|
---|
| 85 | endif
|
---|
| 86 | ifeq ($(KBUILD_TARGET),haiku)
|
---|
| 87 | include $(PATH_SUB_CURRENT)/haiku/Makefile.kmk
|
---|
| 88 | endif
|
---|
[1] | 89 |
|
---|
[93430] | 90 | ifeq ($(KBUILD_TARGET),linux)
|
---|
[58351] | 91 |
|
---|
[93430] | 92 | INSTALLS += LnxAddIso-scripts
|
---|
| 93 | LnxAddIso-scripts_INST = $(INST_ADDITIONS)
|
---|
| 94 | LnxAddIso-scripts_MODE = a+rx,u+w
|
---|
| 95 | LnxAddIso-scripts_SOURCES = \
|
---|
| 96 | ../Installer/linux/runasroot.sh \
|
---|
| 97 | linux/installer/autorun.sh
|
---|
[36658] | 98 |
|
---|
[93430] | 99 | endif # KBUILD_TARGET == linux
|
---|
| 100 | ifeq ($(KBUILD_TARGET),win)
|
---|
| 101 | #
|
---|
| 102 | # Inf2Cat requires all the files referenced in the .inf file
|
---|
| 103 | # to be present in the directory, so we have to do this from here,
|
---|
| 104 | # since VBoxGuest.sys is being built from the common sources.
|
---|
| 105 | #
|
---|
| 106 | INSTALLS += VBoxGuest-inf
|
---|
| 107 | VBoxGuest-inf_INST = $(INST_ADDITIONS)
|
---|
| 108 | VBoxGuest-inf_MODE = a+r,u+w
|
---|
| 109 | VBoxGuest-inf_SOURCES = \
|
---|
[94160] | 110 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf
|
---|
[98626] | 111 | VBoxGuest-inf_SOURCES.x86 = \
|
---|
| 112 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf
|
---|
[93430] | 113 | VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
|
---|
[98626] | 114 | VBoxGuest-inf_CLEAN.x86 = $(VBoxGuest-inf_SOURCES.x86)
|
---|
[94160] | 115 | VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
|
---|
[98626] | 116 | VBoxGuest-inf_BLDDIRS.x86 = $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir
|
---|
[32690] | 117 |
|
---|
[93430] | 118 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
[68827] | 119 | $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
|
---|
[32690] | 120 | $(call VBOX_EDIT_INF_FN,$<,$@)
|
---|
| 121 |
|
---|
[98626] | 122 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuestEarlyNT.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
| 123 | $(call MSG_GENERATE,VBoxGuestEarlyNT-inf,$@,$<)
|
---|
| 124 | $(call VBOX_EDIT_INF_FN,$<,$@)
|
---|
| 125 |
|
---|
[98416] | 126 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
|
---|
[94160] | 127 | VBoxGuest-inf_SOURCES += \
|
---|
[98416] | 128 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
|
---|
| 129 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat=>VBoxGuest-PreW10.cat \
|
---|
| 130 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
| 131 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
| 132 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
|
---|
[98626] | 133 | VBoxGuest-inf_SOURCES.x86 += \
|
---|
| 134 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.cat
|
---|
[94160] | 135 |
|
---|
[98626] | 136 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
| 137 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuest.sys: $$(VBoxGuest_1_TARGET) | $$(dir $$@)
|
---|
[32690] | 138 | $(INSTALL) -m 644 $< $(@D)
|
---|
| 139 |
|
---|
[98626] | 140 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
| 141 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxControl.exe: $$(VBoxControl_1_TARGET) | $$(dir $$@)
|
---|
[32690] | 142 | $(INSTALL) -m 755 $< $(@D)
|
---|
| 143 |
|
---|
[98626] | 144 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe \
|
---|
| 145 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxTray.exe: $$(VBoxTray_1_TARGET) | $$(dir $$@)
|
---|
[32690] | 146 | $(INSTALL) -m 755 $< $(@D)
|
---|
| 147 |
|
---|
[94160] | 148 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
|
---|
[98416] | 149 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
| 150 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
| 151 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
| 152 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
|
---|
[32690] | 153 | $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
|
---|
| 154 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
[98626] | 155 |
|
---|
| 156 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.cat: \
|
---|
| 157 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuestEarlyNT.inf \
|
---|
| 158 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxGuest.sys \
|
---|
| 159 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxControl.exe \
|
---|
| 160 | $(PATH_TARGET)/VBoxGuestEarlyNTCat.dir/VBoxTray.exe
|
---|
| 161 | $(call MSG_TOOL,Inf2Cat,VBoxGuestEarlyNT-inf,$@,$<)
|
---|
| 162 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
[94160] | 163 | endif # signing
|
---|
[93430] | 164 | endif # KBUILD_TARGET == win
|
---|
[32690] | 165 |
|
---|
[93430] | 166 | # The packing target rule, but only if we're on the local build box.
|
---|
| 167 | # (VBOX_WITHOUT_ADDITIONS_ISO is used by the additions build box, see the root makefile.)
|
---|
| 168 | ifndef VBOX_WITHOUT_ADDITIONS_ISO
|
---|
| 169 | PACKING += $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
|
---|
| 170 | endif
|
---|
[1] | 171 |
|
---|
[41477] | 172 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[1] | 173 |
|
---|
[6053] | 174 | #
|
---|
[9639] | 175 | # File per-OS/arch file specs for the additions iso (alphabetical order).
|
---|
[6053] | 176 | #
|
---|
[9639] | 177 | # We test for the VBOX_WITH_ADDITIONS_ISO.os.arch so that we don't have to
|
---|
| 178 | # do the $(if )'ing down where the GUESTADDITIONS_FILESPEC.os.arch down
|
---|
[68949] | 179 | # in the dependency list and RTIsoMaker command.
|
---|
[9639] | 180 | #
|
---|
| 181 |
|
---|
[40344] | 182 | # Darwin / Mac OS X
|
---|
[45472] | 183 | ## @todo Create .pkg files not run files. The build server shall create a combined packaged, goverend by
|
---|
| 184 | # the VBOX_WITH_COMBINED_DARWIN_GUEST_PACKAGE macro.
|
---|
[40315] | 185 | ifdef VBOX_WITH_ADDITIONS_ISO.darwin.x86
|
---|
[98416] | 186 | VBOX_PATH_ADDITIONS.darwin.x86 = $(PATH_OUT_BASE)/darwin.x86/$(KBUILD_TYPE)/dist/additions
|
---|
| 187 | GUESTADDITIONS_FILESPEC.darwin.x86 = \
|
---|
| 188 | VBoxDarwinAdditionsLegacy.pkg=$(VBOX_PATH_ADDITIONS.darwin.x86)/VBoxGuestAdditions.pkg
|
---|
[76028] | 189 | ifndef VBOX_WITH_ADDITIONS_ISO.darwin.amd64
|
---|
[98416] | 190 | GUESTADDITIONS_FILESPEC.darwin.x86 += \
|
---|
| 191 | VBoxDarwinAdditionsUninstall.tool=$(VBOX_PATH_ADDITIONS.darwin.x86)/VBoxDarwinAdditionsUninstall.tool
|
---|
[76028] | 192 | endif
|
---|
[40315] | 193 | endif
|
---|
| 194 |
|
---|
| 195 | ifdef VBOX_WITH_ADDITIONS_ISO.darwin.amd64
|
---|
[98416] | 196 | VBOX_PATH_ADDITIONS.darwin.amd64 = $(PATH_OUT_BASE)/darwin.amd64/$(KBUILD_TYPE)/dist/additions
|
---|
| 197 | GUESTADDITIONS_FILESPEC.darwin.amd64 = \
|
---|
| 198 | VBoxDarwinAdditions.pkg=$(VBOX_PATH_ADDITIONS.darwin.amd64)/VBoxGuestAdditions.pkg
|
---|
[76028] | 199 | ifndef VBOX_WITH_ADDITIONS_ISO.darwin.x86
|
---|
[98416] | 200 | GUESTADDITIONS_FILESPEC.darwin.amd64 += \
|
---|
| 201 | VBoxDarwinAdditionsUninstall.tool=$(VBOX_PATH_ADDITIONS.darwin.amd64)/VBoxDarwinAdditionsUninstall.tool
|
---|
[76028] | 202 | endif
|
---|
[40315] | 203 | endif
|
---|
| 204 |
|
---|
| 205 | # FreeBSD
|
---|
[9639] | 206 | ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.amd64
|
---|
| 207 | VBOX_PATH_ADDITIONS.freebsd.amd64 = $(PATH_OUT_BASE)/freebsd.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
| 208 | GUESTADDITIONS_FILESPEC.freebsd.amd64 = \
|
---|
[98416] | 209 | VBoxFreeBSDAdditions-amd64.tbz=$(VBOX_PATH_ADDITIONS.freebsd.amd64)/VBoxFreeBSDAdditions.tbz
|
---|
[1] | 210 | endif
|
---|
[9639] | 211 | ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.x86
|
---|
| 212 | VBOX_PATH_ADDITIONS.freebsd.x86 = $(PATH_OUT_BASE)/freebsd.x86/$(KBUILD_TYPE)/bin/additions
|
---|
| 213 | GUESTADDITIONS_FILESPEC.freebsd.x86 = \
|
---|
[98416] | 214 | VBoxFreeBSDAdditions-x86.tbz=$(VBOX_PATH_ADDITIONS.freebsd.x86)/VBoxFreeBSDAdditions.tbz
|
---|
[9639] | 215 | endif
|
---|
[1] | 216 |
|
---|
[40315] | 217 | # GNU/Linux
|
---|
[9639] | 218 | ifdef VBOX_WITH_ADDITIONS_ISO.linux.amd64
|
---|
| 219 | VBOX_PATH_ADDITIONS.linux.amd64 = $(PATH_OUT_BASE)/linux.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
[31144] | 220 | ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
|
---|
[98416] | 221 | VBOX_LNX_ADD_AMD64_RUN_PKG = VBoxLinuxAdditions.run
|
---|
[31144] | 222 | else
|
---|
[98416] | 223 | VBOX_LNX_ADD_AMD64_RUN_PKG = VBoxLinuxAdditions-amd64.run
|
---|
[31144] | 224 | endif
|
---|
[9639] | 225 | GUESTADDITIONS_FILESPEC.linux.amd64 = \
|
---|
[98416] | 226 | $(VBOX_LNX_ADD_AMD64_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.amd64)/VBoxLinuxAdditions.run
|
---|
[9639] | 227 | endif
|
---|
[100260] | 228 | ifdef VBOX_WITH_LNX_ARM64_ADDITIONS
|
---|
| 229 | ifdef VBOX_WITH_ADDITIONS_ISO.linux.arm64
|
---|
| 230 | VBOX_PATH_ADDITIONS.linux.arm64 = $(PATH_OUT_BASE)/linux.arm64/$(KBUILD_TYPE)/bin/additions
|
---|
| 231 | ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
|
---|
| 232 | VBOX_LNX_ADD_ARM64_RUN_PKG = VBoxLinuxAdditions.run
|
---|
| 233 | else
|
---|
| 234 | VBOX_LNX_ADD_ARM64_RUN_PKG = VBoxLinuxAdditions-arm64.run
|
---|
| 235 | endif
|
---|
| 236 | GUESTADDITIONS_FILESPEC.linux.arm64 = \
|
---|
[100262] | 237 | $(VBOX_LNX_ADD_ARM64_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.arm64)/VBoxLinuxAdditions.run
|
---|
[100260] | 238 | endif
|
---|
| 239 | endif
|
---|
[6053] | 240 | ifdef VBOX_WITH_ADDITIONS_ISO.linux.x86
|
---|
[9639] | 241 | VBOX_PATH_ADDITIONS.linux.x86 = $(PATH_OUT_BASE)/linux.x86/$(KBUILD_TYPE)/bin/additions
|
---|
[98416] | 242 | ## @todo 64-bit additions: rename this package, update docs (?) and tests (?). create wrapper? create gnome/kde autorun app (xplatform) ?
|
---|
[31144] | 243 | ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
|
---|
[98416] | 244 | VBOX_LNX_ADD_X86_RUN_PKG = VBoxLinuxAdditions.run
|
---|
[31144] | 245 | else
|
---|
[98416] | 246 | VBOX_LNX_ADD_X86_RUN_PKG = VBoxLinuxAdditions-x86.run
|
---|
[31144] | 247 | endif
|
---|
[6053] | 248 | GUESTADDITIONS_FILESPEC.linux.x86 = \
|
---|
[98416] | 249 | $(VBOX_LNX_ADD_X86_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.x86)/VBoxLinuxAdditions.run \
|
---|
| 250 | runasroot.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/runasroot.sh \
|
---|
| 251 | autorun.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/autorun.sh
|
---|
[6053] | 252 | endif
|
---|
| 253 |
|
---|
[40315] | 254 | # IBM OS/2
|
---|
| 255 | ifdef VBOX_WITH_ADDITIONS_ISO.os2.x86
|
---|
| 256 | VBOX_PATH_ADDITIONS.os2.x86 = $(PATH_OUT_BASE)/os2.x86/$(KBUILD_TYPE)/bin/additions
|
---|
| 257 | GUESTADDITIONS_FILESPEC.os2.x86 = \
|
---|
[98416] | 258 | OS2/VBoxGuest.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxGuest.sys \
|
---|
| 259 | OS2/VBoxSF.ifs=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxSF.ifs \
|
---|
| 260 | OS2/VBoxService.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxService.exe \
|
---|
| 261 | OS2/VBoxControl.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxControl.exe \
|
---|
| 262 | OS2/VBoxReplaceDll.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxReplaceDll.exe \
|
---|
| 263 | OS2/VBoxOs2AdditionsInstall.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxOs2AdditionsInstall.exe \
|
---|
| 264 | OS2/libc06.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc06.dll \
|
---|
| 265 | OS2/libc061.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc061.dll \
|
---|
| 266 | OS2/libc062.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc062.dll \
|
---|
| 267 | OS2/libc063.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc063.dll \
|
---|
| 268 | OS2/libc064.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc064.dll \
|
---|
| 269 | OS2/libc065.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc065.dll \
|
---|
| 270 | OS2/libc066.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc066.dll \
|
---|
| 271 | OS2/readme.txt=$(VBOX_PATH_ADDITIONS.os2.x86)/readme.txt \
|
---|
| 272 | \
|
---|
| 273 | OS2/gengradd.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/gengradd.dll \
|
---|
| 274 | OS2/VBoxMouse.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/vboxmouse.sys
|
---|
[40315] | 275 | endif
|
---|
| 276 |
|
---|
| 277 | # Oracle Solaris.
|
---|
[9639] | 278 | ifdef VBOX_WITH_ADDITIONS_ISO.solaris.amd64
|
---|
[12309] | 279 | VBOX_PATH_ADDITIONS.solaris.amd64 = $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
[12222] | 280 | GUESTADDITIONS_FILESPEC.solaris.amd64 = \
|
---|
[98416] | 281 | VBoxSolarisAdditions-amd64.pkg=$(VBOX_PATH_ADDITIONS.solaris.amd64)/VBoxSolarisAdditions.pkg
|
---|
[9639] | 282 | endif
|
---|
[12218] | 283 | ifdef VBOX_WITH_ADDITIONS_ISO.solaris.x86
|
---|
[12222] | 284 | VBOX_PATH_ADDITIONS.solaris.x86 = $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
|
---|
[12337] | 285 | GUESTADDITIONS_FILESPEC.solaris.x86 = \
|
---|
[98416] | 286 | VBoxSolarisAdditions-x86.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
|
---|
[12218] | 287 | endif
|
---|
[12337] | 288 | ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
|
---|
| 289 | # Build combined 32bit and 64bit solaris additions, not just a single arch.
|
---|
| 290 | # This assumes that the 32bit build directory contains the combined additions
|
---|
| 291 | # for 32bit and 64bit solaris. This just modifies variables set above.
|
---|
| 292 | GUESTADDITIONS_FILESPEC.solaris.x86 = \
|
---|
[98416] | 293 | VBoxSolarisAdditions.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
|
---|
[12337] | 294 | GUESTADDITIONS_FILESPEC.solaris.amd64 =
|
---|
| 295 | endif
|
---|
[7228] | 296 |
|
---|
[40315] | 297 | # Microsoft Windows.
|
---|
[9639] | 298 | ifdef VBOX_WITH_ADDITIONS_ISO.win.amd64
|
---|
[10155] | 299 | VBOX_PATH_ADDITIONS.win.amd64 = $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
[64935] | 300 | VBOX_PATH_ADDITIONS.win = $(VBOX_PATH_ADDITIONS.win.amd64)
|
---|
[10155] | 301 | GUESTADDITIONS_FILESPEC.win.amd64 = \
|
---|
[98416] | 302 | VBoxWindowsAdditions-amd64.exe=$(VBOX_PATH_ADDITIONS.win.amd64)/VBoxWindowsAdditions-amd64.exe
|
---|
[39749] | 303 | ifndef VBOX_WITH_ADDITIONS_ISO.win.x86
|
---|
| 304 | GUESTADDITIONS_FILESPEC.win.amd64 += \
|
---|
[98416] | 305 | cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.amd64)/VBoxCertUtil.exe
|
---|
[39749] | 306 | endif
|
---|
[9639] | 307 | endif
|
---|
[10155] | 308 |
|
---|
[9639] | 309 | ifdef VBOX_WITH_ADDITIONS_ISO.win.x86
|
---|
| 310 | VBOX_PATH_ADDITIONS.win.x86 = $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
|
---|
[64935] | 311 | VBOX_PATH_ADDITIONS.win = $(VBOX_PATH_ADDITIONS.win.x86)
|
---|
[9639] | 312 | GUESTADDITIONS_FILESPEC.win.x86 = \
|
---|
[98416] | 313 | VBoxWindowsAdditions-x86.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxWindowsAdditions-x86.exe \
|
---|
| 314 | VBoxWindowsAdditions.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxWindowsAdditions.exe \
|
---|
| 315 | AUTORUN.INF=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/AUTORUN.INF \
|
---|
| 316 | cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxCertUtil.exe \
|
---|
| 317 | NT3x/Readme.txt=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/NT3xReadme.txt \
|
---|
| 318 | NT3x/VBoxGuest.sys=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxGuest.sys \
|
---|
| 319 | NT3x/VBoxMouseNT.sys=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxMouseNT.sys \
|
---|
| 320 | NT3x/VBoxService.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxService.exe \
|
---|
| 321 | NT3x/VBoxControl.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxControl.exe \
|
---|
| 322 | NT3x/VBoxAddInstallNt3x.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxAddInstallNt3x.exe
|
---|
[9639] | 323 | endif # win.x86
|
---|
[7228] | 324 |
|
---|
[64935] | 325 | if defined(VBOX_WITH_ADDITIONS_ISO.win.amd64) || defined(VBOX_WITH_ADDITIONS_ISO.win.x86)
|
---|
[96766] | 326 | # Note! This probably only work reliably when packing is also done on a windows host!
|
---|
[64938] | 327 | ifndef VBOX_SIGNING_MODE
|
---|
[64936] | 328 | GUESTADDITIONS_FILESPEC.win =
|
---|
[77769] | 329 | else if !defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !$(intersects win all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
|
---|
[96766] | 330 | GUESTADDITIONS_FILESPEC.win = \
|
---|
| 331 | cert/vbox.cer=$(VBOX_PATH_ADDITIONS.win)/vbox.cer \
|
---|
| 332 | cert/vbox-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-root.cer
|
---|
| 333 | ifdef VBOX_TSA_URL_ARGS
|
---|
| 334 | GUESTADDITIONS_FILESPEC.win += cert/vbox-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-timestamp-root.cer
|
---|
| 335 | endif
|
---|
[64935] | 336 | else
|
---|
| 337 | GUESTADDITIONS_FILESPEC.win = \
|
---|
[64936] | 338 | cert/vbox-sha1.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1.cer \
|
---|
[96766] | 339 | cert/vbox-sha1-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1-root.cer \
|
---|
| 340 | cert/vbox-sha256-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-root.cer \
|
---|
[64936] | 341 | cert/vbox-sha256.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256.cer
|
---|
[96766] | 342 | ifdef VBOX_TSA_URL_ARGS
|
---|
| 343 | GUESTADDITIONS_FILESPEC.win += cert/vbox-sha1-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1-timestamp-root.cer
|
---|
[64935] | 344 | endif
|
---|
[96766] | 345 | ifdef VBOX_TSA_SHA2_URL_ARGS
|
---|
| 346 | GUESTADDITIONS_FILESPEC.win += cert/vbox-sha256-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-timestamp-root.cer
|
---|
[96692] | 347 | endif
|
---|
[96766] | 348 | if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING))
|
---|
| 349 | GUESTADDITIONS_FILESPEC.win += \
|
---|
| 350 | cert/vbox-sha256-r3.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3.cer \
|
---|
| 351 | cert/vbox-sha256-r3-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3-root.cer \
|
---|
| 352 | cert/vbox-sha256-r3-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3-timestamp-root.cer
|
---|
[96692] | 353 | endif
|
---|
| 354 | endif
|
---|
[91529] | 355 | GUESTADDITIONS_FILESPEC.win += windows11-bypass.reg=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/tools/windows11-bypass.reg
|
---|
[64935] | 356 | endif
|
---|
| 357 |
|
---|
| 358 | # haiku
|
---|
[43363] | 359 | ifdef VBOX_WITH_ADDITIONS_ISO.haiku.x86
|
---|
| 360 | VBOX_PATH_ADDITIONS.haiku.x86 = $(PATH_OUT_BASE)/haiku.x86/$(KBUILD_TYPE)/bin/additions
|
---|
| 361 | # or bfs?
|
---|
| 362 | GUESTADDITIONS_FILESPEC.haiku.x86 = \
|
---|
[98416] | 363 | VBoxHaikuAdditions-x86.run=$(VBOX_PATH_ADDITIONS.haiku.x86)/VBoxHaikuAdditions-x86.run
|
---|
[43363] | 364 | endif
|
---|
[29317] | 365 |
|
---|
[68822] | 366 | # For the iso rule.
|
---|
| 367 | GUESTADDITIONS_FILESPEC_ALL = \
|
---|
| 368 | $(GUESTADDITIONS_FILESPEC.win) \
|
---|
| 369 | $(GUESTADDITIONS_FILESPEC.win.x86) \
|
---|
| 370 | $(GUESTADDITIONS_FILESPEC.win.amd64) \
|
---|
| 371 | $(GUESTADDITIONS_FILESPEC.solaris.x86) \
|
---|
| 372 | $(GUESTADDITIONS_FILESPEC.solaris.amd64) \
|
---|
| 373 | $(GUESTADDITIONS_FILESPEC.os2.x86) \
|
---|
| 374 | $(GUESTADDITIONS_FILESPEC.linux.x86) \
|
---|
| 375 | $(GUESTADDITIONS_FILESPEC.linux.amd64) \
|
---|
[100261] | 376 | $(if-expr defined(VBOX_WITH_LNX_ARM64_ADDITIONS),$(GUESTADDITIONS_FILESPEC.linux.arm64),) \
|
---|
[68822] | 377 | $(GUESTADDITIONS_FILESPEC.freebsd.x86) \
|
---|
| 378 | $(GUESTADDITIONS_FILESPEC.freebsd.amd64) \
|
---|
| 379 | $(GUESTADDITIONS_FILESPEC.haiku.x86) \
|
---|
| 380 | $(GUESTADDITIONS_FILESPEC.darwin.x86) \
|
---|
| 381 | $(GUESTADDITIONS_FILESPEC.darwin.amd64)
|
---|
[43363] | 382 |
|
---|
[7228] | 383 | #
|
---|
[1] | 384 | # Build the Guest Additions ISO image.
|
---|
| 385 | #
|
---|
[6053] | 386 | ifndef VBOX_WITHOUT_ADDITIONS_ISO
|
---|
[98416] | 387 | $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso: \
|
---|
| 388 | $(filter-out %=deleteme=,$(subst =,=deleteme= , $(GUESTADDITIONS_FILESPEC_ALL))) \
|
---|
| 389 | $(VBOX_SVN_REV_KMK) \
|
---|
| 390 | $(VBOX_PATH_ADDITIONS_SRC)/Makefile.kmk \
|
---|
| 391 | | $(if-expr defined(VBOX_USE_RTISOMAKER),$(VBOX_RTISOMAKER),)
|
---|
[68949] | 392 | $(call MSG_TOOL,RTIsoMaker,,$@)
|
---|
[6053] | 393 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
[68822] | 394 | $(VBOX_RTISOMAKER) \
|
---|
| 395 | --output $@ \
|
---|
| 396 | --iso-level 3 \
|
---|
| 397 | --rock-ridge \
|
---|
| 398 | --joliet \
|
---|
| 399 | --rational-attribs \
|
---|
[82002] | 400 | --random-order-verification 2048 \
|
---|
[68822] | 401 | $(addprefix /,$(GUESTADDITIONS_FILESPEC_ALL)) \
|
---|
[82002] | 402 | $(foreach spec, $(filter %.run %.sh %.tool,$(GUESTADDITIONS_FILESPEC_ALL)) \
|
---|
[68824] | 403 | , --chmod a+x:/$(substr $(spec), 1, $(expr $(pos =,$(spec)) - 1))) \
|
---|
[68822] | 404 | --volume-id="VBOXADDITIONS_$(VBOX_VERSION_STRING_RAW)_$(VBOX_SVN_REV)" \
|
---|
[82002] | 405 | --name-setup=joliet \
|
---|
[68832] | 406 | --volume-id="VBox_GAs_$(VBOX_VERSION_STRING_RAW)"
|
---|
[10162] | 407 |
|
---|
[98416] | 408 | $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.zip: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
|
---|
[45056] | 409 | $(call MSG_L1,Zipping image $@)
|
---|
| 410 | $(QUIET)$(RM) -f $@
|
---|
[67323] | 411 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_ADDITIONS_ISO) -- $(VBOX_ZIP) -9 $@ $(notdir $^)
|
---|
[29317] | 412 |
|
---|
[98416] | 413 | # Alias for creating the iso.
|
---|
| 414 | .PHONY: additions-iso
|
---|
| 415 | additions-iso: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
|
---|
[10162] | 416 |
|
---|
[6053] | 417 | endif
|
---|
[1] | 418 |
|
---|