VirtualBox

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

Last change on this file since 32059 was 31911, checked in by vboxsync, 14 years ago

make the VBOX_WITH_NEW_USB_CODE_ON_SOLARIS code mandatory

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