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