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