1 | # $Id: Makefile.kmk 24818 2009-11-20 10:14:25Z 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 | 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 | vboxefi.fv \
|
---|
370 | vboxefi64.fv
|
---|
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_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
519 | -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
|
---|
520 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
521 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
522 | --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
|
---|
523 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
|
---|
524 | @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
|
---|
525 | $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
|
---|
526 | $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
|
---|
527 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
|
---|
528 | $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
|
---|
529 | $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
|
---|
530 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
|
---|
531 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
|
---|
532 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
533 | $(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,)
|
---|
534 | $(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,)
|
---|
535 | @# @todo -XXX- how to get rid of this manual MKDIR ?
|
---|
536 | $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
|
---|
537 | $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
|
---|
538 | $(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)/,)
|
---|
539 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,)
|
---|
540 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,)
|
---|
541 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
|
---|
542 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
|
---|
543 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
|
---|
544 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
|
---|
545 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
|
---|
546 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
|
---|
547 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
|
---|
548 | $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../vboxefi.fv $(SOLARIS_VBOXINST_DIR_64)/vboxefi.fv,)
|
---|
549 | $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../vboxefi.fv $(SOLARIS_VBOXINST_DIR_32)/vboxefi.fv,)
|
---|
550 | $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../vboxefi64.fv $(SOLARIS_VBOXINST_DIR_64)/vboxefi64.fv,)
|
---|
551 | $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../vboxefi64.fv $(SOLARIS_VBOXINST_DIR_32)/vboxefi64.fv,)
|
---|
552 | else
|
---|
553 | $(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,)
|
---|
554 | @# @todo -XXX- how to get rid of this manual MKDIR ?
|
---|
555 | ifdef VBOX_WITH_PYTHON
|
---|
556 | $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
|
---|
557 | $(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)/,)
|
---|
558 | endif
|
---|
559 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,)
|
---|
560 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
|
---|
561 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
|
---|
562 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
|
---|
563 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
|
---|
564 | $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../vboxefi.fv $(SOLARIS_VBOXINST_DIR_ISA)/vboxefi.fv,)
|
---|
565 | endif
|
---|
566 | $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
|
---|
567 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
|
---|
568 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
|
---|
569 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
|
---|
570 | $(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,)
|
---|
571 | $(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,)
|
---|
572 | $(QUIET)$(SED) \
|
---|
573 | -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
|
---|
574 | --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
|
---|
575 | $(PATH_BIN)/vboxconfig.sh
|
---|
576 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
|
---|
577 | $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
|
---|
578 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop,)
|
---|
579 | $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
|
---|
580 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
|
---|
581 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
|
---|
582 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
|
---|
583 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
|
---|
584 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
|
---|
585 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
|
---|
586 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
|
---|
587 | @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
|
---|
588 | $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
|
---|
589 | $(QUIET)$(SED) \
|
---|
590 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
591 | -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
|
---|
592 | -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
|
---|
593 | --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
|
---|
594 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt
|
---|
595 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
596 | $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
|
---|
597 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
|
---|
598 | $(SOLARIS_BASEINST_DIR) \
|
---|
599 | $(PKG_FILENAME) \
|
---|
600 | $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
|
---|
601 | $(VBOX_SVN_REV) \
|
---|
602 | $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
|
---|
603 | $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
|
---|
604 | @# Clean up files emitted as side-effect or result of packing
|
---|
605 | $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
|
---|
606 | $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
|
---|
607 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
608 |
|
---|
609 |
|
---|
610 | #
|
---|
611 | # 32-bit Main Package
|
---|
612 | #
|
---|
613 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
|
---|
614 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
615 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
616 |
|
---|
617 | $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
|
---|
618 | $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
619 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
620 |
|
---|
621 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
|
---|
622 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
623 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
624 |
|
---|
625 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
|
---|
626 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
627 | $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
628 |
|
---|
629 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
|
---|
630 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
631 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
632 |
|
---|
633 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
|
---|
634 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
635 | $(INSTALL) -m 0644 $< $@
|
---|
636 |
|
---|
637 | $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
|
---|
638 | $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
|
---|
639 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
640 |
|
---|
641 | #
|
---|
642 | # 64-bit Main Package
|
---|
643 | #
|
---|
644 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
|
---|
645 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
646 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
647 |
|
---|
648 | $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
|
---|
649 | $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
650 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
651 |
|
---|
652 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
|
---|
653 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
654 | $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
655 |
|
---|
656 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
|
---|
657 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
658 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
659 |
|
---|
660 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
|
---|
661 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
662 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
663 |
|
---|
664 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
|
---|
665 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
666 | $(INSTALL) -m 0644 $< $@
|
---|
667 |
|
---|
668 | $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
|
---|
669 | $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
|
---|
670 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
671 |
|
---|
672 |
|
---|
673 | #
|
---|
674 | # Common (32-bit and 64-bit)
|
---|
675 | #
|
---|
676 | $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
|
---|
677 | $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
|
---|
678 | $(INSTALL) -m 0644 $< $@
|
---|
679 |
|
---|
680 | # Driver configuration files
|
---|
681 | $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
|
---|
682 | $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
|
---|
683 | $(INSTALL) -m 0644 $< $@
|
---|
684 |
|
---|
685 | # Common executables
|
---|
686 | $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
|
---|
687 | $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
|
---|
688 | $(INSTALL) -m 0755 $< $@
|
---|
689 |
|
---|
690 |
|
---|
691 |
|
---|
692 | #
|
---|
693 | # Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
|
---|
694 | # Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
|
---|
695 | # as those binaries do not originate from $(PATH_BIN)
|
---|
696 | #
|
---|
697 | $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
|
---|
698 | $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
|
---|
699 | $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
|
---|
700 |
|
---|
701 |
|
---|
702 | #
|
---|
703 | # -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
|
---|
704 | #
|
---|
705 | ifdef VBOX_WITH_SOLARIS_VBI
|
---|
706 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
|
---|
707 | $(VBOX_VERSION_STAMP) \
|
---|
708 | $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
|
---|
709 | $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
|
---|
710 | $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
|
---|
711 | $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
|
---|
712 | $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
|
---|
713 | $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
|
---|
714 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
|
---|
715 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
|
---|
716 | $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
|
---|
717 | $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
|
---|
718 | $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
|
---|
719 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
|
---|
720 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
|
---|
721 | $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
|
---|
722 | $(QUIET)$(SED) \
|
---|
723 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
724 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
725 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
726 | --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
|
---|
727 | $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
|
---|
728 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
|
---|
729 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
|
---|
730 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
|
---|
731 | $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
|
---|
732 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
|
---|
733 | endif
|
---|
734 |
|
---|
735 |
|
---|
736 | #
|
---|
737 | # -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
|
---|
738 | #
|
---|
739 | $(PATH_BIN)/$(DBG_ARCHIVE): \
|
---|
740 | $(VBOX_VERSION_STAMP) \
|
---|
741 | $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
|
---|
742 | $(SOLARIS_DBG_DEPFILES)
|
---|
743 | $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
|
---|
744 | $(call MSG_L1,Packing $@)
|
---|
745 | $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
|
---|
746 | $(QUIET)$(CHMOD) 0644 $@
|
---|
747 |
|
---|
748 | #
|
---|
749 | # 32-bit Debug package
|
---|
750 | #
|
---|
751 | $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
|
---|
752 | $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
753 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
754 |
|
---|
755 | $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
|
---|
756 | $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
757 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
758 |
|
---|
759 |
|
---|
760 | #
|
---|
761 | # 64-bit Debug package
|
---|
762 | #
|
---|
763 | $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
|
---|
764 | $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
765 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
766 |
|
---|
767 | $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
|
---|
768 | $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
769 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
770 |
|
---|