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