VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/Makefile.kmk@ 26600

Last change on this file since 26600 was 26538, checked in by vboxsync, 15 years ago

Solaris Installer: Use VBOX_VENDOR, VBOX_PRODUCT.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 34.3 KB
Line 
1# $Id: Makefile.kmk 26538 2010-02-15 13:34:41Z vboxsync $
2## @file
3# Sub-Makefile for the Solaris installer.
4#
5
6#
7# Copyright (C) 2007-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 installer can only be built on Solaris!") # yeah, right.
27endif
28
29# Unset this to speed up things during makefile hacking.
30VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
31
32#
33# Globals
34#
35ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
36 VBOX_WITH_COMBINED_PACKAGE := 1
37endif
38VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
39SOLARIS_DIR_NAME_64 := amd64
40SOLARIS_DIR_NAME_32 := i386
41SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer
42SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg
43SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox
44SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR)
45SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32)
46SOLARIS_VBOXINST_DIR_64 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_64)
47SOLARIS_DRIVERINST_DIR := $(SOLARIS_BASEINST_DIR)/platform/i86pc/kernel/drv
48SOLARIS_DRIVERINST_DIR_32 := $(SOLARIS_DRIVERINST_DIR)
49SOLARIS_DRIVERINST_DIR_64 := $(SOLARIS_DRIVERINST_DIR)/amd64
50SOLARIS_USR_DIR := $(SOLARIS_BASEINST_DIR)/usr
51SOLARIS_USRBIN_DIR := $(SOLARIS_USR_DIR)/bin
52SOLARIS_USRSHR_APPS_DIR := $(SOLARIS_USR_DIR)/share/applications
53SOLARIS_USRSHR_PIXMAPS_DIR := $(SOLARIS_USR_DIR)/share/pixmaps
54SOLARIS_VBOXSMF_DIR := $(SOLARIS_BASEINST_DIR)/var/svc/manifest/application/virtualbox
55SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc
56
57SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin
58SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin
59SOLARIS_OUT_BIN := $(PATH_BIN)
60
61SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/DebugPkg
62SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)
63SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)
64SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/KernelPkg
65
66ifeq ($(KBUILD_TARGET_ARCH),amd64)
67 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64)
68 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64)
69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)
70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
71 SOL64_PKG := 1
72else
73 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32)
74 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32)
75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)
76 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.
77endif
78SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
79
80
81# Figure out the paths to the two platform specific Qt4 directories
82SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4))
83SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4))
84
85# Base package
86PKGINFO_ARCH = $(shell uname -p)
87PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
88ifndef VBOX_WITH_COMBINED_PACKAGE
89 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
90else
91 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
92endif
93
94# Debug package
95DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
96
97# Kernel interface (vbi) package
98VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
99
100#
101# Targets
102#
103PROGRAMS += VBoxZoneAccess VBoxISAExec
104INSTALLS += solaris-doc solaris-bin solaris-drv-confs
105
106BLDDIRS += \
107 $(SOLARIS_INST_OUT_DIR) \
108 $(SOLARIS_BASEINST_DIR) \
109 $(SOLARIS_VBOXINST_DIR) \
110 $(SOLARIS_VBI_DIR) \
111 $(SOLARIS_DBG_DIR)
112
113BLDDIRS += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
114 usr \
115 usr/bin \
116 platform \
117 platform/i86pc \
118 platform/i86pc/kernel \
119 platform/i86pc/kernel/drv \
120 platform/i86pc/kernel/drv/amd64 \
121)
122
123PACKING += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
124
125OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
126 vbox.pkginfo vbox.copyright vbox.space vbox.depend vbox.pkgresponse \
127 makepackage.sh prototype postinstall.sh checkinstall.sh preremove.sh)
128
129#
130# VBoxZoneAccess
131#
132VBoxZoneAccess_TEMPLATE = VBOXR3EXE
133VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
134VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
135VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
136
137#
138# VBoxISAExec
139#
140VBoxISAExec_TEMPLATE = VBOXR3EXE
141VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
142VBoxISAExec_SOURCES = VBoxISAExec.c
143
144#
145# Solaris installs.
146#
147solaris-doc_INST = bin/
148solaris-doc_MODE = a+r,u+w
149solaris-doc_SOURCES = \
150 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
151 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
152
153solaris-bin_INST = bin/
154solaris-bin_MODE = a+rx,u+w
155solaris-bin_SOURCES = \
156 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \
157 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \
158 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
159 $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \
160 $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,)
161
162solaris-drv-confs_INST = bin/
163solaris-drv-confs_MODE = a+r,u+w
164solaris-drv-confs_SOURCES = \
165 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
166 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
167 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
168 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \
169 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf)
170
171#
172# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
173# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
174# For the files produced during packing they should be cleaned up promptly when the work is done.
175#
176
177# Strip these executables
178SOLARIS_STRIP_EXES = \
179 VBoxZoneAccess \
180 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
181 VBoxManage \
182 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
183 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
184 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
185 VBoxNetDHCP \
186 VBoxSVC \
187 $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \
188 VBoxXPCOMIPCD \
189 kchmviewer
190
191ifdef VBOX_WITH_USB
192 ifndef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS
193 SOLARIS_STRIP_EXES += VBoxUSBHelper
194 endif
195endif
196
197SOLARIS_DRIVER_BINS = \
198 vboxdrv \
199 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
200 $(if $(VBOX_WITH_NETADP),vboxnet,) \
201 $(if $(VBOX_WITH_USB),vboxusbmon,) \
202 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),vboxusb,)
203
204SOLARIS_DRIVER_CONFS = \
205 vboxdrv.conf \
206 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
207 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
208 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
209 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),vboxusb.conf,)
210
211# Strip these binaries
212SOLARIS_STRIP_BINS = \
213 VBoxDD.so \
214 VBoxDD2.so \
215 VBoxREM.so \
216 VBoxRT.so \
217 VBoxDDU.so \
218 VBoxVMM.so \
219 VBoxXPCOM.so \
220 VBoxXPCOMC.so \
221 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
222 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
223 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
224 $(if $(VBOX_WITH_QTGUI),\
225 VBoxKeyboard.so \
226 libQtCoreVBox.so.4 \
227 libQtGuiVBox.so.4 \
228 libQtNetworkVBox.so.4 \
229 $(if $(VBOX_GUI_USE_QGL), libQtOpenGLVBox.so.4,) \
230 accessible/libqtaccessiblewidgets.so,) \
231 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
232 $(if $(VBOX_WITH_CROGL),\
233 VBoxOGLhostcrutil.so \
234 VBoxOGLhosterrorspu.so \
235 VBoxOGLrenderspu.so \
236 VBoxSharedCrOpenGL.so) \
237 components/VBoxC.so \
238 components/VBoxSVCM.so \
239 components/VBoxXPCOMIPCC.so
240ifdef VBOX_WITH_HARDENING
241SOLARIS_STRIP_BINS += \
242 VBoxNetDHCP.so \
243 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
244 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
245 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
246endif
247
248# Do not remove relocation information of these binaries
249SOLARIS_STRIP_OBJS = \
250 VBoxDD2GC.gc \
251 VBoxDD2R0.r0 \
252 VBoxDDGC.gc \
253 VBoxDDR0.r0 \
254 VMMGC.gc \
255 VMMR0.r0
256
257# Special differences between 32-bit and 64-bit
258SOLARIS_STRIP_BIN_32 = \
259 VBoxREM32.so \
260 VBoxREM64.so
261
262VBOX_SOL_PYTHON_DIR_64 = 64
263
264# Do not strip anything of these files
265SOLARIS_NO_STRIP = \
266 components/VBoxXPCOMBase.xpt \
267 components/VirtualBox_XPCOM.xpt \
268 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES)) \
269
270SOLARIS_USRBIN_LINKS = \
271 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
272 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
273 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
274 VBoxManage
275
276SOLARIS_COMMON_EXES = \
277 vboxconfig.sh \
278 VBox.sh \
279 pkginstall.sh \
280 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
281 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,) \
282
283# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
284SOLARIS_EXTRAS = \
285 $(if $(VBOX_OSE),,LICENSE) \
286 VBox.png \
287 autoresponse \
288 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
289 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
290 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
291 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
292 virtualbox-webservice.xml \
293 virtualbox-zoneaccess.xml \
294 VBoxQtconfig \
295 VBoxISAExec \
296 vbox.copyright \
297 ReadMe.txt
298
299# These extra Qt libs are purely for running VBoxQtconfig
300ifdef VBOX_WITH_QTGUI
301 SOLARIS_QTLIBS = \
302 libQtXmlVBox.so.4 \
303 libQtSqlVBox.so.4 \
304 libQt3SupportVBox.so.4
305endif
306
307
308ifdef VBOX_WITH_QTGUI
309 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
310 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
311endif
312
313# Documentation (packed as DOCS as they are arch. neutral)
314ifdef VBOX_WITH_DOCS_PACKING
315 SOLARIS_COMMON = \
316 VirtualBox.chm \
317 UserManual.pdf \
318 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
319endif
320
321# Python XPCOM glue
322ifdef VBOX_WITH_PYTHON
323 SOLARIS_COMMON += \
324 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
325 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
326 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
327 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
328 sdk/bindings/xpcom/python/xpcom/server/factory.py \
329 sdk/bindings/xpcom/python/xpcom/server/loader.py \
330 sdk/bindings/xpcom/python/xpcom/server/module.py \
331 sdk/bindings/xpcom/python/xpcom/server/policy.py \
332 sdk/installer/vboxapisetup.py \
333 sdk/installer/vboxapi/__init__.py \
334 sdk/installer/vboxapi/VirtualBox_constants.py
335endif
336
337# VRDP
338ifdef VBOX_WITH_VRDP
339 SOLARIS_STRIP_BINS += \
340 VBoxVRDP.so \
341 VRDPAuth.so
342 SOLARIS_COMMON += \
343 rdesktop-vrdp.tar.gz
344 ifdef VBOX_WITH_VRDP_RDESKTOP
345 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
346 SOLARIS_STRIP_EXES += \
347 rdesktop-vrdp
348 endif
349endif
350
351SOLARIS_STRIP_BINS += \
352 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
353
354SOLARIS_STRIP_EXES += \
355 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
356 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
357 $(if $(VBOX_WITH_WEBSERVICES),webtest)
358
359# Guest Additions
360ifdef VBOX_WITH_ADDITIONS_PACKING
361 SOLARIS_COMMON += \
362 additions/VBoxGuestAdditions.iso
363endif
364
365
366# EFI firmware
367ifdef VBOX_WITH_EFIFW_PACKING
368 SOLARIS_COMMON += \
369 VBoxEFI32.fd \
370 VBoxEFI64.fd
371endif
372
373SOLARIS_ARCH_FILES := \
374 $(SOLARIS_STRIP_EXES) \
375 $(SOLARIS_DRIVER_BINS) \
376 $(SOLARIS_DRIVER_CONFS) \
377 $(SOLARIS_USRBIN_LINKS) \
378 $(SOLARIS_STRIP_BINS) \
379 $(SOLARIS_STRIP_OBJS) \
380 $(SOLARIS_NO_STRIP) \
381 $(SOLARIS_EXTRAS) \
382 $(SOLARIS_QTLIBS) \
383 $(SOLARIS_COMMON_EXES) \
384 $(SOLARIS_COMMON)
385
386SOLARIS_DBG_FILES := \
387 $(SOLARIS_STRIP_EXES) \
388 $(SOLARIS_STRIP_BINS) \
389 $(SOLARIS_DRIVER_BINS)
390
391OTHER_CLEAN += \
392 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
393 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
394 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
395 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
396 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
397 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
398 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
399 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
400 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
401
402ifdef VBOX_WITH_COMBINED_PACKAGE
403 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
404 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
405 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
406 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
407 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
408 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
409 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
410 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
411 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
412 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
413 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
414 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
415 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
416 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
417 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
418 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
419 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
420else
421 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
422 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
423 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
424 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
425 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
426 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
427 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
428 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
429 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
430 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
431endif
432SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
433 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
434 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
435 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
436
437BLDDIRS += $(foreach d,\
438 additions \
439 rdesktop-vrdp-keymaps \
440 $(SOLARIS_DIR_NAME_64) \
441 $(SOLARIS_DIR_NAME_64)/components \
442 $(SOLARIS_DIR_NAME_64)/nls \
443 $(SOLARIS_DIR_NAME_64)/accessible \
444 $(VBOX_SOL_PYTHON_DIR_64) \
445 $(SOLARIS_DIR_NAME_32) \
446 $(SOLARIS_DIR_NAME_32)/components \
447 $(SOLARIS_DIR_NAME_32)/nls \
448 $(SOLARIS_DIR_NAME_32)/accessible \
449 $(if $(VBOX_WITH_PYTHON),\
450 sdk/ \
451 sdk/installer \
452 sdk/installer/vboxapi \
453 sdk/bindings/xpcom/python/xpcom \
454 sdk/bindings/xpcom/python/xpcom/server \
455 sdk/bindings/xpcom/python/xpcom/client,) \
456,$(SOLARIS_VBOXINST_DIR)/$(d)/)
457
458BLDDIRS += $(foreach d,\
459 amd64 \
460,$(SOLARIS_VBI_DIR)/$(d)/)
461
462BLDDIRS += $(foreach d,\
463 additions \
464 components \
465 accessible \
466 $(SOLARIS_DIR_NAME_64) \
467 $(SOLARIS_DIR_NAME_64)/components \
468 $(SOLARIS_DIR_NAME_64)/accessible \
469 $(VBOX_SOL_PYTHON_DIR_64) \
470 $(SOLARIS_DIR_NAME_32) \
471 $(SOLARIS_DIR_NAME_32)/components \
472 $(SOLARIS_DIR_NAME_32)/nls \
473 $(SOLARIS_DIR_NAME_32)/accessible \
474,$(SOLARIS_DBG_DIR)/$(d))
475
476
477include $(KBUILD_PATH)/subfooter.kmk
478
479#
480# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
481#
482
483## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
484# containing any obsolete files the way packing is performed here. Consider recursivly
485# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
486# directory tree.
487$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
488 $(VBOX_VERSION_STAMP) \
489 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
490 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
491 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
492 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
493 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
494 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
495 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
496 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
497 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
498 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
499 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
500 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
501 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
502 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
503 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
504 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
505 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
506 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
507 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
508 VBoxISAExec \
509 $(SOLARIS_ARCH_DEPFILES)
510 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
511ifdef VBOX_WITH_COMBINED_PACKAGE
512 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
513else
514 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
515endif
516 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
517 $(QUIET)$(SED) \
518 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
519 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
520 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
521 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
522 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
523 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
524 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
525 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
526 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
527 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
528 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
529 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
530 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
531 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
532 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
533 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
534ifdef VBOX_WITH_COMBINED_PACKAGE
535 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.x86/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_32)/libSDL-1.2.so.0,)
536 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.amd64/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_64)/libSDL-1.2.so.0,)
537 @# @todo -XXX- how to get rid of this manual MKDIR ?
538 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
539 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
540 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_64)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)/,)
541 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,)
542 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,)
543 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
544 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
545 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
546 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
547 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
548 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
549 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
550 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI32.fd,)
551 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI32.fd,)
552 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI64.fd,)
553 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI64.fd,)
554else
555 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_ISA)/libSDL-1.2.so.0,)
556 @# @todo -XXX- how to get rid of this manual MKDIR ?
557 ifdef VBOX_WITH_PYTHON
558 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
559 $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,)
560 endif
561 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,)
562 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
563 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
564 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
565 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
566 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI32.fd,)
567 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI64.fd,)
568endif
569 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
570 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
571 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
572 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
573 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_setup.sh,)
574 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_term.sh,)
575 $(QUIET)$(SED) \
576 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
577 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
578 $(PATH_BIN)/vboxconfig.sh
579 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
580 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
581 $(QUIET)$(SED) \
582 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
583 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop \
584 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop
585 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
586 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
587 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
588 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
589 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
590 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
591 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
592 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
593 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
594 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
595 $(QUIET)$(SED) \
596 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
597 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
598 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
599 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
600 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
601 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
602 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
603 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
604 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
605 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
606 $(SOLARIS_BASEINST_DIR) \
607 $(PKG_FILENAME) \
608 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
609 $(VBOX_SVN_REV) \
610 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
611 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
612 @# Clean up files emitted as side-effect or result of packing
613 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
614 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
615 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
616
617
618#
619# 32-bit Main Package
620#
621$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
622 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
623 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
624
625$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
626 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
627 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
628
629$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
630 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
631 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
632
633$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
634 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
635 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
636
637$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
638 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
639 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
640
641$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
642 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
643 $(INSTALL) -m 0644 $< $@
644
645$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
646 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
647 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
648
649#
650# 64-bit Main Package
651#
652$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
653 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
654 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
655
656$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
657 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
658 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
659
660$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
661 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
662 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
663
664$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
665 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
666 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
667
668$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
669 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
670 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
671
672$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
673 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
674 $(INSTALL) -m 0644 $< $@
675
676$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
677 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
678 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
679
680
681#
682# Common (32-bit and 64-bit)
683#
684$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
685 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
686 $(INSTALL) -m 0644 $< $@
687
688# Driver configuration files
689$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
690 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
691 $(INSTALL) -m 0644 $< $@
692
693# Common executables
694$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
695 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
696 $(INSTALL) -m 0755 $< $@
697
698
699
700#
701# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
702# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
703# as those binaries do not originate from $(PATH_BIN)
704#
705$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
706 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
707 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
708
709
710#
711# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
712#
713ifdef VBOX_WITH_SOLARIS_VBI
714$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
715 $(VBOX_VERSION_STAMP) \
716 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
717 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
718 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
719 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
720 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
721 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
722 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
723 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
724 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
725 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
726 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
727 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
728 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
729 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
730 $(QUIET)$(SED) \
731 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
732 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
733 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
734 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
735 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
736 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
737 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
738 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
739 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
740 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
741 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
742endif
743
744
745#
746# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
747#
748$(PATH_BIN)/$(DBG_ARCHIVE): \
749 $(VBOX_VERSION_STAMP) \
750 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
751 $(SOLARIS_DBG_DEPFILES)
752 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
753 $(call MSG_L1,Packing $@)
754 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
755 $(QUIET)$(CHMOD) 0644 $@
756
757#
758# 32-bit Debug package
759#
760$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
761 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
762 $(SOL_DBG_OBJCOPY) $< $@
763
764$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
765 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
766 $(SOL_DBG_OBJCOPY) $< $@
767
768
769#
770# 64-bit Debug package
771#
772$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
773 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
774 $(SOL_DBG_OBJCOPY) $< $@
775
776$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
777 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
778 $(SOL_DBG_OBJCOPY) $< $@
779
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