1 | # $Id: Makefile.kmk 45056 2013-03-18 11:39:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the VirtualBox Guest Additions.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2013 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Globals
|
---|
23 | #
|
---|
24 | VBOX_PATH_ADDITIONS_SRC := $(PATH_SUB_CURRENT)
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Cross building of the additions is generally done by remote building
|
---|
28 | # by means of smbfs, cifs, VBOX_ONLY_ADDITIONS=1 and setting KBUILD_TARGET
|
---|
29 | # and KBUILD_TARGET_ARCH to the desired target and architecture.
|
---|
30 | #
|
---|
31 | # Limited support for cross building the windows additions using wine
|
---|
32 | # is provided. There are a couple of issues with the approach (lack of
|
---|
33 | # signing, no VC++ 8 support, ++) that makes it unsuitable for releases.
|
---|
34 | #
|
---|
35 | #
|
---|
36 | # Note! VBOX_WITH_ADDITIONS is checked for by our parent makefile.
|
---|
37 | #
|
---|
38 | # Note! VBOX_WITH_X11_ADDITIONS is set in Config.kmk
|
---|
39 | #
|
---|
40 | # Note! The additions build box will set the VBOX_WITH_ADDITIONS_ISO.win.x86
|
---|
41 | # variables before invoking us from the root makefile.
|
---|
42 | #
|
---|
43 | # ==> All we have to worry about is what to do on the target we're on.
|
---|
44 | #
|
---|
45 | VBOX_WITH_ADDITIONS_ISO.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
|
---|
46 |
|
---|
47 | # Include sub-makefiles.
|
---|
48 | include $(PATH_SUB_CURRENT)/common/Makefile.kmk
|
---|
49 |
|
---|
50 | ifndef VBOX_ONLY_TESTSUITE
|
---|
51 | ifdef VBOX_WITH_X11_ADDITIONS
|
---|
52 | include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
|
---|
53 | endif
|
---|
54 |
|
---|
55 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
56 | include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
|
---|
57 | endif
|
---|
58 | ifeq ($(KBUILD_TARGET),linux)
|
---|
59 | include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
|
---|
60 | endif
|
---|
61 | ifeq ($(KBUILD_TARGET),os2)
|
---|
62 | include $(PATH_SUB_CURRENT)/os2/Makefile.kmk
|
---|
63 | endif
|
---|
64 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
65 | include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
|
---|
66 | endif
|
---|
67 | ifeq ($(KBUILD_TARGET),win)
|
---|
68 | include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
|
---|
69 | endif
|
---|
70 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
71 | include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
|
---|
72 | endif
|
---|
73 | ifeq ($(KBUILD_TARGET),haiku)
|
---|
74 | include $(PATH_SUB_CURRENT)/haiku/Makefile.kmk
|
---|
75 | endif
|
---|
76 |
|
---|
77 | ifeq ($(KBUILD_TARGET),linux)
|
---|
78 | INSTALLS += LnxAddIso-scripts
|
---|
79 | LnxAddIso-scripts_INST = $(INST_ADDITIONS)
|
---|
80 | LnxAddIso-scripts_MODE = a+rx,u+w
|
---|
81 | LnxAddIso-scripts_SOURCES = \
|
---|
82 | $(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh \
|
---|
83 | $(LnxAddIso-scripts_0_OUTDIR)/autorun.sh
|
---|
84 | LnxAddIso-scripts_CLEAN = \
|
---|
85 | $(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh \
|
---|
86 | $(LnxAddIso-scripts_0_OUTDIR)/autorun.sh
|
---|
87 |
|
---|
88 | $$(LnxAddIso-scripts_0_OUTDIR)/runasroot.sh: \
|
---|
89 | $(PATH_SUB_CURRENT)/../Installer/linux/runasroot.sh \
|
---|
90 | $(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
|
---|
91 | | $$(dir $$@)
|
---|
92 | $(QUIET)$(SED) \
|
---|
93 | -e '/#include sh-utils.sh/ {' \
|
---|
94 | -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
|
---|
95 | -e 'd' \
|
---|
96 | -e '}' \
|
---|
97 | --output $@ \
|
---|
98 | $<
|
---|
99 | $(QUIET)$(CHMOD) a+rx,u+w $@
|
---|
100 |
|
---|
101 | $$(LnxAddIso-scripts_0_OUTDIR)/autorun.sh: \
|
---|
102 | $(PATH_SUB_CURRENT)/linux/installer/autorun.sh \
|
---|
103 | $(PATH_SUB_CURRENT)/../Installer/linux/sh-utils.sh \
|
---|
104 | | $$(dir $$@)
|
---|
105 | $(QUIET)$(SED) \
|
---|
106 | -e '/#include sh-utils.sh/ {' \
|
---|
107 | -e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
|
---|
108 | -e 'd' \
|
---|
109 | -e '}' \
|
---|
110 | --output $@ \
|
---|
111 | $<
|
---|
112 | $(QUIET)$(CHMOD) a+rx,u+w $@
|
---|
113 | endif # KBUILD_TARGET == linux
|
---|
114 | ifeq ($(KBUILD_TARGET),win)
|
---|
115 | #
|
---|
116 | # Inf2Cat requires all the files referenced in the .inf file
|
---|
117 | # to be present in the directory, so we have to do this from here,
|
---|
118 | # since VBoxGuest.sys is being built from the common sources.
|
---|
119 | #
|
---|
120 | INSTALLS += VBoxGuest-inf
|
---|
121 | VBoxGuest-inf_INST = $(INST_ADDITIONS)
|
---|
122 | VBoxGuest-inf_MODE = a+r,u+w
|
---|
123 | VBoxGuest-inf_SOURCES = \
|
---|
124 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf
|
---|
125 | ifdef VBOX_SIGN_ADDITIONS
|
---|
126 | VBoxGuest-inf_SOURCES += \
|
---|
127 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat \
|
---|
128 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
129 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
130 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
|
---|
131 | endif # signing
|
---|
132 | VBoxGuest-inf_CLEAN = $(VBoxGuest-inf_SOURCES)
|
---|
133 | VBoxGuest-inf_BLDDIRS = \
|
---|
134 | $(PATH_TARGET)/VBoxGuestCat.dir
|
---|
135 |
|
---|
136 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf: $(PATH_SUB_CURRENT)/common/VBoxGuest/win/VBoxGuest.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
137 | $(call MSG_GENERATE,VBoxGuest-inf,$@,$<)
|
---|
138 | $(call VBOX_EDIT_INF_FN,$<,$@)
|
---|
139 |
|
---|
140 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys: $$(VBoxGuest_1_TARGET) | $$(dir $$@)
|
---|
141 | $(INSTALL) -m 644 $< $(@D)
|
---|
142 |
|
---|
143 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe: $$(VBoxControl_1_TARGET) | $$(dir $$@)
|
---|
144 | $(INSTALL) -m 755 $< $(@D)
|
---|
145 |
|
---|
146 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe: $$(VBoxTray_1_TARGET) | $$(dir $$@)
|
---|
147 | $(INSTALL) -m 755 $< $(@D)
|
---|
148 |
|
---|
149 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.cat: \
|
---|
150 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.inf \
|
---|
151 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxGuest.sys \
|
---|
152 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxControl.exe \
|
---|
153 | $(PATH_TARGET)/VBoxGuestCat.dir/VBoxTray.exe
|
---|
154 | $(call MSG_TOOL,Inf2Cat,VBoxGuest-inf,$@,$<)
|
---|
155 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
156 | endif # KBUILD_TARGET == win
|
---|
157 |
|
---|
158 | # The packing target rule, but only if we're on the local build box.
|
---|
159 | # (VBOX_WITHOUT_ADDITIONS_ISO is used by the additions build box, see the root makefile.)
|
---|
160 | ifndef VBOX_WITHOUT_ADDITIONS_ISO
|
---|
161 | PACKING += $(PATH_STAGE_BIN)/additions/VBoxGuestAdditions.zip
|
---|
162 | endif
|
---|
163 | endif # !VBOX_ONLY_TESTSUITE
|
---|
164 |
|
---|
165 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
166 |
|
---|
167 | #
|
---|
168 | # File per-OS/arch file specs for the additions iso (alphabetical order).
|
---|
169 | #
|
---|
170 | # We test for the VBOX_WITH_ADDITIONS_ISO.os.arch so that we don't have to
|
---|
171 | # do the $(if )'ing down where the GUESTADDITIONS_FILESPEC.os.arch down
|
---|
172 | # in the dependency list and mkisofs command.
|
---|
173 | #
|
---|
174 |
|
---|
175 | # Darwin / Mac OS X
|
---|
176 | ifdef VBOX_WITH_ADDITIONS_ISO.darwin.x86
|
---|
177 | VBOX_PATH_ADDITIONS.darwin.x86 = $(PATH_OUT_BASE)/darwin.x86/$(KBUILD_TYPE)/bin/additions
|
---|
178 | # or dmg?
|
---|
179 | GUESTADDITIONS_FILESPEC.darwin.x86 = \
|
---|
180 | VBoxDarwinAdditions-x86.run=$(VBOX_PATH_ADDITIONS.darwin.x86)/VBoxDarwinAdditions-x86.run
|
---|
181 | endif
|
---|
182 |
|
---|
183 | ifdef VBOX_WITH_ADDITIONS_ISO.darwin.amd64
|
---|
184 | VBOX_PATH_ADDITIONS.darwin.amd64 = $(PATH_OUT_BASE)/darwin.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
185 | GUESTADDITIONS_FILESPEC.darwin.amd64 = \
|
---|
186 | VBoxDarwinAdditions-amd64.run=$(VBOX_PATH_ADDITIONS.darwin.amd64)/VBoxDarwinAdditions-amd64.run
|
---|
187 | endif
|
---|
188 |
|
---|
189 | # FreeBSD
|
---|
190 | ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.amd64
|
---|
191 | VBOX_PATH_ADDITIONS.freebsd.amd64 = $(PATH_OUT_BASE)/freebsd.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
192 | GUESTADDITIONS_FILESPEC.freebsd.amd64 = \
|
---|
193 | VBoxFreeBSDAdditions-amd64.tbz=$(VBOX_PATH_ADDITIONS.freebsd.amd64)/VBoxFreeBSDAdditions.tbz
|
---|
194 | endif
|
---|
195 | ifdef VBOX_WITH_ADDITIONS_ISO.freebsd.x86
|
---|
196 | VBOX_PATH_ADDITIONS.freebsd.x86 = $(PATH_OUT_BASE)/freebsd.x86/$(KBUILD_TYPE)/bin/additions
|
---|
197 | GUESTADDITIONS_FILESPEC.freebsd.x86 = \
|
---|
198 | VBoxFreeBSDAdditions-x86.tbz=$(VBOX_PATH_ADDITIONS.freebsd.x86)/VBoxFreeBSDAdditions.tbz
|
---|
199 | endif
|
---|
200 |
|
---|
201 | # GNU/Linux
|
---|
202 | ifdef VBOX_WITH_ADDITIONS_ISO.linux.amd64
|
---|
203 | VBOX_PATH_ADDITIONS.linux.amd64 = $(PATH_OUT_BASE)/linux.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
204 | ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
|
---|
205 | VBOX_LNX_ADD_AMD64_RUN_PKG=VBoxLinuxAdditions.run
|
---|
206 | else
|
---|
207 | VBOX_LNX_ADD_AMD64_RUN_PKG=VBoxLinuxAdditions-amd64.run
|
---|
208 | endif
|
---|
209 | GUESTADDITIONS_FILESPEC.linux.amd64 = \
|
---|
210 | $(VBOX_LNX_ADD_AMD64_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.amd64)/VBoxLinuxAdditions.run
|
---|
211 | endif
|
---|
212 | ifdef VBOX_WITH_ADDITIONS_ISO.linux.x86
|
---|
213 | VBOX_PATH_ADDITIONS.linux.x86 = $(PATH_OUT_BASE)/linux.x86/$(KBUILD_TYPE)/bin/additions
|
---|
214 | ## @todo 64-bit additions: rename this package, update docs (?) and tests (?). create wrapper? create gnome/kde autorun app (xplatform) ?
|
---|
215 | ifdef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
|
---|
216 | VBOX_LNX_ADD_X86_RUN_PKG=VBoxLinuxAdditions.run
|
---|
217 | else
|
---|
218 | VBOX_LNX_ADD_X86_RUN_PKG=VBoxLinuxAdditions-x86.run
|
---|
219 | endif
|
---|
220 | GUESTADDITIONS_FILESPEC.linux.x86 = \
|
---|
221 | $(VBOX_LNX_ADD_X86_RUN_PKG)=$(VBOX_PATH_ADDITIONS.linux.x86)/VBoxLinuxAdditions.run \
|
---|
222 | runasroot.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/runasroot.sh \
|
---|
223 | autorun.sh=$(VBOX_PATH_ADDITIONS.linux.x86)/autorun.sh
|
---|
224 | endif
|
---|
225 |
|
---|
226 | # IBM OS/2
|
---|
227 | ifdef VBOX_WITH_ADDITIONS_ISO.os2.x86
|
---|
228 | VBOX_PATH_ADDITIONS.os2.x86 = $(PATH_OUT_BASE)/os2.x86/$(KBUILD_TYPE)/bin/additions
|
---|
229 | GUESTADDITIONS_FILESPEC.os2.x86 = \
|
---|
230 | OS2/VBoxGuest.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxGuest.sys \
|
---|
231 | OS2/VBoxService.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxService.exe \
|
---|
232 | OS2/VBoxControl.exe=$(VBOX_PATH_ADDITIONS.os2.x86)/VBoxControl.exe \
|
---|
233 | OS2/libc06.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc06.dll \
|
---|
234 | OS2/libc061.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc061.dll \
|
---|
235 | OS2/libc062.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc062.dll \
|
---|
236 | OS2/libc063.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc063.dll \
|
---|
237 | OS2/libc064.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc064.dll \
|
---|
238 | OS2/libc065.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/libc065.dll \
|
---|
239 | OS2/readme.txt=$(VBOX_PATH_ADDITIONS.os2.x86)/readme.txt \
|
---|
240 | \
|
---|
241 | OS2/gengradd.dll=$(VBOX_PATH_ADDITIONS.os2.x86)/gengradd.dll \
|
---|
242 | OS2/vboxmouse.sys=$(VBOX_PATH_ADDITIONS.os2.x86)/vboxmouse.sys
|
---|
243 | endif
|
---|
244 |
|
---|
245 | # Oracle Solaris.
|
---|
246 | ifdef VBOX_WITH_ADDITIONS_ISO.solaris.amd64
|
---|
247 | VBOX_PATH_ADDITIONS.solaris.amd64 = $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
248 | GUESTADDITIONS_FILESPEC.solaris.amd64 = \
|
---|
249 | VBoxSolarisAdditions-amd64.pkg=$(VBOX_PATH_ADDITIONS.solaris.amd64)/VBoxSolarisAdditions.pkg
|
---|
250 | endif
|
---|
251 | ifdef VBOX_WITH_ADDITIONS_ISO.solaris.x86
|
---|
252 | VBOX_PATH_ADDITIONS.solaris.x86 = $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
|
---|
253 | GUESTADDITIONS_FILESPEC.solaris.x86 = \
|
---|
254 | VBoxSolarisAdditions-x86.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
|
---|
255 | endif
|
---|
256 | ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
|
---|
257 | # Build combined 32bit and 64bit solaris additions, not just a single arch.
|
---|
258 | # This assumes that the 32bit build directory contains the combined additions
|
---|
259 | # for 32bit and 64bit solaris. This just modifies variables set above.
|
---|
260 | GUESTADDITIONS_FILESPEC.solaris.x86 = \
|
---|
261 | VBoxSolarisAdditions.pkg=$(VBOX_PATH_ADDITIONS.solaris.x86)/VBoxSolarisAdditions.pkg
|
---|
262 | GUESTADDITIONS_FILESPEC.solaris.amd64 =
|
---|
263 | endif
|
---|
264 |
|
---|
265 | # Microsoft Windows.
|
---|
266 | ifdef VBOX_WITH_ADDITIONS_ISO.win.amd64
|
---|
267 | VBOX_PATH_ADDITIONS.win.amd64 = $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
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/oracle-vbox.cer=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/tools/oracle-vbox.cer \
|
---|
273 | cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.amd64)/VBoxCertUtil.exe
|
---|
274 | endif
|
---|
275 | endif
|
---|
276 |
|
---|
277 | ifdef VBOX_WITH_ADDITIONS_ISO.win.x86
|
---|
278 | VBOX_PATH_ADDITIONS.win.x86 = $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
|
---|
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 | 32Bit/Readme.txt=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/ReadmeDrivers.txt \
|
---|
284 | 64Bit/Readme.txt=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/Installer/ISO/ReadmeDrivers.txt \
|
---|
285 | cert/oracle-vbox.cer=$(VBOX_PATH_ADDITIONS_SRC)/WINNT/tools/oracle-vbox.cer \
|
---|
286 | cert/VBoxCertUtil.exe=$(VBOX_PATH_ADDITIONS.win.x86)/VBoxCertUtil.exe
|
---|
287 | endif # win.x86
|
---|
288 |
|
---|
289 | ifdef VBOX_WITH_ADDITIONS_ISO.haiku.x86
|
---|
290 | VBOX_PATH_ADDITIONS.haiku.x86 = $(PATH_OUT_BASE)/haiku.x86/$(KBUILD_TYPE)/bin/additions
|
---|
291 | # or bfs?
|
---|
292 | GUESTADDITIONS_FILESPEC.haiku.x86 = \
|
---|
293 | VBoxHaikuAdditions-x86.run=$(VBOX_PATH_ADDITIONS.haiku.x86)/VBoxHaikuAdditions-x86.run
|
---|
294 | endif
|
---|
295 |
|
---|
296 |
|
---|
297 | #
|
---|
298 | # Build the Guest Additions ISO image.
|
---|
299 | #
|
---|
300 | ifndef VBOX_WITHOUT_ADDITIONS_ISO
|
---|
301 | $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso: \
|
---|
302 | $(filter-out %=deleteme=,\
|
---|
303 | $(subst =,=deleteme= ,\
|
---|
304 | $(GUESTADDITIONS_FILESPEC.win.x86) \
|
---|
305 | $(GUESTADDITIONS_FILESPEC.win.amd64) \
|
---|
306 | $(GUESTADDITIONS_FILESPEC.solaris.x86) \
|
---|
307 | $(GUESTADDITIONS_FILESPEC.solaris.amd64) \
|
---|
308 | $(GUESTADDITIONS_FILESPEC.os2.x86) \
|
---|
309 | $(GUESTADDITIONS_FILESPEC.linux.x86) \
|
---|
310 | $(GUESTADDITIONS_FILESPEC.linux.amd64) \
|
---|
311 | $(GUESTADDITIONS_FILESPEC.freebsd.x86) \
|
---|
312 | $(GUESTADDITIONS_FILESPEC.freebsd.amd64) \
|
---|
313 | $(GUESTADDITIONS_FILESPEC.haiku.x86) \
|
---|
314 | $(GUESTADDITIONS_FILESPEC.darwin.x86) \
|
---|
315 | $(GUESTADDITIONS_FILESPEC.darwin.amd64) \
|
---|
316 | )\
|
---|
317 | ) \
|
---|
318 | $(VBOX_SVN_REV_KMK) \
|
---|
319 | $(VBOX_PATH_ADDITIONS_SRC)/Makefile.kmk
|
---|
320 | $(call MSG_TOOL,mkisofs,,$@)
|
---|
321 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
322 | @# use iso-level 3 which is the most ISO conforming level with least restrictions; iso-level 4 maps to iso-level 2
|
---|
323 | @# with some extra restrictions removal (not conforming to ISO9660) which some platforms like Solaris 10 does not like.
|
---|
324 | $(VBOX_MKISOFS) -rational-rock -joliet -iso-level 3 \
|
---|
325 | -volid "VBOXADDITIONS_$(VBOX_VERSION_STRING_RAW)_$(VBOX_SVN_REV)" -l -graft-points -o $@ \
|
---|
326 | $(GUESTADDITIONS_FILESPEC.win) \
|
---|
327 | $(GUESTADDITIONS_FILESPEC.win.x86) \
|
---|
328 | $(GUESTADDITIONS_FILESPEC.win.amd64) \
|
---|
329 | $(GUESTADDITIONS_FILESPEC.solaris.x86) \
|
---|
330 | $(GUESTADDITIONS_FILESPEC.solaris.amd64) \
|
---|
331 | $(GUESTADDITIONS_FILESPEC.os2.x86) \
|
---|
332 | $(GUESTADDITIONS_FILESPEC.linux.x86) \
|
---|
333 | $(GUESTADDITIONS_FILESPEC.linux.amd64) \
|
---|
334 | $(GUESTADDITIONS_FILESPEC.freebsd.x86) \
|
---|
335 | $(GUESTADDITIONS_FILESPEC.freebsd.amd64) \
|
---|
336 | $(GUESTADDITIONS_FILESPEC.haiku.x86) \
|
---|
337 | $(GUESTADDITIONS_FILESPEC.darwin.x86) \
|
---|
338 | $(GUESTADDITIONS_FILESPEC.darwin.amd64)
|
---|
339 |
|
---|
340 | $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.zip: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso
|
---|
341 | $(call MSG_L1,Zipping image $@)
|
---|
342 | $(QUIET)$(RM) -f $@
|
---|
343 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_ADDITIONS_ISO) -- zip$(HOSTSUFF_EXE) -9 $@ $(notdir $^)
|
---|
344 |
|
---|
345 | # Alias for creating the iso.
|
---|
346 | .PHONY: additions-iso
|
---|
347 | additions-iso: $(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.zip
|
---|
348 |
|
---|
349 | endif
|
---|
350 |
|
---|