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