VirtualBox

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

Last change on this file since 33223 was 33185, checked in by vboxsync, 14 years ago

generalized and moved auth modules

  • 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 33185 2010-10-18 08:40:50Z 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# auth stuff
337 SOLARIS_STRIP_BINS += \
338 VBoxAuth.so \
339 VBoxAuthSimple.so
340
341# VRDP
342ifdef VBOX_WITH_VRDP
343 SOLARIS_STRIP_BINS += \
344 VBoxVRDP.so
345 SOLARIS_COMMON += \
346 rdesktop-vrdp.tar.gz
347 ifdef VBOX_WITH_VRDP_RDESKTOP
348 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
349 SOLARIS_STRIP_EXES += \
350 rdesktop-vrdp
351 endif
352endif
353
354SOLARIS_STRIP_BINS += \
355 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
356
357SOLARIS_STRIP_EXES += \
358 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
359 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
360 $(if $(VBOX_WITH_WEBSERVICES),webtest)
361
362# Guest Additions
363ifdef VBOX_WITH_ADDITIONS_PACKING
364 SOLARIS_COMMON += \
365 additions/VBoxGuestAdditions.iso
366endif
367
368
369# EFI firmware
370ifdef VBOX_WITH_EFIFW_PACKING
371 SOLARIS_COMMON += \
372 VBoxEFI32.fd \
373 VBoxEFI64.fd
374endif
375
376SOLARIS_ARCH_FILES := \
377 $(SOLARIS_STRIP_EXES) \
378 $(SOLARIS_DRIVER_BINS) \
379 $(SOLARIS_DRIVER_CONFS) \
380 $(SOLARIS_USRBIN_LINKS) \
381 $(SOLARIS_STRIP_BINS) \
382 $(SOLARIS_STRIP_OBJS) \
383 $(SOLARIS_NO_STRIP) \
384 $(SOLARIS_EXTRAS) \
385 $(SOLARIS_QTLIBS) \
386 $(SOLARIS_COMMON_EXES) \
387 $(SOLARIS_COMMON)
388
389SOLARIS_DBG_FILES := \
390 $(SOLARIS_STRIP_EXES) \
391 $(SOLARIS_STRIP_BINS) \
392 $(SOLARIS_DRIVER_BINS)
393
394OTHER_CLEAN += \
395 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
396 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
397 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
398 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
399 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
400 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
401 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
402 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
403 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
404
405ifdef VBOX_WITH_COMBINED_PACKAGE
406 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
407 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
408 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
409 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
410 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
411 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
412 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
413 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
414 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
415 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
416 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
417 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
418 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
419 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
420 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
421 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
422 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
423else
424 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
425 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
426 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
427 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
428 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
429 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
430 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
431 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
432 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
433 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
434endif
435SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
436 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
437 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
438 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
439
440BLDDIRS += $(foreach d,\
441 additions \
442 rdesktop-vrdp-keymaps \
443 $(SOLARIS_DIR_NAME_64) \
444 $(SOLARIS_DIR_NAME_64)/components \
445 $(SOLARIS_DIR_NAME_64)/nls \
446 $(SOLARIS_DIR_NAME_64)/accessible \
447 $(VBOX_SOL_PYTHON_DIR_64) \
448 $(SOLARIS_DIR_NAME_32) \
449 $(SOLARIS_DIR_NAME_32)/components \
450 $(SOLARIS_DIR_NAME_32)/nls \
451 $(SOLARIS_DIR_NAME_32)/accessible \
452 $(if $(VBOX_WITH_PYTHON),\
453 sdk/ \
454 sdk/installer \
455 sdk/installer/vboxapi \
456 sdk/bindings/xpcom/python/xpcom \
457 sdk/bindings/xpcom/python/xpcom/server \
458 sdk/bindings/xpcom/python/xpcom/client,) \
459 $(if $(VBOX_WITH_JXPCOM), \
460 sdk/bindings/xpcom/java,) \
461,$(SOLARIS_VBOXINST_DIR)/$(d)/)
462
463BLDDIRS += $(foreach d,\
464 amd64 \
465,$(SOLARIS_VBI_DIR)/$(d)/)
466
467BLDDIRS += $(foreach d,\
468 additions \
469 components \
470 accessible \
471 $(SOLARIS_DIR_NAME_64) \
472 $(SOLARIS_DIR_NAME_64)/components \
473 $(SOLARIS_DIR_NAME_64)/accessible \
474 $(VBOX_SOL_PYTHON_DIR_64) \
475 $(SOLARIS_DIR_NAME_32) \
476 $(SOLARIS_DIR_NAME_32)/components \
477 $(SOLARIS_DIR_NAME_32)/nls \
478 $(SOLARIS_DIR_NAME_32)/accessible \
479,$(SOLARIS_DBG_DIR)/$(d))
480
481# List of files to be tar.gz'd, the files will be
482# installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there.
483SOLARIS_TAR_GZ_FILES := \
484 $(PKG_FILENAME).pkg \
485 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,) \
486 $(if $(VBOX_OSE),,LICENSE) \
487 autoresponse \
488 ReadMe.txt
489
490include $(KBUILD_PATH)/subfooter.kmk
491
492#
493# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
494#
495
496## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
497# containing any obsolete files the way packing is performed here. Consider recursivly
498# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
499# directory tree.
500$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
501 $(VBOX_VERSION_STAMP) \
502 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
503 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
504 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
505 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
506 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
507 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
508 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
509 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
510 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
511 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
512 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
513 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
514 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
515 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
516 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
517 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
518 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
519 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
520 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
521 VBoxISAExec \
522 $(SOLARIS_ARCH_DEPFILES)
523 $(QUIET)$(RM) -f $(wildcard $(PATH_BIN)/VirtualBox-*-r*.tar.gz)
524 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
525ifdef VBOX_WITH_COMBINED_PACKAGE
526 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
527else
528 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
529endif
530 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
531 $(QUIET)$(SED) \
532 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
533 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
534 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
535 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
536 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
537 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
538 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
539 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
540 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
541 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
542 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
543 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
544 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
545 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
546 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
547 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
548 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/LICENSE)
549ifdef VBOX_WITH_COMBINED_PACKAGE
550 ifndef VBOX_OSE
551 $(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,)
552 $(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,)
553 endif
554 @# @todo -XXX- how to get rid of this manual MKDIR ?
555 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
556 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
557 $(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)/,)
558 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),)
559 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),)
560 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
561 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
562 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
563 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
564 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
565 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
566 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
567 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI32.fd,)
568 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI32.fd,)
569 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_64)/VBoxEFI64.fd,)
570 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_32)/VBoxEFI64.fd,)
571else
572 ifndef VBOX_OSE
573 $(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,)
574 endif
575 @# @todo -XXX- how to get rid of this manual MKDIR ?
576 ifdef VBOX_WITH_PYTHON
577 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
578 $(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)/,)
579 endif
580 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),)
581 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
582 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
583 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
584 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
585 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI32.fd,)
586 $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_ISA)/VBoxEFI64.fd,)
587endif
588 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
589 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
590 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
591 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
592 $(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,)
593 $(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,)
594 $(QUIET)$(SED) \
595 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
596 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
597 $(PATH_BIN)/vboxconfig.sh
598 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
599 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
600 $(QUIET)$(SED) \
601 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
602 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop \
603 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop
604 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
605 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
606 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
607 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
608 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
609 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
610 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
611 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
612 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
613 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
614 $(QUIET)$(SED) \
615 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
616 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
617 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
618 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
619 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
620 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
621 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
622 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
623 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
624 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
625 $(SOLARIS_BASEINST_DIR) \
626 $(PKG_FILENAME) \
627 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
628 $(VBOX_SVN_REV) \
629 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
630 $(call MSG_L1,Creating final tar.gz package)
631 $(QUIET)$(SOL_GTAR) -C $(SOLARIS_BASEINST_DIR) -zcvf $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_TAR_GZ_FILES)
632 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
633 @# Clean up files emitted as side-effect or result of packing
634 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
635 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
636 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
637 $(call MSG_L1,Packaging completed.)
638
639
640#
641# 32-bit Main Package
642#
643$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
644 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
645 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
646
647$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
648 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
649 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
650
651$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
652 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
653 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
654
655$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
656 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
657 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
658
659$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
660 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
661 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
662
663$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
664 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
665 $(INSTALL) -m 0644 $< $@
666
667$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
668 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
669 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
670
671#
672# 64-bit Main Package
673#
674$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
675 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
676 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
677
678$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
679 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
680 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
681
682$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
683 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
684 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
685
686$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
687 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
688 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
689
690$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
691 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
692 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
693
694$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
695 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
696 $(INSTALL) -m 0644 $< $@
697
698$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
699 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
700 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
701
702
703#
704# Common (32-bit and 64-bit)
705#
706$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
707 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
708 $(INSTALL) -m 0644 $< $@
709
710# Driver configuration files
711$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
712 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
713 $(INSTALL) -m 0644 $< $@
714
715# Common executables
716$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
717 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
718 $(INSTALL) -m 0755 $< $@
719
720
721
722#
723# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
724# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
725# as those binaries do not originate from $(PATH_BIN)
726#
727$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
728 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
729 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
730
731
732#
733# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
734#
735ifdef VBOX_WITH_SOLARIS_VBI
736$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
737 $(VBOX_VERSION_STAMP) \
738 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
739 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
740 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
741 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
742 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
743 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
744 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
745 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
746 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
747 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
748 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
749 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
750 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
751 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
752 $(QUIET)$(SED) \
753 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
754 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
755 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
756 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
757 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
758 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
759 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
760 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
761 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
762 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
763 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
764endif
765
766
767#
768# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
769#
770$(PATH_BIN)/$(DBG_ARCHIVE): \
771 $(VBOX_VERSION_STAMP) \
772 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
773 $(SOLARIS_DBG_DEPFILES)
774 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
775 $(call MSG_L1,Packing $@)
776 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
777 $(QUIET)$(CHMOD) 0644 $@
778
779#
780# 32-bit Debug package
781#
782$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
783 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
784 $(SOL_DBG_OBJCOPY) $< $@
785
786$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
787 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
788 $(SOL_DBG_OBJCOPY) $< $@
789
790
791#
792# 64-bit Debug package
793#
794$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
795 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
796 $(SOL_DBG_OBJCOPY) $< $@
797
798$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
799 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
800 $(SOL_DBG_OBJCOPY) $< $@
801
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