VirtualBox

source: vbox/trunk/src/VBox/Additions/Makefile.kmk@ 97242

Last change on this file since 97242 was 96766, checked in by vboxsync, 2 years ago

Add/Nt/Installer,Add/Nt/Tools,Add/Makefile,/Config.kmk: Use bldRTSignTool to extract the root certificates and always ship+install them, except for the legacy TS CA which won't be installed on W10. bugref:8691

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.5 KB
Line 
1# $Id: Makefile.kmk 96766 2022-09-16 12:00:23Z vboxsync $
2## @file
3# Top-level makefile for the VirtualBox Guest Additions.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
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#
27
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Globals
33#
34VBOX_PATH_ADDITIONS_SRC := $(PATH_SUB_CURRENT)
35
36#
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#
46# Note! VBOX_WITH_ADDITIONS is checked for by our parent makefile.
47#
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#
55VBOX_WITH_ADDITIONS_ISO.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
56
57# Include sub-makefiles.
58include $(PATH_SUB_CURRENT)/common/Makefile.kmk
59
60ifdef VBOX_WITH_X11_ADDITIONS
61 include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
62endif
63
64ifeq ($(KBUILD_TARGET),freebsd)
65 include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
66endif
67ifeq ($(KBUILD_TARGET),linux)
68 include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
69endif
70ifeq ($(KBUILD_TARGET),os2)
71 include $(PATH_SUB_CURRENT)/os2/Makefile.kmk
72endif
73ifeq ($(KBUILD_TARGET),solaris)
74 include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
75endif
76ifeq ($(KBUILD_TARGET),win)
77 include $(PATH_SUB_CURRENT)/3D/win/VBoxWddmUmHlp/Makefile.kmk
78 ifdef VBOX_WITH_MESA3D
79 include $(PATH_SUB_CURRENT)/3D/Makefile.kmk
80 endif
81 include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
82endif
83ifeq ($(KBUILD_TARGET),darwin)
84 include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
85endif
86ifeq ($(KBUILD_TARGET),haiku)
87 include $(PATH_SUB_CURRENT)/haiku/Makefile.kmk
88endif
89
90ifeq ($(KBUILD_TARGET),linux)
91
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
98
99endif # KBUILD_TARGET == linux
100ifeq ($(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 = \
110 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf
111 VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
112 VBoxGuest-inf_BLDDIRS = $(PATH_TARGET)/VBoxGuestCat.dir
113
114 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
115 $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
116 $(call VBOX_EDIT_INF_FN,$<,$@)
117
118if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
119 VBoxGuest-inf_SOURCES += \
120 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
121 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat=>VBoxGuest-PreW10.cat \
122 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
123 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
124 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
125
126 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(VBoxGuest_1_TARGET) | $$(dir $$@)
127 $(INSTALL) -m 644 $< $(@D)
128
129 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(VBoxControl_1_TARGET) | $$(dir $$@)
130 $(INSTALL) -m 755 $< $(@D)
131
132 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe: $$(VBoxTray_1_TARGET) | $$(dir $$@)
133 $(INSTALL) -m 755 $< $(@D)
134
135 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
136 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
137 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
138 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
139 $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
140 $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
141 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
142 endif # signing
143endif # KBUILD_TARGET == win
144
145# The packing target rule, but only if we're on the local build box.
146# (VBOX_WITHOUT_ADDITIONS_ISO is used by the additions build box, see the root makefile.)
147ifndef VBOX_WITHOUT_ADDITIONS_ISO
148 PACKING += $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
149endif
150
151include $(FILE_KBUILD_SUB_FOOTER)
152
153#
154# File per-OS/arch file specs for the additions iso (alphabetical order).
155#
156# We test for the VBOX_WITH_ADDITIONS_ISO.os.arch so that we don't have to
157# do the $(if )'ing down where the GUESTADDITIONS_FILESPEC.os.arch down
158# in the dependency list and RTIsoMaker command.
159#
160
161# Darwin / Mac OS X
162## @todo Create .pkg files not run files. The build server shall create a combined packaged, goverend by
163# the VBOX_WITH_COMBINED_DARWIN_GUEST_PACKAGE macro.
164ifdef VBOX_WITH_ADDITIONS_ISO.darwin.x86
165VBOX_PATH_ADDITIONS.darwin.x86 = $(PATH_OUT_BASE)/darwin.x86/$(KBUILD_TYPE)/dist/additions
166GUESTADDITIONS_FILESPEC.darwin.x86 = \
167 VBoxDarwinAdditionsLegacy.pkg=$(VBOX_PATH_ADDITIONS.darwin.x86)/VBoxGuestAdditions.pkg
168 ifndef VBOX_WITH_ADDITIONS_ISO.darwin.amd64
169GUESTADDITIONS_FILESPEC.darwin.x86 += \
170 VBoxDarwinAdditionsUninstall.tool=$(VBOX_PATH_ADDITIONS.darwin.x86)/VBoxDarwinAdditionsUninstall.tool
171 endif
172endif
173
174ifdef VBOX_WITH_ADDITIONS_ISO.darwin.amd64
175VBOX_PATH_ADDITIONS.darwin.amd64 = $(PATH_OUT_BASE)/darwin.amd64/$(KBUILD_TYPE)/dist/additions
176GUESTADDITIONS_FILESPEC.darwin.amd64 = \
177 VBoxDarwinAdditions.pkg=$(VBOX_PATH_ADDITIONS.darwin.amd64)/VBoxGuestAdditions.pkg
178 ifndef VBOX_WITH_ADDITIONS_ISO.darwin.x86
179GUESTADDITIONS_FILESPEC.darwin.amd64 += \
180 VBoxDarwinAdditionsUninstall.tool=$(VBOX_PATH_ADDITIONS.darwin.amd64)/VBoxDarwinAdditionsUninstall.tool
181 endif
182endif
183
184# FreeBSD
185ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.amd64
186 VBOX_PATH_ADDITIONS.freebsd.amd64 = $(PATH_OUT_BASE)/freebsd.amd64/$(KBUILD_TYPE)/bin/additions
187 GUESTADDITIONS_FILESPEC.freebsd.amd64 = \
188 VBoxFreeBSDAdditions-amd64.tbz=$(VBOX_PATH_ADDITIONS.freebsd.amd64)/VBoxFreeBSDAdditions.tbz
189endif
190ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.x86
191 VBOX_PATH_ADDITIONS.freebsd.x86 = $(PATH_OUT_BASE)/freebsd.x86/$(KBUILD_TYPE)/bin/additions
192 GUESTADDITIONS_FILESPEC.freebsd.x86 = \
193 VBoxFreeBSDAdditions-x86.tbz=$(VBOX_PATH_ADDITIONS.freebsd.x86)/VBoxFreeBSDAdditions.tbz
194endif
195
196# GNU/Linux
197ifdef VBOX_WITH_ADDITIONS_ISO.linux.amd64
198 VBOX_PATH_ADDITIONS.linux.amd64 = $(PATH_OUT_BASE)/linux.amd64/$(KBUILD_TYPE)/bin/additions
199 ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
200 VBOX_LNX_ADD_AMD64_RUN_PKG=VBoxLinuxAdditions.run
201 else
202 VBOX_LNX_ADD_AMD64_RUN_PKG=VBoxLinuxAdditions-amd64.run
203 endif
204 GUESTADDITIONS_FILESPEC.linux.amd64 = \
205 $(VBOX_LNX_ADD_AMD64_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.amd64)/VBoxLinuxAdditions.run
206endif
207ifdef VBOX_WITH_ADDITIONS_ISO.linux.x86
208 VBOX_PATH_ADDITIONS.linux.x86 = $(PATH_OUT_BASE)/linux.x86/$(KBUILD_TYPE)/bin/additions
209## @todo 64-bit additions: rename this package, update docs (?) and tests (?). create wrapper? create gnome/kde autorun app (xplatform) ?
210 ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
211 VBOX_LNX_ADD_X86_RUN_PKG=VBoxLinuxAdditions.run
212 else
213 VBOX_LNX_ADD_X86_RUN_PKG=VBoxLinuxAdditions-x86.run
214 endif
215 GUESTADDITIONS_FILESPEC.linux.x86 = \
216 $(VBOX_LNX_ADD_X86_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.x86)/VBoxLinuxAdditions.run \
217 runasroot.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/runasroot.sh \
218 autorun.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/autorun.sh
219endif
220
221# IBM OS/2
222ifdef VBOX_WITH_ADDITIONS_ISO.os2.x86
223 VBOX_PATH_ADDITIONS.os2.x86 = $(PATH_OUT_BASE)/os2.x86/$(KBUILD_TYPE)/bin/additions
224 GUESTADDITIONS_FILESPEC.os2.x86 = \
225 OS2/VBoxGuest.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxGuest.sys \
226 OS2/VBoxSF.ifs=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxSF.ifs\
227 OS2/VBoxService.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxService.exe \
228 OS2/VBoxControl.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxControl.exe \
229 OS2/VBoxReplaceDll.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxReplaceDll.exe \
230 OS2/VBoxOs2AdditionsInstall.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxOs2AdditionsInstall.exe \
231 OS2/libc06.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc06.dll \
232 OS2/libc061.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc061.dll \
233 OS2/libc062.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc062.dll \
234 OS2/libc063.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc063.dll \
235 OS2/libc064.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc064.dll \
236 OS2/libc065.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc065.dll \
237 OS2/libc066.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc066.dll \
238 OS2/readme.txt=$(VBOX_PATH_ADDITIONS.os2.x86)/readme.txt \
239 \
240 OS2/gengradd.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/gengradd.dll \
241 OS2/VBoxMouse.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/vboxmouse.sys
242endif
243
244# Oracle Solaris.
245ifdef VBOX_WITH_ADDITIONS_ISO.solaris.amd64
246 VBOX_PATH_ADDITIONS.solaris.amd64 = $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
247 GUESTADDITIONS_FILESPEC.solaris.amd64 = \
248 VBoxSolarisAdditions-amd64.pkg=$(VBOX_PATH_ADDITIONS.solaris.amd64)/VBoxSolarisAdditions.pkg
249endif
250ifdef VBOX_WITH_ADDITIONS_ISO.solaris.x86
251 VBOX_PATH_ADDITIONS.solaris.x86 = $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
252 GUESTADDITIONS_FILESPEC.solaris.x86 = \
253 VBoxSolarisAdditions-x86.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
254endif
255ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
256 # Build combined 32bit and 64bit solaris additions, not just a single arch.
257 # This assumes that the 32bit build directory contains the combined additions
258 # for 32bit and 64bit solaris. This just modifies variables set above.
259 GUESTADDITIONS_FILESPEC.solaris.x86 = \
260 VBoxSolarisAdditions.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
261 GUESTADDITIONS_FILESPEC.solaris.amd64 =
262endif
263
264# Microsoft Windows.
265ifdef VBOX_WITH_ADDITIONS_ISO.win.amd64
266 VBOX_PATH_ADDITIONS.win.amd64 = $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
267 VBOX_PATH_ADDITIONS.win = $(VBOX_PATH_ADDITIONS.win.amd64)
268 GUESTADDITIONS_FILESPEC.win.amd64 = \
269 VBoxWindowsAdditions-amd64.exe=$(VBOX_PATH_ADDITIONS.win.amd64)/VBoxWindowsAdditions-amd64.exe
270 ifndef VBOX_WITH_ADDITIONS_ISO.win.x86
271 GUESTADDITIONS_FILESPEC.win.amd64 += \
272 cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.amd64)/VBoxCertUtil.exe
273 endif
274endif
275
276ifdef VBOX_WITH_ADDITIONS_ISO.win.x86
277 VBOX_PATH_ADDITIONS.win.x86 = $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
278 VBOX_PATH_ADDITIONS.win = $(VBOX_PATH_ADDITIONS.win.x86)
279 GUESTADDITIONS_FILESPEC.win.x86 = \
280 VBoxWindowsAdditions-x86.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxWindowsAdditions-x86.exe \
281 VBoxWindowsAdditions.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxWindowsAdditions.exe \
282 AUTORUN.INF=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/AUTORUN.INF \
283 cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxCertUtil.exe \
284 NT3x/Readme.txt=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/NT3xReadme.txt \
285 NT3x/VBoxGuest.sys=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxGuest.sys \
286 NT3x/VBoxMouseNT.sys=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxMouseNT.sys \
287 NT3x/VBoxService.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxService.exe \
288 NT3x/VBoxControl.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxControl.exe \
289 NT3x/VBoxAddInstallNt3x.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxAddInstallNt3x.exe
290endif # win.x86
291
292if defined(VBOX_WITH_ADDITIONS_ISO.win.amd64) || defined(VBOX_WITH_ADDITIONS_ISO.win.x86)
293 # Note! This probably only work reliably when packing is also done on a windows host!
294 ifndef VBOX_SIGNING_MODE
295 GUESTADDITIONS_FILESPEC.win =
296 else if !defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !$(intersects win all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
297 GUESTADDITIONS_FILESPEC.win = \
298 cert/vbox.cer=$(VBOX_PATH_ADDITIONS.win)/vbox.cer \
299 cert/vbox-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-root.cer
300 ifdef VBOX_TSA_URL_ARGS
301 GUESTADDITIONS_FILESPEC.win += cert/vbox-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-timestamp-root.cer
302 endif
303 else
304 GUESTADDITIONS_FILESPEC.win = \
305 cert/vbox-sha1.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1.cer \
306 cert/vbox-sha1-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1-root.cer \
307 cert/vbox-sha256-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-root.cer \
308 cert/vbox-sha256.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256.cer
309 ifdef VBOX_TSA_URL_ARGS
310 GUESTADDITIONS_FILESPEC.win += cert/vbox-sha1-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1-timestamp-root.cer
311 endif
312 ifdef VBOX_TSA_SHA2_URL_ARGS
313 GUESTADDITIONS_FILESPEC.win += cert/vbox-sha256-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-timestamp-root.cer
314 endif
315 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING))
316 GUESTADDITIONS_FILESPEC.win += \
317 cert/vbox-sha256-r3.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3.cer \
318 cert/vbox-sha256-r3-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3-root.cer \
319 cert/vbox-sha256-r3-timestamp-root.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3-timestamp-root.cer
320 endif
321 endif
322 GUESTADDITIONS_FILESPEC.win += windows11-bypass.reg=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/tools/windows11-bypass.reg
323endif
324
325# haiku
326ifdef VBOX_WITH_ADDITIONS_ISO.haiku.x86
327 VBOX_PATH_ADDITIONS.haiku.x86 = $(PATH_OUT_BASE)/haiku.x86/$(KBUILD_TYPE)/bin/additions
328 # or bfs?
329 GUESTADDITIONS_FILESPEC.haiku.x86 = \
330 VBoxHaikuAdditions-x86.run=$(VBOX_PATH_ADDITIONS.haiku.x86)/VBoxHaikuAdditions-x86.run
331endif
332
333# For the iso rule.
334GUESTADDITIONS_FILESPEC_ALL = \
335 $(GUESTADDITIONS_FILESPEC.win) \
336 $(GUESTADDITIONS_FILESPEC.win.x86) \
337 $(GUESTADDITIONS_FILESPEC.win.amd64) \
338 $(GUESTADDITIONS_FILESPEC.solaris.x86) \
339 $(GUESTADDITIONS_FILESPEC.solaris.amd64) \
340 $(GUESTADDITIONS_FILESPEC.os2.x86) \
341 $(GUESTADDITIONS_FILESPEC.linux.x86) \
342 $(GUESTADDITIONS_FILESPEC.linux.amd64) \
343 $(GUESTADDITIONS_FILESPEC.freebsd.x86) \
344 $(GUESTADDITIONS_FILESPEC.freebsd.amd64) \
345 $(GUESTADDITIONS_FILESPEC.haiku.x86) \
346 $(GUESTADDITIONS_FILESPEC.darwin.x86) \
347 $(GUESTADDITIONS_FILESPEC.darwin.amd64)
348
349#
350# Build the Guest Additions ISO image.
351#
352ifndef VBOX_WITHOUT_ADDITIONS_ISO
353$(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso: \
354 $(filter-out %=deleteme=,$(subst =,=deleteme= , $(GUESTADDITIONS_FILESPEC_ALL))) \
355 $(VBOX_SVN_REV_KMK) \
356 $(VBOX_PATH_ADDITIONS_SRC)/Makefile.kmk \
357 | $(if-expr defined(VBOX_USE_RTISOMAKER),$(VBOX_RTISOMAKER),)
358 $(call MSG_TOOL,RTIsoMaker,,$@)
359 $(QUIET)$(MKDIR) -p $(@D)
360 $(VBOX_RTISOMAKER) \
361 --output $@ \
362 --iso-level 3 \
363 --rock-ridge \
364 --joliet \
365 --rational-attribs \
366 --random-order-verification 2048 \
367 $(addprefix /,$(GUESTADDITIONS_FILESPEC_ALL)) \
368 $(foreach spec, $(filter %.run %.sh %.tool,$(GUESTADDITIONS_FILESPEC_ALL)) \
369 , --chmod a+x:/$(substr $(spec), 1, $(expr $(pos =,$(spec)) - 1))) \
370 --volume-id="VBOXADDITIONS_$(VBOX_VERSION_STRING_RAW)_$(VBOX_SVN_REV)" \
371 --name-setup=joliet \
372 --volume-id="VBox_GAs_$(VBOX_VERSION_STRING_RAW)"
373
374$(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.zip: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
375 $(call MSG_L1,Zipping image $@)
376 $(QUIET)$(RM) -f $@
377 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_ADDITIONS_ISO) -- $(VBOX_ZIP) -9 $@ $(notdir $^)
378
379# Alias for creating the iso.
380.PHONY: additions-iso
381additions-iso: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
382
383endif
384
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette