VirtualBox

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

Last change on this file since 34575 was 33656, checked in by vboxsync, 14 years ago

*: rebrand Sun (L)GPL disclaimers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 38.3 KB
Line 
1# $Id: Makefile.kmk 33656 2010-11-01 14:18:11Z vboxsync $
2## @file
3# Makefile for the Solaris guest additions base directory.
4#
5
6#
7# Copyright (C) 2008 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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30ifneq ($(KBUILD_HOST),solaris)
31$(error "The Solaris guest additions installer can only be built on Solaris!")
32endif
33
34ifeq ($(KBUILD_HOST),solaris)
35 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
36 include $(PATH_SUB_CURRENT)/DRM/Makefile.kmk
37endif
38
39ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
40 VBOX_WITH_COMBINED_GUEST_PACKAGE := 1
41endif
42
43PKGFILENAME := VBoxSolarisAdditions.pkg
44PKGINFO_ARCH = $(shell uname -p)
45PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
46VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
47VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/Installer
48
49SOLARIS_ADDDIR_NAME_64 := amd64
50SOLARIS_ADDDIR_NAME_32 := i386
51
52SOLARIS_ADDINST_OUT_DIR := $(PATH_TARGET)/AdditionsInstaller
53SOLARIS_VBOXADDINST_SUBDIR := /opt/VirtualBoxAdditions
54SOLARIS_VBOXADDINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)$(SOLARIS_VBOXADDINST_SUBDIR)
55SOLARIS_VBOXADDINST_DIR_32 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_32)
56SOLARIS_VBOXADDINST_DIR_64 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_64)
57
58SOLARIS_ADD_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
59SOLARIS_ADD_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
60SOLARIS_ADD_OUT_BIN_ISA := $(PATH_OUT_BASE)/solaris.$(KBUILD_TARGET_ARCH)/$(KBUILD_TYPE)/bin/additions
61
62SOLARIS_ADD_DRIVERINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/kernel/drv
63SOLARIS_ADD_DRIVERINST_DIR_32 := $(SOLARIS_ADD_DRIVERINST_DIR)
64SOLARIS_ADD_DRIVERINST_DIR_64 := $(SOLARIS_ADD_DRIVERINST_DIR)/amd64
65
66SOLARIS_ADD_SYSLIBINST_DIR_32 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib
67SOLARIS_ADD_SYSLIBINST_DIR_64 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib/amd64
68
69SOLARIS_ADD_USRBIN_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/bin
70SOLARIS_ADD_ETCFS_DIR := $(SOLARIS_ADDINST_OUT_DIR)/etc/fs/vboxfs
71SOLARIS_ADD_SERVICESINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/var/svc/manifest/system/virtualbox
72
73ifeq ($(KBUILD_TARGET_ARCH),x86)
74 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_32)
75 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_32)
76 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_32)
77 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_32)
78else
79 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_64)
80 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_64)
81 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_64)
82 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_64)
83endif
84
85ifeq ($(KBUILD_TYPE),debug)
86 BIN_COPY := $(CP) -f
87 BIN_COPY_SYMBOLS := $(CP) -f
88else
89 BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
90 BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
91 VBOX_COMPRESS := compress -f
92endif
93
94INSTALLS += solaris-addcommon solaris-addcommonbins
95PROGRAMS += VBoxAddISAExec
96PACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
97OTHER_CLEAN += $(PACKING) $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
98
99#
100# VBoxAddISAExec
101#
102VBoxAddISAExec_TEMPLATE = VBOXR3EXE
103VBoxAddISAExec_NAME = VBoxISAExec
104VBoxAddISAExec_INST = $(INST_ADDITIONS)
105VBoxAddISAExec_DEPS = $(VBOX_SVN_REV_KMK)
106VBoxAddISAExec_SOURCES = $(PATH_ROOT)/src/VBox/Installer/solaris/VBoxISAExec.c
107
108#
109# Install to $(PATH_BIN)/additions/ files from various source paths (to pack them using rules)
110#
111solaris-addcommonbins_INST = bin/additions/
112solaris-addcommonbins_MODE = a+rx,u+w
113solaris-addcommonbins_SOURCES = \
114 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
115 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
116 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
117 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
118 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient=>1099.vboxclient \
119 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
120 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
121 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh
122
123solaris-addcommon_INST = bin/additions/
124solaris-addcommon_MODE = a+r,u+w
125solaris-addcommon_SOURCES = \
126 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf=>vboxguest.conf \
127 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop \
128 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml
129
130#
131# Create full directory tree
132#
133BLDDIRS += \
134 $(SOLARIS_ADDINST_OUT_DIR) \
135 $(addprefix $(SOLARIS_ADDINST_OUT_DIR)/,\
136 opt \
137 opt/VirtualBoxAdditions \
138 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_32) \
139 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_64) \
140 usr \
141 usr/bin \
142 usr/lib \
143 usr/lib/amd64 \
144 usr/kernel \
145 usr/kernel/drv \
146 usr/kernel/drv/amd64 \
147 var \
148 var/svc \
149 var/svc/manifest \
150 var/svc/manifest/system \
151 var/svc/manifest/system/virtualbox \
152 )
153
154SOLARIS_ADD_STRIP_BINS = \
155 VBoxClient \
156 VBoxService \
157 VBoxControl \
158 vboxfsmount \
159 vboxfs \
160 $(if ($VBOX_WITH_PAM),pam_vbox.so,) \
161 $(if $(VBOX_OSE),,vboxfs_s10)
162
163SOLARIS_ADD_SYSLIBS = \
164 VBoxOGL.so \
165 VBoxOGLcrutil.so \
166 VBoxOGLfeedbackspu.so \
167 VBoxOGLpassthroughspu.so \
168 VBoxOGLarrayspu.so \
169 VBoxOGLerrorspu.so \
170 VBoxOGLpackspu.so
171
172SOLARIS_ADD_DRIVERS = \
173 vboxguest
174
175SOLARIS_ADD_DRIVERS_CONF = \
176 vboxguest.conf
177
178SOLARIS_ADD_XORG_DRIVERS = \
179 vboxmouse_drv_14.so \
180 vboxmouse_drv_15.so \
181 vboxmouse_drv_16.so \
182 vboxmouse_drv_17.so \
183 vboxmouse_drv_70.so \
184 vboxmouse_drv_71.so \
185 vboxvideo_drv_13.so \
186 vboxvideo_drv_14.so \
187 vboxvideo_drv_15.so \
188 vboxvideo_drv_16.so \
189 vboxvideo_drv_17.so \
190 vboxvideo_drv_70.so \
191 vboxvideo_drv_71.so
192
193SOLARIS_ADD_COMMON_BINS = \
194 vboxguest.sh \
195 x11config.pl \
196 x11config15sol.pl \
197 x11restore.pl \
198 VBox.sh \
199 1099.vboxclient \
200 VBoxISAExec
201
202SOLARIS_ADD_USRBIN_LINKS = \
203 VBoxService \
204 VBoxClient \
205 VBoxControl
206
207SOLARIS_ADD_COMMON = \
208 vboxclient.desktop \
209 solaris_xorg.conf \
210 solaris_xorg_modeless.conf
211
212SOLARIS_ADD_SERVICES = \
213 vboxservice.xml
214
215ifdef VBOX_COMPRESS
216 SOLARIS_ADD_COMPRESS_FILES = \
217 $(SOLARIS_ADD_XORG_DRIVERS) \
218 VBoxService \
219 VBoxClient \
220 VBoxControl
221endif
222
223ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
224 SOLARIS_ARCH_ADD_DEPFILES = \
225 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)) \
226 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)) \
227 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)) \
228 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)) \
229 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)) \
230 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)) \
231 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
232 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS))
233else
234 SOLARIS_ARCH_ADD_DEPFILES = \
235 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_STRIP_BINS)) \
236 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_ISA)/,$(SOLARIS_ADD_SYSLIBS)) \
237 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_ISA)/,$(SOLARIS_ADD_DRIVERS)) \
238 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
239 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_XORG_DRIVERS))
240endif
241
242SOLARIS_ARCH_ADD_DEPFILES += \
243 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)) \
244 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)) \
245 $(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)) \
246 $(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS))
247
248
249
250include $(KBUILD_PATH)/subfooter.kmk
251
252#
253# -=-=-=-=-=-=-=- Additions package -=-=-=-=-=-=-=-
254#
255
256$(PATH_BIN)/additions/$(PKGFILENAME): \
257 $(VBOX_VERSION_STAMP) \
258 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
259 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
260 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
261 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
262 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
263 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
264 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
265 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
266 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
267 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
268 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
269 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
270 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
271 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
272 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
273 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
274 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk \
275 $(SOLARIS_ARCH_ADD_DEPFILES)
276 $(call MSG_L1,Installing guest additions)
277 $(QUIET)$(SED) \
278 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
279 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
280 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
281 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
282 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
283 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
284 --output $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.pkginfo \
285 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
286 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh
287 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADDINST_OUT_DIR)/postinstall.sh
288 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADDINST_OUT_DIR)/preremove.sh
289 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.space
290 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.depend
291 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.copyright)
292 $(call MSG_L1,Creating install package: $@)
293 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_ETCFS_DIR)
294 $(QUIET)$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/1099.vboxclient $(SOLARIS_ADD_USRBIN_DIR)/VBoxClient-all
295ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
296 ifdef VBOX_COMPRESS
297 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_COMPRESS_FILES))
298 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_COMPRESS_FILES))
299 endif
300 $(QUIET)$(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_32)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
301else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
302 ifdef VBOX_COMPRESS
303 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES))
304 endif
305 $(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_ISA)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
306endif
307 $(QUIET)$(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR) $(PKGFILENAME) $(VBOX_SVN_REV)
308 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
309 $(QUIET)$(RM) -f $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
310
311
312
313#
314# -=-=-=-=-=-=-=- Package rules -=-=-=-=-=-=-=-
315#
316
317#
318# 32-bit files
319#
320$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)): \
321 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
322 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
323
324$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)): \
325 $(SOLARIS_ADD_SYSLIBINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
326 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
327
328$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)): \
329 $(SOLARIS_ADD_DRIVERINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
330 $(INSTALL) -m 0644 $< $@
331
332$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
333 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
334 $(BIN_COPY) $< $@
335
336
337#
338# 64-bit files
339#
340$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)): \
341 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
342 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
343
344$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_64)/,$(SOLARIS_ADD_SYSLIBS)): \
345 $(SOLARIS_ADD_SYSLIBINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
346 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
347
348$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)): \
349 $(SOLARIS_ADD_DRIVERINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
350 $(INSTALL) -m 0644 $< $@
351
352$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
353 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
354 $(BIN_COPY) $< $@
355
356
357#
358# Common files
359#
360$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)): \
361 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
362 $(INSTALL) -m 0644 $< $@
363
364#
365# Common binaries/shell scripts
366#
367$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)): \
368 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
369 $(INSTALL) -m 0755 $< $@
370
371#
372# Driver .conf files
373#
374$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)): \
375 $(SOLARIS_ADD_DRIVERINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
376 $(INSTALL) -m 0644 $< $@
377
378#
379# SMF Service files
380#
381$(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)): \
382 $(SOLARIS_ADD_SERVICESINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
383 $(INSTALL) -m 0644 $< $@
384
385#
386# Symlinks from /usr/bin/ to /opt/VirtualBoxAdditions
387#
388$(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS)): \
389 $(SOLARIS_ADD_USRBIN_DIR)/% : % | $$(dir $$@)
390 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/$< $@
391
392
393
394#
395# @todo Delete once the new packaging works
396#
397ifdef OBSOLETE_PACKAGING
398#
399# If we are doing a combined package (x86+amd64) include the binaries from both
400# architectures otherwise use the one from $(PATH_BIN)/additions
401#
402VBOX_CROGL_FILES = \
403 VBoxOGL.so \
404 VBoxOGLcrutil.so \
405 VBoxOGLfeedbackspu.so \
406 VBoxOGLpassthroughspu.so \
407 VBoxOGLarrayspu.so \
408 VBoxOGLerrorspu.so \
409 VBoxOGLpackspu.so
410VBOX_CROGL_FILES_32 = $(addprefix $(SOLARIS_ADD_BIN_32)/,$(VBOX_CROGL_FILES))
411VBOX_CROGL_FILES_64 = $(addprefix $(SOLARIS_ADD_BIN_64)/,$(VBOX_CROGL_FILES))
412VBOX_CROGL_FILES_ISA = $(addprefix $(SOLARIS_ADD_BIN)/,$(VBOX_CROGL_FILES))
413
414ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
415 SOLARIS_ADD_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
416 SOLARIS_ADD_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
417 SOLARIS_ADD_INST_DIR_64 := $(SOLARIS_ADD_INST_DIR)/amd64
418 SOLARIS_ADD_INST_DIR_32 := $(SOLARIS_ADD_INST_DIR)
419 VBOX_SOLPACKFILES = \
420 $(SOLARIS_ADD_BIN_64)/vboxguest \
421 $(SOLARIS_ADD_BIN_64)/vboxfs \
422 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_64)/vboxfs_s10) \
423 $(SOLARIS_ADD_BIN_64)/VBoxClient \
424 $(SOLARIS_ADD_BIN_64)/VBoxService \
425 $(SOLARIS_ADD_BIN_64)/VBoxControl \
426 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_13.so \
427 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_14.so \
428 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_15.so \
429 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_16.so \
430 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_17.so \
431 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_70.so \
432 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_71.so \
433 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_14.so \
434 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_15.so \
435 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_16.so \
436 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_17.so \
437 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_70.so \
438 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_71.so \
439 $(SOLARIS_ADD_BIN_32)/vboxguest \
440 $(SOLARIS_ADD_BIN_32)/vboxfs \
441 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_32)/vboxfs_s10) \
442 $(SOLARIS_ADD_BIN_32)/vboxfsmount \
443 $(SOLARIS_ADD_BIN_32)/VBoxClient \
444 $(SOLARIS_ADD_BIN_32)/VBoxService \
445 $(SOLARIS_ADD_BIN_32)/VBoxControl \
446 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_13.so \
447 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_14.so \
448 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_15.so \
449 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_16.so \
450 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_17.so \
451 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_70.so \
452 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_71.so \
453 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_14.so \
454 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_15.so \
455 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_16.so \
456 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_17.so \
457 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_70.so \
458 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_71.so
459 ifdef VBOX_WITH_CROGL
460 VBOX_SOLPACKFILES += \
461 $(VBOX_CROGL_FILES_32) \
462 $(VBOX_CROGL_FILES_64)
463 endif
464else
465 SOLARIS_ADD_BIN := $(PATH_BIN)/additions
466 ifeq ($(KBUILD_TARGET_ARCH),x86)
467 SOLARIS_ADD_INST_DIR_ISA := $(SOLARIS_ADD_INST_DIR)
468 else
469 SOLARIS_ADD_INST_DIR_ISA := $(SOLARIS_ADD_INST_DIR)/amd64
470 endif
471 VBOX_SOLPACKFILES = \
472 $(SOLARIS_ADD_BIN)/vboxguest \
473 $(SOLARIS_ADD_BIN)/vboxfs \
474 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN)/vboxfs_s10) \
475 $(SOLARIS_ADD_BIN)/vboxfsmount \
476 $(SOLARIS_ADD_BIN)/VBoxClient \
477 $(SOLARIS_ADD_BIN)/VBoxService \
478 $(SOLARIS_ADD_BIN)/VBoxControl \
479 $(SOLARIS_ADD_BIN)/vboxvideo_drv_13.so \
480 $(SOLARIS_ADD_BIN)/vboxvideo_drv_14.so \
481 $(SOLARIS_ADD_BIN)/vboxvideo_drv_15.so \
482 $(SOLARIS_ADD_BIN)/vboxvideo_drv_16.so \
483 $(SOLARIS_ADD_BIN)/vboxvideo_drv_17.so \
484 $(SOLARIS_ADD_BIN)/vboxvideo_drv_70.so \
485 $(SOLARIS_ADD_BIN)/vboxvideo_drv_71.so \
486 $(SOLARIS_ADD_BIN)/vboxmouse_drv_14.so \
487 $(SOLARIS_ADD_BIN)/vboxmouse_drv_15.so \
488 $(SOLARIS_ADD_BIN)/vboxmouse_drv_16.so \
489 $(SOLARIS_ADD_BIN)/vboxmouse_drv_17.so \
490 $(SOLARIS_ADD_BIN)/vboxmouse_drv_70.so \
491 $(SOLARIS_ADD_BIN)/vboxmouse_drv_71.so
492 ifdef VBOX_WITH_CROGL
493 VBOX_SOLPACKFILES += \
494 $(VBOX_CROGL_FILES_ISA)
495 endif
496endif
497
498include $(KBUILD_PATH)/subfooter.kmk
499
500$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
501 $(VBOX_VERSION_STAMP) \
502 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
503 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
504 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
505 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
506 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
507 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
508 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
509 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
510 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
511 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
512 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
513 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
514 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
515 $(VBOX_SOLPACKFILES) \
516 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
517 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
518 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
519 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
520 $(call MSG_L1,Installing guest additions)
521 @# Clear out the existing package files if needed
522 $(QUIET)rm -rf $(SOLARIS_ADD_INST_DIR)
523 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_INST_DIR)
524 $(QUIET)$(if $(VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE),$(MKDIR) -p $(SOLARIS_ADD_INST_DIR_64),$(MKDIR) -p $(SOLARIS_ADD_INST_DIR_ISA))
525 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_INST_DIR)/etc
526 $(QUIET)$(SED) \
527 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
528 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
529 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
530 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
531 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
532 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
533 --output $(SOLARIS_ADD_INST_DIR)/vboxguest.pkginfo \
534 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
535 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADD_INST_DIR)/makepackage.sh
536 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADD_INST_DIR)/postinstall.sh
537 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADD_INST_DIR)/preremove.sh
538 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARIS_ADD_INST_DIR)/vboxguest.sh
539 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARIS_ADD_INST_DIR)/vboxservice.xml
540 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADD_INST_DIR)/vboxguest.space
541 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADD_INST_DIR)/vboxguest.depend
542 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADD_INST_DIR)/vboxguest.copyright)
543 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARIS_ADD_INST_DIR)/vboxclient.desktop
544 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARIS_ADD_INST_DIR)/1099.vboxclient
545 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARIS_ADD_INST_DIR)/x11config.pl
546 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl $(SOLARIS_ADD_INST_DIR)/x11config15sol.pl
547 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARIS_ADD_INST_DIR)/x11restore.pl
548 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARIS_ADD_INST_DIR)/solaris_xorg.conf
549 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf $(SOLARIS_ADD_INST_DIR)/solaris_xorg_modeless.conf
550 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARIS_ADD_INST_DIR)/vboxguest.conf
551ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
552 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxguest $(SOLARIS_ADD_INST_DIR_64)/vboxguest
553 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxfs $(SOLARIS_ADD_INST_DIR_64)/vboxfs
554 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_64)/vboxfs_s10)
555 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxClient $(SOLARIS_ADD_INST_DIR_64)/VBoxClient
556 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxService $(SOLARIS_ADD_INST_DIR_64)/VBoxService
557 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxControl $(SOLARIS_ADD_INST_DIR_64)/VBoxControl
558 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_13.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_13.so
559 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_14.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_14.so
560 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_15.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_15.so
561 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_16.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_16.so
562 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_17.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_17.so
563 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_70.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_70.so
564 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_71.so $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_71.so
565 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_14.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_14.so
566 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_15.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_15.so
567 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_16.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_16.so
568 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_17.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_17.so
569 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_70.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_70.so
570 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_71.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_71.so
571 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGL.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGL.so
572 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLcrutil.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLcrutil.so
573 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLfeedbackspu.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLfeedbackspu.so
574 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLpassthroughspu.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLpassthroughspu.so
575 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLarrayspu.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLarrayspu.so
576 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLerrorspu.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLerrorspu.so
577 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxOGLpackspu.so $(SOLARIS_ADD_INST_DIR_64)/VBoxOGLpackspu.so
578 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxguest $(SOLARIS_ADD_INST_DIR_32)/vboxguest
579 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxfs $(SOLARIS_ADD_INST_DIR_32)/vboxfs
580 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_32)/vboxfs_s10)
581 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN_32)/vboxfsmount $(SOLARIS_ADD_INST_DIR_32)/vboxfsmount
582 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxClient $(SOLARIS_ADD_INST_DIR_32)/VBoxClient
583 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxService $(SOLARIS_ADD_INST_DIR_32)/VBoxService
584 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxControl $(SOLARIS_ADD_INST_DIR_32)/VBoxControl
585 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_13.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_13.so
586 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_14.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_14.so
587 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_15.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_15.so
588 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_16.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_16.so
589 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_17.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_17.so
590 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_70.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_70.so
591 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_71.so $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_71.so
592 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_14.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_14.so
593 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_15.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_15.so
594 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_16.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_16.so
595 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_17.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_17.so
596 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_70.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_70.so
597 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_71.so $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_71.so
598 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGL.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGL.so
599 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLcrutil.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLcrutil.so
600 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLfeedbackspu.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLfeedbackspu.so
601 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLpassthroughspu.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLpassthroughspu.so
602 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLarrayspu.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLarrayspu.so
603 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLerrorspu.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLerrorspu.so
604 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxOGLpackspu.so $(SOLARIS_ADD_INST_DIR_32)/VBoxOGLpackspu.so
605 ifdef VBOX_COMPRESS
606 # Compress binaries as we distribute uncompressed pkgs
607 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/VBoxClient
608 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/VBoxService
609 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/VBoxControl
610 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_13.so
611 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_14.so
612 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_15.so
613 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_16.so
614 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_17.so
615 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_70.so
616 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxvideo_drv_71.so
617 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_14.so
618 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_15.so
619 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_16.so
620 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_17.so
621 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_70.so
622 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_71.so
623 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/VBoxClient
624 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/VBoxService
625 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/VBoxControl
626 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_13.so
627 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_14.so
628 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_15.so
629 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_16.so
630 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_17.so
631 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_70.so
632 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxvideo_drv_71.so
633 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_14.so
634 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_15.so
635 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_16.so
636 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_17.so
637 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_70.so
638 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_32)/vboxmouse_drv_71.so
639 endif # VBOX_COMPRESS
640else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
641 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxguest $(SOLARIS_ADD_INST_DIR_ISA)/vboxguest
642 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxfs $(SOLARIS_ADD_INST_DIR_ISA)/vboxfs
643 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_ISA)/vboxfs_s10
644 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN)/vboxfsmount $(SOLARIS_ADD_INST_DIR_ISA)/vboxfsmount
645 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxClient $(SOLARIS_ADD_INST_DIR_ISA)/VBoxClient
646 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxService $(SOLARIS_ADD_INST_DIR_ISA)/VBoxService
647 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxControl $(SOLARIS_ADD_INST_DIR_ISA)/VBoxControl
648 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_13.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_13.so
649 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_14.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_14.so
650 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_15.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_15.so
651 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_16.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_16.so
652 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_17.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_17.so
653 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_70.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_70.so
654 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxvideo_drv_71.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_71.so
655 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_14.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_14.so
656 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_15.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_15.so
657 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_16.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_16.so
658 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_17.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_17.so
659 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_70.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_70.so
660 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN)/vboxmouse_drv_71.so $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_71.so
661 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGL.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGL.so
662 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLcrutil.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLcrutil.so
663 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLfeedbackspu.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLfeedbackspu.so
664 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLpassthroughspu.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLpassthroughspu.so
665 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLarrayspu.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLarrayspu.so
666 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLerrorspu.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLerrorspu.so
667 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxOGLpackspu.so $(SOLARIS_ADD_INST_DIR_ISA)/VBoxOGLpackspu.so
668 ifdef VBOX_COMPRESS
669 # Compress binaries as we distribute uncompressed pkgs
670 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/VBoxClient
671 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/VBoxService
672 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/VBoxControl
673 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_13.so
674 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_14.so
675 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_15.so
676 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_16.so
677 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_17.so
678 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_70.so
679 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxvideo_drv_71.so
680 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_14.so
681 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_15.so
682 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_16.so
683 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_17.so
684 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_70.so
685 $(QUIET)$(VBOX_COMPRESS) $(SOLARIS_ADD_INST_DIR_ISA)/vboxmouse_drv_71.so
686 endif # VBOX_COMPRESS
687endif # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
688 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh $(SOLARIS_ADD_INST_DIR)/VBox.sh
689 $(call MSG_L1,Creating install package: $@)
690 $(QUIET)$(SOLARIS_ADD_INST_DIR)/makepackage.sh $(SOLARIS_ADD_INST_DIR) $(PKGFILENAME) $(VBOX_SVN_REV)
691 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_INST_DIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
692
693endif
694
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