VirtualBox

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

Last change on this file since 27124 was 26791, checked in by vboxsync, 15 years ago

Solaris/Installer: build fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 34.5 KB
Line 
1# $Id: Makefile.kmk 26791 2010-02-25 12:21:03Z 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 $(if $(VBOX_WITH_KCHMVIEWER),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 $(if $(VBOX_WITH_QT4_SUN),\
227 libQtCoreVBox.so.4 \
228 libQtGuiVBox.so.4 \
229 libQtNetworkVBox.so.4 \
230 $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \
231 accessible/libqtaccessiblewidgets.so,)) \
232 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
233 $(if $(VBOX_WITH_CROGL),\
234 VBoxOGLhostcrutil.so \
235 VBoxOGLhosterrorspu.so \
236 VBoxOGLrenderspu.so \
237 VBoxSharedCrOpenGL.so) \
238 components/VBoxC.so \
239 components/VBoxSVCM.so \
240 components/VBoxXPCOMIPCC.so
241ifdef VBOX_WITH_HARDENING
242SOLARIS_STRIP_BINS += \
243 VBoxNetDHCP.so \
244 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
245 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
246 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
247endif
248
249# Do not remove relocation information of these binaries
250SOLARIS_STRIP_OBJS = \
251 VBoxDD2GC.gc \
252 VBoxDD2R0.r0 \
253 VBoxDDGC.gc \
254 VBoxDDR0.r0 \
255 VMMGC.gc \
256 VMMR0.r0
257
258# Special differences between 32-bit and 64-bit
259SOLARIS_STRIP_BIN_32 = \
260 VBoxREM32.so \
261 VBoxREM64.so
262
263VBOX_SOL_PYTHON_DIR_64 = 64
264
265# Do not strip anything of these files
266SOLARIS_NO_STRIP = \
267 components/VBoxXPCOMBase.xpt \
268 components/VirtualBox_XPCOM.xpt \
269 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES)) \
270
271SOLARIS_USRBIN_LINKS = \
272 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
273 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
274 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
275 VBoxManage
276
277SOLARIS_COMMON_EXES = \
278 vboxconfig.sh \
279 VBox.sh \
280 pkginstall.sh \
281 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
282 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,) \
283
284# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
285SOLARIS_EXTRAS = \
286 $(if $(VBOX_OSE),,LICENSE) \
287 VBox.png \
288 autoresponse \
289 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
290 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
291 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
292 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
293 virtualbox-webservice.xml \
294 virtualbox-zoneaccess.xml \
295 VBoxQtconfig \
296 VBoxISAExec \
297 vbox.copyright \
298 ReadMe.txt
299
300# These extra Qt libs are purely for running VBoxQtconfig
301ifdef VBOX_WITH_QTGUI
302 SOLARIS_QTLIBS = \
303 $(if $(VBOX_WITH_QT4_SUN),\
304 libQtXmlVBox.so.4 \
305 libQtSqlVBox.so.4 \
306 libQt3SupportVBox.so.4,)
307endif
308
309
310ifdef VBOX_WITH_QTGUI
311 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
312 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
313endif
314
315# Documentation (packed as DOCS as they are arch. neutral)
316ifdef VBOX_WITH_DOCS_PACKING
317 SOLARIS_COMMON = \
318 VirtualBox.chm \
319 UserManual.pdf \
320 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
321endif
322
323# Python XPCOM glue
324ifdef VBOX_WITH_PYTHON
325 SOLARIS_COMMON += \
326 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
327 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
328 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
329 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
330 sdk/bindings/xpcom/python/xpcom/server/factory.py \
331 sdk/bindings/xpcom/python/xpcom/server/loader.py \
332 sdk/bindings/xpcom/python/xpcom/server/module.py \
333 sdk/bindings/xpcom/python/xpcom/server/policy.py \
334 sdk/installer/vboxapisetup.py \
335 sdk/installer/vboxapi/__init__.py \
336 sdk/installer/vboxapi/VirtualBox_constants.py
337endif
338
339# VRDP
340ifdef VBOX_WITH_VRDP
341 SOLARIS_STRIP_BINS += \
342 VBoxVRDP.so \
343 VRDPAuth.so
344 SOLARIS_COMMON += \
345 rdesktop-vrdp.tar.gz
346 ifdef VBOX_WITH_VRDP_RDESKTOP
347 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
348 SOLARIS_STRIP_EXES += \
349 rdesktop-vrdp
350 endif
351endif
352
353SOLARIS_STRIP_BINS += \
354 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
355
356SOLARIS_STRIP_EXES += \
357 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
358 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
359 $(if $(VBOX_WITH_WEBSERVICES),webtest)
360
361# Guest Additions
362ifdef VBOX_WITH_ADDITIONS_PACKING
363 SOLARIS_COMMON += \
364 additions/VBoxGuestAdditions.iso
365endif
366
367
368# EFI firmware
369ifdef VBOX_WITH_EFIFW_PACKING
370 SOLARIS_COMMON += \
371 VBoxEFI32.fd \
372 VBoxEFI64.fd
373endif
374
375SOLARIS_ARCH_FILES := \
376 $(SOLARIS_STRIP_EXES) \
377 $(SOLARIS_DRIVER_BINS) \
378 $(SOLARIS_DRIVER_CONFS) \
379 $(SOLARIS_USRBIN_LINKS) \
380 $(SOLARIS_STRIP_BINS) \
381 $(SOLARIS_STRIP_OBJS) \
382 $(SOLARIS_NO_STRIP) \
383 $(SOLARIS_EXTRAS) \
384 $(SOLARIS_QTLIBS) \
385 $(SOLARIS_COMMON_EXES) \
386 $(SOLARIS_COMMON)
387
388SOLARIS_DBG_FILES := \
389 $(SOLARIS_STRIP_EXES) \
390 $(SOLARIS_STRIP_BINS) \
391 $(SOLARIS_DRIVER_BINS)
392
393OTHER_CLEAN += \
394 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
395 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
396 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
397 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
398 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
399 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
400 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
401 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
402 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
403
404ifdef VBOX_WITH_COMBINED_PACKAGE
405 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
406 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
407 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
408 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
409 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
410 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
411 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
412 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
413 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
414 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
415 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
416 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
417 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
418 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
419 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
420 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
421 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
422else
423 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
424 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
425 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
426 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
427 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
428 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
429 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
430 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
431 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
432 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
433endif
434SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
435 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
436 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
437 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
438
439BLDDIRS += $(foreach d,\
440 additions \
441 rdesktop-vrdp-keymaps \
442 $(SOLARIS_DIR_NAME_64) \
443 $(SOLARIS_DIR_NAME_64)/components \
444 $(SOLARIS_DIR_NAME_64)/nls \
445 $(SOLARIS_DIR_NAME_64)/accessible \
446 $(VBOX_SOL_PYTHON_DIR_64) \
447 $(SOLARIS_DIR_NAME_32) \
448 $(SOLARIS_DIR_NAME_32)/components \
449 $(SOLARIS_DIR_NAME_32)/nls \
450 $(SOLARIS_DIR_NAME_32)/accessible \
451 $(if $(VBOX_WITH_PYTHON),\
452 sdk/ \
453 sdk/installer \
454 sdk/installer/vboxapi \
455 sdk/bindings/xpcom/python/xpcom \
456 sdk/bindings/xpcom/python/xpcom/server \
457 sdk/bindings/xpcom/python/xpcom/client,) \
458,$(SOLARIS_VBOXINST_DIR)/$(d)/)
459
460BLDDIRS += $(foreach d,\
461 amd64 \
462,$(SOLARIS_VBI_DIR)/$(d)/)
463
464BLDDIRS += $(foreach d,\
465 additions \
466 components \
467 accessible \
468 $(SOLARIS_DIR_NAME_64) \
469 $(SOLARIS_DIR_NAME_64)/components \
470 $(SOLARIS_DIR_NAME_64)/accessible \
471 $(VBOX_SOL_PYTHON_DIR_64) \
472 $(SOLARIS_DIR_NAME_32) \
473 $(SOLARIS_DIR_NAME_32)/components \
474 $(SOLARIS_DIR_NAME_32)/nls \
475 $(SOLARIS_DIR_NAME_32)/accessible \
476,$(SOLARIS_DBG_DIR)/$(d))
477
478
479include $(KBUILD_PATH)/subfooter.kmk
480
481#
482# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
483#
484
485## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
486# containing any obsolete files the way packing is performed here. Consider recursivly
487# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
488# directory tree.
489$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
490 $(VBOX_VERSION_STAMP) \
491 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
492 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
493 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
494 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
495 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
496 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
497 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
498 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
499 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
500 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
501 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
502 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
503 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
504 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
505 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
506 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
507 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
508 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
509 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
510 VBoxISAExec \
511 $(SOLARIS_ARCH_DEPFILES)
512 $(QUIET)$(RM) -f $(wildcard $(PATH_BIN)/VirtualBox-*-r*.tar.gz)
513 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
514ifdef VBOX_WITH_COMBINED_PACKAGE
515 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
516else
517 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
518endif
519 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
520 $(QUIET)$(SED) \
521 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
522 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
523 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
524 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
525 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
526 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
527 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
528 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
529 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
530 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
531 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
532 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
533 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
534 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
535 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
536 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
537ifdef VBOX_WITH_COMBINED_PACKAGE
538 ifndef VBOX_OSE
539 $(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,)
540 $(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,)
541 endif
542 @# @todo -XXX- how to get rid of this manual MKDIR ?
543 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
544 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
545 $(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)/,)
546 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),)
547 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),)
548 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
549 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
550 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
551 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
552 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
553 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
554 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
555 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI32.fd,)
556 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI32.fd,)
557 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI64.fd,)
558 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI64.fd,)
559else
560 ifndef VBOX_OSE
561 $(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,)
562 endif
563 @# @todo -XXX- how to get rid of this manual MKDIR ?
564 ifdef VBOX_WITH_PYTHON
565 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
566 $(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)/,)
567 endif
568 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),)
569 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
570 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
571 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
572 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
573 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI32.fd,)
574 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI64.fd,)
575endif
576 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
577 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
578 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
579 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
580 $(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,)
581 $(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,)
582 $(QUIET)$(SED) \
583 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
584 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
585 $(PATH_BIN)/vboxconfig.sh
586 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
587 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
588 $(QUIET)$(SED) \
589 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
590 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop \
591 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop
592 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
593 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
594 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
595 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
596 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
597 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
598 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
599 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
600 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
601 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
602 $(QUIET)$(SED) \
603 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
604 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
605 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
606 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
607 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
608 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
609 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
610 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
611 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
612 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
613 $(SOLARIS_BASEINST_DIR) \
614 $(PKG_FILENAME) \
615 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
616 $(VBOX_SVN_REV) \
617 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
618 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
619 @# Clean up files emitted as side-effect or result of packing
620 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
621 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
622 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
623
624
625#
626# 32-bit Main Package
627#
628$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
629 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
630 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
631
632$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
633 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
634 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
635
636$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
637 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
638 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
639
640$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
641 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
642 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
643
644$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
645 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
646 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
647
648$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
649 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
650 $(INSTALL) -m 0644 $< $@
651
652$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
653 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
654 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
655
656#
657# 64-bit Main Package
658#
659$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
660 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
661 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
662
663$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
664 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
665 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
666
667$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
668 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
669 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
670
671$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
672 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
673 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
674
675$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
676 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
677 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
678
679$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
680 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
681 $(INSTALL) -m 0644 $< $@
682
683$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
684 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
685 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
686
687
688#
689# Common (32-bit and 64-bit)
690#
691$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
692 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
693 $(INSTALL) -m 0644 $< $@
694
695# Driver configuration files
696$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
697 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
698 $(INSTALL) -m 0644 $< $@
699
700# Common executables
701$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
702 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
703 $(INSTALL) -m 0755 $< $@
704
705
706
707#
708# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
709# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
710# as those binaries do not originate from $(PATH_BIN)
711#
712$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
713 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
714 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
715
716
717#
718# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
719#
720ifdef VBOX_WITH_SOLARIS_VBI
721$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
722 $(VBOX_VERSION_STAMP) \
723 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
724 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
725 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
726 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
727 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
728 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
729 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
730 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
731 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
732 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
733 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
734 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
735 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
736 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
737 $(QUIET)$(SED) \
738 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
739 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
740 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
741 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
742 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
743 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
744 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
745 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
746 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
747 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
748 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
749endif
750
751
752#
753# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
754#
755$(PATH_BIN)/$(DBG_ARCHIVE): \
756 $(VBOX_VERSION_STAMP) \
757 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
758 $(SOLARIS_DBG_DEPFILES)
759 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
760 $(call MSG_L1,Packing $@)
761 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
762 $(QUIET)$(CHMOD) 0644 $@
763
764#
765# 32-bit Debug package
766#
767$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
768 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
769 $(SOL_DBG_OBJCOPY) $< $@
770
771$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
772 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
773 $(SOL_DBG_OBJCOPY) $< $@
774
775
776#
777# 64-bit Debug package
778#
779$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
780 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
781 $(SOL_DBG_OBJCOPY) $< $@
782
783$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
784 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
785 $(SOL_DBG_OBJCOPY) $< $@
786
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