VirtualBox

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

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

Solaris/Installer: ship and install python bindings.

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