VirtualBox

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

Last change on this file since 27436 was 26641, checked in by vboxsync, 15 years ago

Additions/solaris: clean up package for incremental builds.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 38.5 KB
Line 
1# $Id: Makefile.kmk 26641 2010-02-19 10:15:42Z vboxsync $
2## @file
3# Makefile for the Solaris guest additions base directory.
4#
5
6#
7# Copyright (C) 2008 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25ifneq ($(KBUILD_HOST),solaris)
26$(error "The Solaris guest additions installer can only be built on Solaris!")
27endif
28
29ifeq ($(KBUILD_HOST),solaris)
30 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
31 include $(PATH_SUB_CURRENT)/DRM/Makefile.kmk
32endif
33
34ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
35 VBOX_WITH_COMBINED_GUEST_PACKAGE := 1
36endif
37
38PKGFILENAME := VBoxSolarisAdditions.pkg
39PKGINFO_ARCH = $(shell uname -p)
40PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
41VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
42VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/Installer
43
44SOLARIS_ADDDIR_NAME_64 := amd64
45SOLARIS_ADDDIR_NAME_32 := i386
46
47SOLARIS_ADDINST_OUT_DIR := $(PATH_TARGET)/AdditionsInstaller
48SOLARIS_VBOXADDINST_SUBDIR := /opt/VirtualBoxAdditions
49SOLARIS_VBOXADDINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)$(SOLARIS_VBOXADDINST_SUBDIR)
50SOLARIS_VBOXADDINST_DIR_32 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_32)
51SOLARIS_VBOXADDINST_DIR_64 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_64)
52
53SOLARIS_ADD_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
54SOLARIS_ADD_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
55SOLARIS_ADD_OUT_BIN_ISA := $(PATH_OUT_BASE)/solaris.$(KBUILD_TARGET_ARCH)/$(KBUILD_TYPE)/bin/additions
56
57SOLARIS_ADD_DRIVERINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/kernel/drv
58SOLARIS_ADD_DRIVERINST_DIR_32 := $(SOLARIS_ADD_DRIVERINST_DIR)
59SOLARIS_ADD_DRIVERINST_DIR_64 := $(SOLARIS_ADD_DRIVERINST_DIR)/amd64
60
61SOLARIS_ADD_SYSLIBINST_DIR_32 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib
62SOLARIS_ADD_SYSLIBINST_DIR_64 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib/amd64
63
64SOLARIS_ADD_USRBIN_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/bin
65SOLARIS_ADD_ETCFS_DIR := $(SOLARIS_ADDINST_OUT_DIR)/etc/fs/vboxfs
66SOLARIS_ADD_SERVICESINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/var/svc/manifest/system/virtualbox
67
68ifeq ($(KBUILD_TARGET_ARCH),x86)
69 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_32)
70 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_32)
71 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_32)
72 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_32)
73else
74 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_64)
75 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_64)
76 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_64)
77 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_64)
78endif
79
80ifeq ($(KBUILD_TYPE),debug)
81 BIN_COPY := $(CP) -f
82 BIN_COPY_SYMBOLS := $(CP) -f
83else
84 BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
85 BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
86 VBOX_COMPRESS := compress -f
87endif
88
89INSTALLS += solaris-addcommon solaris-addcommonbins
90PROGRAMS += VBoxAddISAExec
91PACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
92OTHER_CLEAN += $(PACKING) $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
93
94#
95# VBoxAddISAExec
96#
97VBoxAddISAExec_TEMPLATE = VBOXR3EXE
98VBoxAddISAExec_NAME = VBoxISAExec
99VBoxAddISAExec_INST = $(INST_ADDITIONS)
100VBoxAddISAExec_DEPS = $(VBOX_SVN_REV_KMK)
101VBoxAddISAExec_SOURCES = $(PATH_ROOT)/src/VBox/Installer/solaris/VBoxISAExec.c
102
103#
104# Install to $(PATH_BIN)/additions/ files from various source paths (to pack them using rules)
105#
106solaris-addcommonbins_INST = bin/additions/
107solaris-addcommonbins_MODE = a+rx,u+w
108solaris-addcommonbins_SOURCES = \
109 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
110 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
111 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
112 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
113 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
114 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient=>1099.vboxclient \
115 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
116 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
117 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh
118
119solaris-addcommon_INST = bin/additions/
120solaris-addcommon_MODE = a+r,u+w
121solaris-addcommon_SOURCES = \
122 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf=>vboxguest.conf \
123 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop \
124 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml
125
126#
127# Create full directory tree
128#
129BLDDIRS += \
130 $(SOLARIS_ADDINST_OUT_DIR) \
131 $(addprefix $(SOLARIS_ADDINST_OUT_DIR)/,\
132 opt \
133 opt/VirtualBoxAdditions \
134 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_32) \
135 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_64) \
136 usr \
137 usr/bin \
138 usr/lib \
139 usr/lib/amd64 \
140 usr/kernel \
141 usr/kernel/drv \
142 usr/kernel/drv/amd64 \
143 var \
144 var/svc \
145 var/svc/manifest \
146 var/svc/manifest/system \
147 var/svc/manifest/system/virtualbox \
148 )
149
150SOLARIS_ADD_STRIP_BINS = \
151 VBoxClient \
152 VBoxService \
153 VBoxControl \
154 vboxfsmount \
155 vboxfs \
156 $(if $(VBOX_OSE),,vboxfs_s10)
157
158SOLARIS_ADD_SYSLIBS = \
159 VBoxOGL.so \
160 VBoxOGLcrutil.so \
161 VBoxOGLfeedbackspu.so \
162 VBoxOGLpassthroughspu.so \
163 VBoxOGLarrayspu.so \
164 VBoxOGLerrorspu.so \
165 VBoxOGLpackspu.so
166
167SOLARIS_ADD_DRIVERS = \
168 vboxguest
169
170SOLARIS_ADD_DRIVERS_CONF = \
171 vboxguest.conf
172
173SOLARIS_ADD_XORG_DRIVERS = \
174 vboxmouse_drv_14.so \
175 vboxmouse_drv_15.so \
176 vboxmouse_drv_16.so \
177 vboxmouse_drv_17.so \
178 vboxmouse_drv_70.so \
179 vboxmouse_drv_71.so \
180 vboxvideo_drv_13.so \
181 vboxvideo_drv_14.so \
182 vboxvideo_drv_15.so \
183 vboxvideo_drv_16.so \
184 vboxvideo_drv_17.so \
185 vboxvideo_drv_70.so \
186 vboxvideo_drv_71.so
187
188SOLARIS_ADD_COMMON_BINS = \
189 vboxguest.sh \
190 x11config.pl \
191 x11config15sol.pl \
192 x11restore.pl \
193 VBoxRandR.sh \
194 VBox.sh \
195 1099.vboxclient \
196 VBoxISAExec
197
198SOLARIS_ADD_USRBIN_LINKS = \
199 VBoxService \
200 VBoxClient \
201 VBoxControl
202
203SOLARIS_ADD_COMMON = \
204 vboxclient.desktop \
205 solaris_xorg.conf \
206 solaris_xorg_modeless.conf
207
208SOLARIS_ADD_SERVICES = \
209 vboxservice.xml
210
211ifdef VBOX_COMPRESS
212 SOLARIS_ADD_COMPRESS_FILES = \
213 $(SOLARIS_ADD_XORG_DRIVERS) \
214 VBoxService \
215 VBoxClient \
216 VBoxControl
217endif
218
219ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
220 SOLARIS_ARCH_ADD_DEPFILES = \
221 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)) \
222 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)) \
223 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)) \
224 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)) \
225 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)) \
226 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)) \
227 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
228 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS))
229else
230 SOLARIS_ARCH_ADD_DEPFILES = \
231 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_STRIP_BINS)) \
232 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_ISA)/,$(SOLARIS_ADD_SYSLIBS)) \
233 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_ISA)/,$(SOLARIS_ADD_DRIVERS)) \
234 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
235 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_XORG_DRIVERS))
236endif
237
238SOLARIS_ARCH_ADD_DEPFILES += \
239 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)) \
240 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)) \
241 $(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)) \
242 $(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS))
243
244
245
246include $(KBUILD_PATH)/subfooter.kmk
247
248#
249# -=-=-=-=-=-=-=- Additions package -=-=-=-=-=-=-=-
250#
251
252$(PATH_BIN)/additions/$(PKGFILENAME): \
253 $(VBOX_VERSION_STAMP) \
254 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
255 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
256 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
257 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
258 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
259 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
260 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
261 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
262 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
263 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
264 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
265 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
266 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
267 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
268 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
269 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
270 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
271 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk \
272 $(SOLARIS_ARCH_ADD_DEPFILES)
273 $(call MSG_L1,Installing guest additions)
274 $(QUIET)$(SED) \
275 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
276 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
277 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
278 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
279 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
280 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
281 --output $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.pkginfo \
282 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
283 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh
284 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADDINST_OUT_DIR)/postinstall.sh
285 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADDINST_OUT_DIR)/preremove.sh
286 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.space
287 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.depend
288 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.copyright)
289 $(call MSG_L1,Creating install package: $@)
290 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_ETCFS_DIR)
291 $(QUIET)$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/VBoxRandR.sh $(SOLARIS_ADD_USRBIN_DIR)/VBoxRandR
292 $(QUIET)$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/1099.vboxclient $(SOLARIS_ADD_USRBIN_DIR)/VBoxClient-all
293ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
294 ifdef VBOX_COMPRESS
295 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_COMPRESS_FILES))
296 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_COMPRESS_FILES))
297 endif
298 $(QUIET)$(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_32)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
299else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
300 ifdef VBOX_COMPRESS
301 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES))
302 endif
303 $(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_ISA)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
304endif
305 $(QUIET)$(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR) $(PKGFILENAME) $(VBOX_SVN_REV)
306 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
307 $(QUIET)$(RM) -f $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
308
309
310
311#
312# -=-=-=-=-=-=-=- Package rules -=-=-=-=-=-=-=-
313#
314
315#
316# 32-bit files
317#
318$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)): \
319 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
320 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
321
322$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)): \
323 $(SOLARIS_ADD_SYSLIBINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
324 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
325
326$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)): \
327 $(SOLARIS_ADD_DRIVERINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
328 $(INSTALL) -m 0644 $< $@
329
330$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
331 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
332 $(BIN_COPY) $< $@
333
334
335#
336# 64-bit files
337#
338$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)): \
339 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
340 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
341
342$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_64)/,$(SOLARIS_ADD_SYSLIBS)): \
343 $(SOLARIS_ADD_SYSLIBINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
344 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
345
346$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)): \
347 $(SOLARIS_ADD_DRIVERINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
348 $(INSTALL) -m 0644 $< $@
349
350$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
351 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
352 $(BIN_COPY) $< $@
353
354
355#
356# Common files
357#
358$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)): \
359 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
360 $(INSTALL) -m 0644 $< $@
361
362#
363# Common binaries/shell scripts
364#
365$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)): \
366 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
367 $(INSTALL) -m 0755 $< $@
368
369#
370# Driver .conf files
371#
372$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)): \
373 $(SOLARIS_ADD_DRIVERINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
374 $(INSTALL) -m 0644 $< $@
375
376#
377# SMF Service files
378#
379$(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)): \
380 $(SOLARIS_ADD_SERVICESINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
381 $(INSTALL) -m 0644 $< $@
382
383#
384# Symlinks from /usr/bin/ to /opt/VirtualBoxAdditions (some like VBoxRandR created manually)
385#
386$(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS)): \
387 $(SOLARIS_ADD_USRBIN_DIR)/% : % | $$(dir $$@)
388 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/$< $@
389
390
391
392#
393# @todo Delete once the new packaging works
394#
395ifdef OBSOLETE_PACKAGING
396#
397# If we are doing a combined package (x86+amd64) include the binaries from both
398# architectures otherwise use the one from $(PATH_BIN)/additions
399#
400VBOX_CROGL_FILES = \
401 VBoxOGL.so \
402 VBoxOGLcrutil.so \
403 VBoxOGLfeedbackspu.so \
404 VBoxOGLpassthroughspu.so \
405 VBoxOGLarrayspu.so \
406 VBoxOGLerrorspu.so \
407 VBoxOGLpackspu.so
408VBOX_CROGL_FILES_32 = $(addprefix $(SOLARIS_ADD_BIN_32)/,$(VBOX_CROGL_FILES))
409VBOX_CROGL_FILES_64 = $(addprefix $(SOLARIS_ADD_BIN_64)/,$(VBOX_CROGL_FILES))
410VBOX_CROGL_FILES_ISA = $(addprefix $(SOLARIS_ADD_BIN)/,$(VBOX_CROGL_FILES))
411
412ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
413 SOLARIS_ADD_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
414 SOLARIS_ADD_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
415 SOLARIS_ADD_INST_DIR_64 := $(SOLARIS_ADD_INST_DIR)/amd64
416 SOLARIS_ADD_INST_DIR_32 := $(SOLARIS_ADD_INST_DIR)
417 VBOX_SOLPACKFILES = \
418 $(SOLARIS_ADD_BIN_64)/vboxguest \
419 $(SOLARIS_ADD_BIN_64)/vboxfs \
420 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_64)/vboxfs_s10) \
421 $(SOLARIS_ADD_BIN_64)/VBoxClient \
422 $(SOLARIS_ADD_BIN_64)/VBoxService \
423 $(SOLARIS_ADD_BIN_64)/VBoxControl \
424 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_13.so \
425 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_14.so \
426 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_15.so \
427 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_16.so \
428 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_17.so \
429 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_70.so \
430 $(SOLARIS_ADD_BIN_64)/vboxvideo_drv_71.so \
431 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_14.so \
432 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_15.so \
433 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_16.so \
434 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_17.so \
435 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_70.so \
436 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_71.so \
437 $(SOLARIS_ADD_BIN_32)/vboxguest \
438 $(SOLARIS_ADD_BIN_32)/vboxfs \
439 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_32)/vboxfs_s10) \
440 $(SOLARIS_ADD_BIN_32)/vboxfsmount \
441 $(SOLARIS_ADD_BIN_32)/VBoxClient \
442 $(SOLARIS_ADD_BIN_32)/VBoxService \
443 $(SOLARIS_ADD_BIN_32)/VBoxControl \
444 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_13.so \
445 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_14.so \
446 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_15.so \
447 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_16.so \
448 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_17.so \
449 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_70.so \
450 $(SOLARIS_ADD_BIN_32)/vboxvideo_drv_71.so \
451 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_14.so \
452 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_15.so \
453 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_16.so \
454 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_17.so \
455 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_70.so \
456 $(SOLARIS_ADD_BIN_32)/vboxmouse_drv_71.so
457 ifdef VBOX_WITH_CROGL
458 VBOX_SOLPACKFILES += \
459 $(VBOX_CROGL_FILES_32) \
460 $(VBOX_CROGL_FILES_64)
461 endif
462else
463 SOLARIS_ADD_BIN := $(PATH_BIN)/additions
464 ifeq ($(KBUILD_TARGET_ARCH),x86)
465 SOLARIS_ADD_INST_DIR_ISA := $(SOLARIS_ADD_INST_DIR)
466 else
467 SOLARIS_ADD_INST_DIR_ISA := $(SOLARIS_ADD_INST_DIR)/amd64
468 endif
469 VBOX_SOLPACKFILES = \
470 $(SOLARIS_ADD_BIN)/vboxguest \
471 $(SOLARIS_ADD_BIN)/vboxfs \
472 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN)/vboxfs_s10) \
473 $(SOLARIS_ADD_BIN)/vboxfsmount \
474 $(SOLARIS_ADD_BIN)/VBoxClient \
475 $(SOLARIS_ADD_BIN)/VBoxService \
476 $(SOLARIS_ADD_BIN)/VBoxControl \
477 $(SOLARIS_ADD_BIN)/vboxvideo_drv_13.so \
478 $(SOLARIS_ADD_BIN)/vboxvideo_drv_14.so \
479 $(SOLARIS_ADD_BIN)/vboxvideo_drv_15.so \
480 $(SOLARIS_ADD_BIN)/vboxvideo_drv_16.so \
481 $(SOLARIS_ADD_BIN)/vboxvideo_drv_17.so \
482 $(SOLARIS_ADD_BIN)/vboxvideo_drv_70.so \
483 $(SOLARIS_ADD_BIN)/vboxvideo_drv_71.so \
484 $(SOLARIS_ADD_BIN)/vboxmouse_drv_14.so \
485 $(SOLARIS_ADD_BIN)/vboxmouse_drv_15.so \
486 $(SOLARIS_ADD_BIN)/vboxmouse_drv_16.so \
487 $(SOLARIS_ADD_BIN)/vboxmouse_drv_17.so \
488 $(SOLARIS_ADD_BIN)/vboxmouse_drv_70.so \
489 $(SOLARIS_ADD_BIN)/vboxmouse_drv_71.so
490 ifdef VBOX_WITH_CROGL
491 VBOX_SOLPACKFILES += \
492 $(VBOX_CROGL_FILES_ISA)
493 endif
494endif
495
496include $(KBUILD_PATH)/subfooter.kmk
497
498$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
499 $(VBOX_VERSION_STAMP) \
500 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
501 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
502 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
503 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
504 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
505 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
506 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
507 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
508 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
509 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
510 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
511 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
512 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
513 $(VBOX_SOLPACKFILES) \
514 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
515 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
516 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
517 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
518 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
519 $(call MSG_L1,Installing guest additions)
520 @# Clear out the existing package files if needed
521 $(QUIET)rm -rf $(SOLARIS_ADD_INST_DIR)
522 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_INST_DIR)
523 $(QUIET)$(if $(VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE),$(MKDIR) -p $(SOLARIS_ADD_INST_DIR_64),$(MKDIR) -p $(SOLARIS_ADD_INST_DIR_ISA))
524 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_INST_DIR)/etc
525 $(QUIET)$(SED) \
526 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
527 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
528 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
529 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
530 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
531 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
532 --output $(SOLARIS_ADD_INST_DIR)/vboxguest.pkginfo \
533 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
534 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADD_INST_DIR)/makepackage.sh
535 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADD_INST_DIR)/postinstall.sh
536 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADD_INST_DIR)/preremove.sh
537 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARIS_ADD_INST_DIR)/vboxguest.sh
538 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARIS_ADD_INST_DIR)/vboxservice.xml
539 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADD_INST_DIR)/vboxguest.space
540 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADD_INST_DIR)/vboxguest.depend
541 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADD_INST_DIR)/vboxguest.copyright)
542 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARIS_ADD_INST_DIR)/vboxclient.desktop
543 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARIS_ADD_INST_DIR)/1099.vboxclient
544 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARIS_ADD_INST_DIR)/x11config.pl
545 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl $(SOLARIS_ADD_INST_DIR)/x11config15sol.pl
546 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARIS_ADD_INST_DIR)/x11restore.pl
547 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARIS_ADD_INST_DIR)/solaris_xorg.conf
548 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf $(SOLARIS_ADD_INST_DIR)/solaris_xorg_modeless.conf
549 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARIS_ADD_INST_DIR)/VBoxRandR.sh
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