VirtualBox

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

Last change on this file since 20314 was 20314, checked in by vboxsync, 16 years ago

Solaris/Installer: fixed VBoxPython.so path.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 31.9 KB
Line 
1# $Id: Makefile.kmk 20314 2009-06-05 11:09:07Z 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
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 += $(foreach d,\
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,$(SOLARIS_BASEINST_DIR)/$(d))
122
123
124PACKING += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
125
126OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
127 vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
128 makepackage.sh prototype postinstall.sh preremove.sh)
129
130#
131# VBoxZoneAccess
132#
133VBoxZoneAccess_TEMPLATE = VBOXR3EXE
134VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
135VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
136VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
137
138#
139# VBoxISAExec
140#
141VBoxISAExec_TEMPLATE = VBOXR3EXE
142VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
143VBoxISAExec_SOURCES = VBoxISAExec.c
144
145#
146# Solaris installs.
147#
148solaris-doc_INST = bin/
149solaris-doc_MODE = a+r,u+w
150solaris-doc_SOURCES = \
151 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
152 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
153
154#
155# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
156# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
157# For the files produced during packing they should be cleaned up promptly when the work is done.
158
159# Strip these executables
160SOLARIS_STRIP_EXES = \
161 VBoxZoneAccess \
162 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
163 VBoxManage \
164 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
165 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
166 $(if $(VBOX_WITH_USB),VBoxUSBHelper,) \
167 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
168 VBoxNetDHCP \
169 VBoxSVC \
170 VBoxXPCOMIPCD \
171 kchmviewer
172
173SOLARIS_DRIVER_BINS = \
174 vboxdrv \
175 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
176 $(if $(VBOX_WITH_NETADP),vboxnet,) \
177 $(if $(VBOX_WITH_USB),vboxusbmon,)
178
179# Strip these binaries
180SOLARIS_STRIP_BINS = \
181 VBoxDD.so \
182 VBoxDD2.so \
183 VBoxREM.so \
184 VBoxRT.so \
185 VBoxDDU.so \
186 VBoxVMM.so \
187 VBoxXPCOM.so \
188 VBoxXPCOMC.so \
189 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
190 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
191 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
192 $(if $(VBOX_WITH_QTGUI),\
193 VBoxKeyboard.so \
194 libQtCoreVBox.so.4 \
195 libQtGuiVBox.so.4 \
196 libQtNetworkVBox.so.4 \
197 accessible/libqtaccessiblewidgets.so,) \
198 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
199 $(if $(VBOX_WITH_CROGL),\
200 VBoxOGLhostcrutil.so \
201 VBoxOGLhosterrorspu.so \
202 VBoxOGLrenderspu.so \
203 VBoxSharedCrOpenGL.so) \
204 VBoxSettings.so \
205 components/VBoxC.so \
206 components/VBoxSVCM.so \
207 components/VBoxXPCOMIPCC.so
208ifdef VBOX_WITH_HARDENING
209SOLARIS_STRIP_BINS += \
210 VBoxNetDHCP.so \
211 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
212 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
213 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
214endif
215
216# Do not remove relocation information of these binaries
217SOLARIS_STRIP_OBJS = \
218 VBoxDD2GC.gc \
219 VBoxDD2R0.r0 \
220 VBoxDDGC.gc \
221 VBoxDDR0.r0 \
222 VMMGC.gc \
223 VMMR0.r0
224
225# Special differences between 32-bit and 64-bit
226SOLARIS_STRIP_BIN_32 = \
227 VBoxREM32.so \
228 VBoxREM64.so
229
230VBOX_SOL_PYTHON_DIR_64 = 64
231
232# Do not strip anything of these files
233SOLARIS_NO_STRIP = \
234 components/VBoxXPCOMBase.xpt \
235 components/VirtualBox_XPCOM.xpt \
236 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
237
238SOLARIS_USRBIN_LINKS = \
239 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
240 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
241 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
242 VBoxManage
243
244# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
245SOLARIS_EXTRAS = \
246 $(if $(VBOX_OSE),,LICENSE) \
247 VBox.png \
248 autoresponse \
249 vboxdrv.conf \
250 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
251 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
252 $(if $(VBOX_WITH_NETADP),hostname.vboxnet0,) \
253 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
254 vboxdrv.sh \
255 VBox.sh \
256 ipsinstall.sh \
257 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
258 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
259 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
260 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
261 virtualbox-webservice.xml \
262 virtualbox-zoneaccess.xml \
263 smf-vboxwebsrv.sh \
264 VBoxQtconfig \
265 VBoxISAExec \
266 vbox.copyright \
267 ReadMe.txt
268
269# These extra Qt libs are purely for running VBoxQtconfig
270ifdef VBOX_WITH_QTGUI
271 SOLARIS_QTLIBS = \
272 libQtXmlVBox.so.4 \
273 libQtSqlVBox.so.4 \
274 libQt3SupportVBox.so.4
275endif
276
277
278ifdef VBOX_WITH_QTGUI
279 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
280 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
281endif
282
283# Documentation (packed as DOCS as they are arch. neutral)
284ifdef VBOX_WITH_DOCS_PACKING
285 SOLARIS_COMMON = \
286 VirtualBox.chm \
287 UserManual.pdf \
288 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
289endif
290
291# Python XPCOM glue
292ifdef VBOX_WITH_PYTHON
293 SOLARIS_COMMON += \
294 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
295 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
296 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
297 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
298 sdk/bindings/xpcom/python/xpcom/server/factory.py \
299 sdk/bindings/xpcom/python/xpcom/server/loader.py \
300 sdk/bindings/xpcom/python/xpcom/server/module.py \
301 sdk/bindings/xpcom/python/xpcom/server/policy.py \
302 sdk/installer/vboxapisetup.py \
303 sdk/installer/vboxapi/__init__.py \
304 sdk/installer/vboxapi/VirtualBox_constants.py
305endif
306
307# VRDP
308ifdef VBOX_WITH_VRDP
309 SOLARIS_STRIP_BINS += \
310 VBoxVRDP.so \
311 VRDPAuth.so
312 SOLARIS_COMMON += \
313 rdesktop-vrdp.tar.gz
314 ifdef VBOX_WITH_VRDP_RDESKTOP
315 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
316 SOLARIS_STRIP_EXES += \
317 rdesktop-vrdp
318 endif
319endif
320
321SOLARIS_STRIP_BINS += \
322 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
323
324SOLARIS_STRIP_EXES += \
325 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
326 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
327 $(if $(VBOX_WITH_WEBSERVICES),webtest)
328
329# Guest Additions
330ifdef VBOX_WITH_ADDITIONS_PACKING
331 SOLARIS_COMMON += \
332 additions/VBoxGuestAdditions.iso
333endif
334
335SOLARIS_ARCH_FILES := \
336 $(SOLARIS_STRIP_EXES) \
337 $(SOLARIS_DRIVER_BINS) \
338 $(SOLARIS_USRBIN_LINKS) \
339 $(SOLARIS_STRIP_BINS) \
340 $(SOLARIS_STRIP_OBJS) \
341 $(SOLARIS_NO_STRIP) \
342 $(SOLARIS_EXTRAS) \
343 $(SOLARIS_QTLIBS) \
344 $(SOLARIS_COMMON)
345
346SOLARIS_DBG_FILES := \
347 $(SOLARIS_STRIP_EXES) \
348 $(SOLARIS_STRIP_BINS) \
349 $(SOLARIS_DRIVER_BINS)
350
351OTHER_CLEAN += \
352 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
353 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
354 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
355 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
356 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
357 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
358 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
359 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
360 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
361
362ifdef VBOX_WITH_COMBINED_PACKAGE
363 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
364 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
365 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
366 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
367 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
368 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
369 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
370 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
371 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
372 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
373 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
374 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
375 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
376 $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython.so) \
377 $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython.so)
378 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
379 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
380else
381 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
382 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
383 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
384 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
385 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
386 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
387 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
388 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
389 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
390endif
391SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON))
392SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
393
394BLDDIRS += $(foreach d,\
395 additions \
396 rdesktop-vrdp-keymaps \
397 $(SOLARIS_DIR_NAME_64) \
398 $(SOLARIS_DIR_NAME_64)/components \
399 $(SOLARIS_DIR_NAME_64)/nls \
400 $(SOLARIS_DIR_NAME_64)/accessible \
401 $(VBOX_SOL_PYTHON_DIR_64) \
402 $(SOLARIS_DIR_NAME_32) \
403 $(SOLARIS_DIR_NAME_32)/components \
404 $(SOLARIS_DIR_NAME_32)/nls \
405 $(SOLARIS_DIR_NAME_32)/accessible \
406 $(if $(VBOX_WITH_PYTHON),\
407 sdk/ \
408 sdk/installer \
409 sdk/installer/vboxapi \
410 sdk/bindings/xpcom/python/xpcom \
411 sdk/bindings/xpcom/python/xpcom/server \
412 sdk/bindings/xpcom/python/xpcom/client,) \
413,$(SOLARIS_VBOXINST_DIR)/$(d)/)
414
415BLDDIRS += $(foreach d,\
416 amd64 \
417,$(SOLARIS_VBI_DIR)/$(d)/)
418
419BLDDIRS += $(foreach d,\
420 additions \
421 components \
422 accessible \
423 $(SOLARIS_DIR_NAME_64) \
424 $(SOLARIS_DIR_NAME_64)/components \
425 $(SOLARIS_DIR_NAME_64)/accessible \
426 $(VBOX_SOL_PYTHON_DIR_64) \
427 $(SOLARIS_DIR_NAME_32) \
428 $(SOLARIS_DIR_NAME_32)/components \
429 $(SOLARIS_DIR_NAME_32)/nls \
430 $(SOLARIS_DIR_NAME_32)/accessible \
431,$(SOLARIS_DBG_DIR)/$(d))
432
433
434include $(KBUILD_PATH)/subfooter.kmk
435
436#
437# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
438#
439
440## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
441# containing any obsolete files the way packing is performed here. Consider recursivly
442# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
443# directory tree.
444$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
445 $(VBOX_VERSION_STAMP) \
446 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
447 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
448 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
449 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
450 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
451 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
452 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
453 $(VBOX_PATH_SOL_INST_SRC)/ipsinstall.sh \
454 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
455 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
456 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
457 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
458 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
459 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
460 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
461 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
462 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf,) \
463 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf,) \
464 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
465 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf,) \
466 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
467 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
468 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
469 VBoxISAExec \
470 $(SOLARIS_ARCH_DEPFILES)
471 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
472ifdef VBOX_WITH_COMBINED_PACKAGE
473 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
474else
475 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
476endif
477 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
478 $(QUIET)$(SED) \
479 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
480 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
481 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
482 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
483 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
484 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
485 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
486 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
487 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
488 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
489 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
490 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_DRIVERINST_DIR)/vboxdrv.conf
491 $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_DRIVERINST_DIR)/vboxflt.conf,)
492 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf $(SOLARIS_DRIVERINST_DIR)/vboxnet.conf,)
493 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
494 $(QUIET)$(if $(VBOX_WITH_USB),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf $(SOLARIS_DRIVERINST_DIR)/vboxusbmon.conf,)
495 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
496 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
497ifdef VBOX_WITH_COMBINED_PACKAGE
498 $(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,)
499 $(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,)
500 @# @todo -XXX- how to get rid of this manual MKDIR ?
501 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
502 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN_32)/VBoxPython.so $(SOLARIS_VBOXINST_DIR)/VBoxPython.so,)
503 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN_64)/VBoxPython.so $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)/VBoxPython.so,)
504 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,)
505 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,)
506 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
507 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
508 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
509 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
510 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
511 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
512 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
513else
514 $(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,)
515 @# @todo -XXX- how to get rid of this manual MKDIR ?
516 ifdef VBOX_WITH_PYTHON
517 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
518 $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN)/VBoxPython.so $(SOLARIS_VBOXINST_DIR)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,)VBoxPython.so
519 endif
520 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,)
521 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
522 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
523 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
524 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
525endif
526 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
527 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
528 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
529 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh $(SOLARIS_VBOXINST_DIR)/smf-vboxwebsrv.sh,)
530 $(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,)
531 $(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,)
532 $(QUIET)$(SED) \
533 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,))/" \
534 --output $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp \
535 $(VBOX_PATH_SOL_INST_SRC)/vboxdrv.sh
536 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh
537 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp
538 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh $(SOLARIS_VBOXINST_DIR)/VBox.sh
539 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/ipsinstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
540 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop,)
541 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
542 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
543 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
544 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
545 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
546 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
547 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
548 $(QUIET)$(SED) \
549 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
550 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
551 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
552 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
553 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
554 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
555 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
556 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
557 $(SOLARIS_BASEINST_DIR) \
558 $(PKG_FILENAME) \
559 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
560 $(VBOX_SVN_REV) \
561 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
562 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
563 @# Clean up files emitted as side-effect or result of packing
564 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
565 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
566 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
567
568
569#
570# 32-bit Main Package
571#
572$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
573 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
574 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
575
576$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
577 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
578 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
579
580$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
581 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
582 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
583
584$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
585 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
586 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
587
588$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
589 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
590 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
591
592$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
593 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
594 $(INSTALL) -m 0644 $< $@
595
596$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
597 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
598 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
599
600#
601# 64-bit Main Package
602#
603$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
604 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
605 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
606
607$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
608 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
609 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
610
611$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
612 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
613 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
614
615$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
616 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
617 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
618
619$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
620 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
621 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
622
623$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
624 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
625 $(INSTALL) -m 0644 $< $@
626
627$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
628 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
629 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
630
631
632#
633# Common (32-bit and 64-bit)
634#
635$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
636 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
637 $(INSTALL) -m 0644 $< $@
638
639#
640# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
641# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
642# as those binaries do not originate from $(PATH_BIN)
643#
644$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
645 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
646 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
647
648
649#
650# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
651#
652$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
653 $(VBOX_VERSION_STAMP) \
654 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
655 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
656 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
657 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
658 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
659 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
660 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
661 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
662 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
663 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
664 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
665 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
666 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
667 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
668 $(QUIET)$(SED) \
669 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
670 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
671 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
672 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
673 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
674 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
675 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
676 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
677 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
678 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
679
680
681#
682# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
683#
684$(PATH_BIN)/$(DBG_ARCHIVE): \
685 $(VBOX_VERSION_STAMP) \
686 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
687 $(SOLARIS_DBG_DEPFILES)
688 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
689 $(call MSG_L1,Packing $@)
690 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
691 $(QUIET)$(CHMOD) 0644 $@
692
693#
694# 32-bit Debug package
695#
696$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
697 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
698 $(SOL_DBG_OBJCOPY) $< $@
699
700$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
701 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
702 $(SOL_DBG_OBJCOPY) $< $@
703
704
705#
706# 64-bit Debug package
707#
708$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
709 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
710 $(SOL_DBG_OBJCOPY) $< $@
711
712$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
713 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
714 $(SOL_DBG_OBJCOPY) $< $@
715
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