1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Solaris installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | ifneq ($(KBUILD_HOST),solaris)
|
---|
32 | $(error "The Solaris installer can only be built on Solaris!") # yeah, right.
|
---|
33 | endif
|
---|
34 |
|
---|
35 |
|
---|
36 | #
|
---|
37 | # Globals
|
---|
38 | #
|
---|
39 | VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
|
---|
40 | VBOX_PATH_SI_SCRATCH := $(PATH_TARGET)/Installer-solaris
|
---|
41 | VBOX_PATH_SI_SCRATCH_PKG := $(PATH_TARGET)/Installer-solaris/pkg
|
---|
42 | VBOX_PATH_SI_SCRATCH_DBG := $(PATH_TARGET)/Installer-solaris/DebugPkg
|
---|
43 | VBOX_SI_ARCH := $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
44 | VBOX_SI_ICON_TYPES := ova ovf vbox vbox-extpack vdi vmdk vhd hdd
|
---|
45 | VBOX_SI_ICON_SIZES := 16 20 24 32 48 64 72 96 128 256
|
---|
46 | VBOX_SI_GTAR := /usr/sfw/bin/gtar
|
---|
47 | VBOX_SI_OBJCOPY_STRIP := /usr/sfw/bin/gobjcopy --strip-debug -R .comment
|
---|
48 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
49 | VBOX_SI_OBJCOPY_DBGINFO := /usr/sfw/bin/gobjcopy --only-keep-debug
|
---|
50 | else
|
---|
51 | VBOX_SI_OBJCOPY_DBGINFO := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.
|
---|
52 | endif
|
---|
53 |
|
---|
54 | # Unset this to speed up things during makefile hacking.
|
---|
55 | VBOX_SI_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
|
---|
56 |
|
---|
57 |
|
---|
58 | # Base package
|
---|
59 | PKGINFO_ARCH = $(shell uname -p)
|
---|
60 | PKGINFO_DATE = $(date %Y.%m.%d.%H.%M.%S)
|
---|
61 | PKGINFO_REVSTAMP = $(PKGINFO_DATE).$(VBOX_SVN_REV)
|
---|
62 | PKGINFO_PSTAMP = vbox_$(subst .,,$(PKGINFO_DATE))_r$(VBOX_SVN_REV)
|
---|
63 | PKG_FILENAME := VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
|
---|
64 |
|
---|
65 | # For Alpha, Beta, RC and releases VBOX_VERSION_STRING needs to be converted into the variant
|
---|
66 | # which complies to Solaris 11 Image Packaging System (IPS) versioning convention. For GA release,
|
---|
67 | # we add '.3.0' to the end of the version string in order to make its version look newer from
|
---|
68 | # IPS point of view.
|
---|
69 | VBOX_VERSION_SMF_STYLE := $(subst _ALPHA,.0.,$(VBOX_VERSION_STRING))
|
---|
70 | VBOX_VERSION_SMF_STYLE := $(subst _BETA,.1.,$(VBOX_VERSION_SMF_STYLE))
|
---|
71 | VBOX_VERSION_SMF_STYLE := $(subst _RC,.2.,$(VBOX_VERSION_SMF_STYLE))
|
---|
72 | VBOX_VERSION_SMF_STYLE := $(if $(VBOX_VERSION_PRERELEASE),$(VBOX_VERSION_SMF_STYLE),$(VBOX_VERSION_SMF_STYLE).3.0)
|
---|
73 | PKG_FILENAME_SMF_STYLE := VirtualBox-$(VBOX_VERSION_SMF_STYLE)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
|
---|
74 |
|
---|
75 | #
|
---|
76 | # Targets
|
---|
77 | #
|
---|
78 | PROGRAMS += VBoxZoneAccess VBoxISAExec
|
---|
79 | INSTALLS += solaris-doc solaris-bin solaris-drv-confs solaris-icons
|
---|
80 | BLDDIRS += $(VBOX_PATH_SI_SCRATCH)
|
---|
81 | PACKING += \
|
---|
82 | $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz \
|
---|
83 | $(if $(VBOX_WITH_SOLARIS_IPS_PACKAGE),$(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p,) \
|
---|
84 | $(PATH_STAGE_BIN)/VirtualBoxDebug.tar.bz2
|
---|
85 | OTHER_CLEAN += \
|
---|
86 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg \
|
---|
87 | $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz \
|
---|
88 | $(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p \
|
---|
89 | $(PATH_STAGE_BIN)/VirtualBoxDebug.tar.bz2 \
|
---|
90 | $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts
|
---|
91 |
|
---|
92 | #
|
---|
93 | # VBoxZoneAccess
|
---|
94 | #
|
---|
95 | VBoxZoneAccess_TEMPLATE = VBOXR3EXE
|
---|
96 | VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
97 | VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
|
---|
98 | VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
|
---|
99 |
|
---|
100 | #
|
---|
101 | # VBoxISAExec
|
---|
102 | #
|
---|
103 | VBoxISAExec_TEMPLATE = VBOXR3EXE
|
---|
104 | VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
105 | VBoxISAExec_SOURCES = VBoxISAExec.c
|
---|
106 |
|
---|
107 | #
|
---|
108 | # Solaris installs.
|
---|
109 | #
|
---|
110 | solaris-doc_INST = bin/
|
---|
111 | solaris-doc_MODE = a+r,u+w
|
---|
112 | solaris-doc_SOURCES = \
|
---|
113 | $(VBOX_BRAND_LICENSE_TXT)=>LICENSE \
|
---|
114 | $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png \
|
---|
115 | $(PATH_ROOT)/src/VBox/Artwork/$(if $(VBOX_OSE),OSE,NonOSE)/virtualbox-128px.png=>virtualbox.png
|
---|
116 |
|
---|
117 | solaris-bin_INST = bin/
|
---|
118 | solaris-bin_MODE = a+rx,u+w
|
---|
119 | solaris-bin_SOURCES = \
|
---|
120 | $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \
|
---|
121 | $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \
|
---|
122 | $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
|
---|
123 | $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \
|
---|
124 | $(VBOX_PATH_SOL_INST_SRC)/smf-vboxballoonctrl.sh \
|
---|
125 | $(VBOX_PATH_SOL_INST_SRC)/smf-vboxautostart.sh \
|
---|
126 | $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,)
|
---|
127 |
|
---|
128 | solaris-drv-confs_INST = bin/
|
---|
129 | solaris-drv-confs_MODE = a+r,u+w
|
---|
130 | solaris-drv-confs_SOURCES = \
|
---|
131 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
|
---|
132 | $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
|
---|
133 | $(if $(VBOX_WITH_NETFLT_CROSSBOW),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf) \
|
---|
134 | $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
|
---|
135 | $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \
|
---|
136 | $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf)
|
---|
137 |
|
---|
138 | solaris-icons_INST = bin/icons/
|
---|
139 | solaris-icons_MODE = a+r,u+w
|
---|
140 | solaris-icons_SOURCES = $(foreach f,$(VBOX_SI_ICON_TYPES), $(foreach s,$(VBOX_SI_ICON_SIZES)\
|
---|
141 | ,$(PATH_ROOT)/src/VBox/Artwork/other/virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/mimetypes/virtualbox-$(f).png))
|
---|
142 |
|
---|
143 |
|
---|
144 | #
|
---|
145 | # What follows is various files lists (and a symlink list) that lists various
|
---|
146 | # types of files going from/to various places during installation.
|
---|
147 | #
|
---|
148 | # Each list has the following attributes (used by makefile command and
|
---|
149 | # dependency generation):
|
---|
150 | # .SUBDIRS := <yes|no>
|
---|
151 | # .STRIP := <yes|objcopy|no>
|
---|
152 | # .MODE := <0644|0755>
|
---|
153 | # .SRC := <Directory to copy the files from>
|
---|
154 | # .DST := <Directory to copy the files to>
|
---|
155 | #
|
---|
156 |
|
---|
157 |
|
---|
158 | ## List of file list variable names.
|
---|
159 | SOLARIS_FILE_LIST_VARS :=
|
---|
160 |
|
---|
161 | ## @def SOLARIS_ETC_FILES
|
---|
162 | # System-wide configuration files to copy from VBOX_PATH_SOL_INST_SRC to /etc.
|
---|
163 | SOLARIS_FILE_LIST_VARS += SOLARIS_ETC_FILES
|
---|
164 | SOLARIS_ETC_FILES.SUBDIRS := yes
|
---|
165 | SOLARIS_ETC_FILES.STRIP := no
|
---|
166 | SOLARIS_ETC_FILES.MODE := 0644
|
---|
167 | SOLARIS_ETC_FILES.SRC := $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris
|
---|
168 | SOLARIS_ETC_FILES.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/etc
|
---|
169 | SOLARIS_ETC_FILES := $(if-expr defined(VBOX_WITH_NETADP),hostname.vboxnet0,)
|
---|
170 |
|
---|
171 | ## @def SOLARIS_SMF_FILES
|
---|
172 | # Service management facility manifest files to copy from VBOX_PATH_SOL_INST_SRC to /var/svc/manifest/application/virtualbox/.
|
---|
173 | SOLARIS_FILE_LIST_VARS += SOLARIS_SMF_FILES
|
---|
174 | SOLARIS_SMF_FILES.SUBDIRS := yes
|
---|
175 | SOLARIS_SMF_FILES.STRIP := no
|
---|
176 | SOLARIS_SMF_FILES.MODE := 0644
|
---|
177 | SOLARIS_SMF_FILES.SRC := $(VBOX_PATH_SOL_INST_SRC)
|
---|
178 | SOLARIS_SMF_FILES.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/var/svc/manifest/application/virtualbox
|
---|
179 | SOLARIS_SMF_FILES = \
|
---|
180 | virtualbox-zoneaccess.xml \
|
---|
181 | virtualbox-balloonctrl.xml \
|
---|
182 | virtualbox-autostart.xml \
|
---|
183 | $(if-expr defined(VBOX_WITH_WEBSERVICES),virtualbox-webservice.xml,)
|
---|
184 |
|
---|
185 | ## @def SOLARIS_MIME_INFO_FILES
|
---|
186 | # MIME info files to be copied directly from VBOX_PATH_SOL_INST_SRC to /usr/share/mime-info/.
|
---|
187 | SOLARIS_FILE_LIST_VARS += SOLARIS_MIME_INFO_FILES
|
---|
188 | SOLARIS_MIME_INFO_FILES.SUBDIRS := yes
|
---|
189 | SOLARIS_MIME_INFO_FILES.STRIP := no
|
---|
190 | SOLARIS_MIME_INFO_FILES.MODE := 0644
|
---|
191 | SOLARIS_MIME_INFO_FILES.SRC := $(VBOX_PATH_SOL_INST_SRC)
|
---|
192 | SOLARIS_MIME_INFO_FILES.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime-info
|
---|
193 | SOLARIS_MIME_INFO_FILES = \
|
---|
194 | virtualbox.keys \
|
---|
195 | virtualbox.mime
|
---|
196 |
|
---|
197 | ## @def SOLARIS_PIXMAP_FILES
|
---|
198 | # Bitmap files to copy directly from INST_BIN to /usr/share/pixmaps/.
|
---|
199 | SOLARIS_FILE_LIST_VARS += SOLARIS_PIXMAP_FILES
|
---|
200 | SOLARIS_PIXMAP_FILES.SUBDIRS = no
|
---|
201 | SOLARIS_PIXMAP_FILES.STRIP = no
|
---|
202 | SOLARIS_PIXMAP_FILES.MODE = 0644
|
---|
203 | SOLARIS_PIXMAP_FILES.SRC = $(PATH_STAGE_BIN)
|
---|
204 | SOLARIS_PIXMAP_FILES.DST = $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/pixmaps
|
---|
205 | SOLARIS_PIXMAP_FILES = \
|
---|
206 | VBox.png \
|
---|
207 | virtualbox.png
|
---|
208 |
|
---|
209 |
|
---|
210 | ## @def SOLARIS_INSTALLER_SCRIPTS
|
---|
211 | # Installer shell scripts that gets copied directly from VBOX_PATH_SOL_INST_SRC to VBOX_PATH_SI_SCRATCH_PKG (/).
|
---|
212 | SOLARIS_FILE_LIST_VARS += SOLARIS_INSTALLER_SCRIPTS
|
---|
213 | SOLARIS_INSTALLER_SCRIPTS.SUBDIRS = no
|
---|
214 | SOLARIS_INSTALLER_SCRIPTS.STRIP = no
|
---|
215 | SOLARIS_INSTALLER_SCRIPTS.MODE = 0755
|
---|
216 | SOLARIS_INSTALLER_SCRIPTS.SRC = $(VBOX_PATH_SOL_INST_SRC)
|
---|
217 | SOLARIS_INSTALLER_SCRIPTS.DST = $(VBOX_PATH_SI_SCRATCH_PKG)
|
---|
218 | SOLARIS_INSTALLER_SCRIPTS = \
|
---|
219 | postinstall.sh \
|
---|
220 | checkinstall.sh \
|
---|
221 | preremove.sh \
|
---|
222 | makepackage.sh
|
---|
223 |
|
---|
224 | ## @def SOLARIS_INSTALLER_FILES
|
---|
225 | # Installer files that gets copied directly from VBOX_PATH_SOL_INST_SRC to VBOX_PATH_SI_SCRATCH_PKG (/).
|
---|
226 | SOLARIS_FILE_LIST_VARS += SOLARIS_INSTALLER_FILES
|
---|
227 | SOLARIS_INSTALLER_FILES.SUBDIRS = no
|
---|
228 | SOLARIS_INSTALLER_FILES.STRIP = no
|
---|
229 | SOLARIS_INSTALLER_FILES.MODE = 0644
|
---|
230 | SOLARIS_INSTALLER_FILES.SRC = $(VBOX_PATH_SOL_INST_SRC)
|
---|
231 | SOLARIS_INSTALLER_FILES.DST = $(VBOX_PATH_SI_SCRATCH_PKG)
|
---|
232 | SOLARIS_INSTALLER_FILES = \
|
---|
233 | vbox.space
|
---|
234 |
|
---|
235 | ## @def SOLARIS_INSTALLER_LICENSE
|
---|
236 | # List of files that are copied directly from INST_BIN to VBOX_PATH_SI_SCRATCH_PKG (/).
|
---|
237 | # LICENSE is needed by IPS packaging only.
|
---|
238 | SOLARIS_FILE_LIST_VARS += SOLARIS_INSTALLER_LICENSE
|
---|
239 | SOLARIS_INSTALLER_LICENSE.SUBDIRS := no
|
---|
240 | SOLARIS_INSTALLER_LICENSE.STRIP := no
|
---|
241 | SOLARIS_INSTALLER_LICENSE.MODE := 0644
|
---|
242 | SOLARIS_INSTALLER_LICENSE.SRC := $(PATH_STAGE_BIN)
|
---|
243 | SOLARIS_INSTALLER_LICENSE.DST := $(VBOX_PATH_SI_SCRATCH_PKG)
|
---|
244 | SOLARIS_INSTALLER_LICENSE = \
|
---|
245 | LICENSE
|
---|
246 |
|
---|
247 | ## @def SOLARIS_DRIVER_BINS
|
---|
248 | # List of kernel module files that are copied from INST_BIN to platform/i86pc/kernel/drv/[amd64/] and stripped of debug info.
|
---|
249 | SOLARIS_FILE_LIST_VARS += SOLARIS_DRIVER_BINS
|
---|
250 | SOLARIS_DRIVER_BINS.SUBDIRS := no
|
---|
251 | SOLARIS_DRIVER_BINS.STRIP := no
|
---|
252 | SOLARIS_DRIVER_BINS.MODE := 0644
|
---|
253 | SOLARIS_DRIVER_BINS.SRC := $(PATH_STAGE_BIN)
|
---|
254 | SOLARIS_DRIVER_BINS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/platform/i86pc/kernel/drv/$(subst x86,,$(KBUILD_TARGET_ARCH))
|
---|
255 | SOLARIS_DRIVER_BINS = \
|
---|
256 | vboxdrv \
|
---|
257 | $(if $(VBOX_WITH_NETFLT),vboxflt,) \
|
---|
258 | $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow,) \
|
---|
259 | $(if $(VBOX_WITH_NETADP),vboxnet,) \
|
---|
260 | $(if $(VBOX_WITH_USB),vboxusbmon,) \
|
---|
261 | $(if $(VBOX_WITH_USB),vboxusb,)
|
---|
262 |
|
---|
263 | ## @def SOLARIS_DRIVER_CONFS
|
---|
264 | # List of kernel module configuration files that are copied directly from INST_BIN to platform/i86pc/kernel/drv/.
|
---|
265 | SOLARIS_FILE_LIST_VARS += SOLARIS_DRIVER_CONFS
|
---|
266 | SOLARIS_DRIVER_CONFS.SUBDIRS := no
|
---|
267 | SOLARIS_DRIVER_CONFS.STRIP := no
|
---|
268 | SOLARIS_DRIVER_CONFS.MODE := 0644
|
---|
269 | SOLARIS_DRIVER_CONFS.SRC := $(PATH_STAGE_BIN)
|
---|
270 | SOLARIS_DRIVER_CONFS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/platform/i86pc/kernel/drv
|
---|
271 | SOLARIS_DRIVER_CONFS = \
|
---|
272 | vboxdrv.conf \
|
---|
273 | $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
|
---|
274 | $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow.conf,) \
|
---|
275 | $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
|
---|
276 | $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
|
---|
277 | $(if $(VBOX_WITH_USB),vboxusb.conf,)
|
---|
278 |
|
---|
279 | ## @def SOLARIS_COMMON
|
---|
280 | # List of files that are copied directly from INST_BIN to /opt/VirtualBox/.
|
---|
281 | SOLARIS_FILE_LIST_VARS += SOLARIS_COMMON
|
---|
282 | SOLARIS_COMMON.SUBDIRS := yes
|
---|
283 | SOLARIS_COMMON.STRIP := no
|
---|
284 | SOLARIS_COMMON.MODE := 0644
|
---|
285 | SOLARIS_COMMON.SRC := $(PATH_STAGE_BIN)
|
---|
286 | SOLARIS_COMMON.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox
|
---|
287 | SOLARIS_COMMON = \
|
---|
288 | LICENSE
|
---|
289 |
|
---|
290 | ## @def SOLARIS_COMMON_EXES
|
---|
291 | # List of executable script (and VBoxISAExec) files that are copied directly from INST_BIN to /opt/VirtualBox/.
|
---|
292 | SOLARIS_FILE_LIST_VARS += SOLARIS_COMMON_EXES
|
---|
293 | SOLARIS_COMMON_EXES.SUBDIRS := no
|
---|
294 | SOLARIS_COMMON_EXES.STRIP := no
|
---|
295 | SOLARIS_COMMON_EXES.MODE := 0755
|
---|
296 | SOLARIS_COMMON_EXES.SRC := $(PATH_STAGE_BIN)
|
---|
297 | SOLARIS_COMMON_EXES.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox
|
---|
298 | SOLARIS_COMMON_EXES = \
|
---|
299 | VBoxISAExec
|
---|
300 |
|
---|
301 | ## @def SOLARIS_COMMON_BINS
|
---|
302 | # List of INST_BIN shared libraries that should be copied into /opt/VirtualBox/ and stripped.
|
---|
303 | SOLARIS_FILE_LIST_VARS += SOLARIS_COMMON_STRIP_BINS
|
---|
304 | SOLARIS_COMMON_STRIP_BINS.SUBDIRS := yes
|
---|
305 | SOLARIS_COMMON_STRIP_BINS.STRIP := yes
|
---|
306 | SOLARIS_COMMON_STRIP_BINS.MODE := 0644
|
---|
307 | SOLARIS_COMMON_STRIP_BINS.SRC := $(PATH_STAGE_BIN)
|
---|
308 | SOLARIS_COMMON_STRIP_BINS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/
|
---|
309 | SOLARIS_COMMON_STRIP_BINS =
|
---|
310 |
|
---|
311 | ## @def SOLARIS_STRIP_EXES
|
---|
312 | # List of exectuables files that are copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/ and stripped of debug info.
|
---|
313 | SOLARIS_FILE_LIST_VARS += SOLARIS_STRIP_EXES
|
---|
314 | SOLARIS_STRIP_EXES.SUBDIRS := no
|
---|
315 | SOLARIS_STRIP_EXES.STRIP := yes
|
---|
316 | SOLARIS_STRIP_EXES.MODE := 0755
|
---|
317 | SOLARIS_STRIP_EXES.SRC := $(PATH_STAGE_BIN)
|
---|
318 | SOLARIS_STRIP_EXES.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
319 | SOLARIS_STRIP_EXES = \
|
---|
320 | VBoxZoneAccess \
|
---|
321 | $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \
|
---|
322 | VBoxManage \
|
---|
323 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
|
---|
324 | $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
|
---|
325 | VBoxNetDHCP \
|
---|
326 | VBoxNetNAT \
|
---|
327 | $(if $(VBOX_WITH_EXTPACK),VBoxExtPackHelperApp,) \
|
---|
328 | VBoxSVC \
|
---|
329 | $(if $(VBOX_WITH_VMSVGA3D), VBoxTestOGL,) \
|
---|
330 | VBoxXPCOMIPCD \
|
---|
331 | $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) \
|
---|
332 | $(if $(VBOX_WITH_HOST_SHIPPING_AUDIO_TEST),VBoxAudioTest,)
|
---|
333 |
|
---|
334 | ## @def SOLARIS_STRIP_BINS
|
---|
335 | # List of shared libraries that are copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/ and stripped of debug info.
|
---|
336 | SOLARIS_FILE_LIST_VARS += SOLARIS_STRIP_BINS
|
---|
337 | SOLARIS_STRIP_BINS.SUBDIRS := yes
|
---|
338 | SOLARIS_STRIP_BINS.STRIP := yes
|
---|
339 | SOLARIS_STRIP_BINS.MODE := 0644
|
---|
340 | SOLARIS_STRIP_BINS.SRC := $(PATH_STAGE_BIN)
|
---|
341 | SOLARIS_STRIP_BINS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
342 | SOLARIS_STRIP_BINS = \
|
---|
343 | VBoxDD.so \
|
---|
344 | VBoxDD2.so \
|
---|
345 | VBoxRT.so \
|
---|
346 | VBoxDDU.so \
|
---|
347 | VBoxVMM.so \
|
---|
348 | VBoxXPCOM.so \
|
---|
349 | VBoxXPCOMC.so \
|
---|
350 | $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
|
---|
351 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
|
---|
352 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBoxDragAndDropSvc.so,) \
|
---|
353 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
|
---|
354 | $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
|
---|
355 | VBoxHostChannel.so \
|
---|
356 | $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
|
---|
357 | $(if $(VBOX_WITH_QTGUI),\
|
---|
358 | VBoxKeyboard.so) \
|
---|
359 | $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so DbgPlugInDiggers.so,) \
|
---|
360 | components/VBoxC.so \
|
---|
361 | components/VBoxSVCM.so \
|
---|
362 | components/VBoxXPCOMIPCC.so
|
---|
363 |
|
---|
364 | ifdef VBOX_WITH_QTGUI
|
---|
365 | ifdef VBOX_WITH_ORACLE_QT
|
---|
366 | SOLARIS_STRIP_BINS += \
|
---|
367 | $(notdir $(wildcard $(PATH_STAGE_BIN)/lib*VBox*)) \
|
---|
368 | $(VBOX_QT_PLUGINS)
|
---|
369 | endif
|
---|
370 | endif #VBOX_WITH_QTGUI
|
---|
371 |
|
---|
372 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
373 | SOLARIS_STRIP_BINS += \
|
---|
374 | VBoxRT-x86.so \
|
---|
375 | VBoxXPCOM-x86.so \
|
---|
376 | components/VBoxClient-x86.so \
|
---|
377 | components/VBoxSVCM-x86.so \
|
---|
378 | components/VBoxXPCOMIPCC-x86.so
|
---|
379 | endif
|
---|
380 | ifdef VBOX_WITH_HARDENING
|
---|
381 | SOLARIS_STRIP_BINS += \
|
---|
382 | VBoxNetDHCP.so \
|
---|
383 | VBoxNetNAT.so \
|
---|
384 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
|
---|
385 | $(if $(VBOX_WITH_QTGUI),VirtualBoxVM.so UICommon.so,)
|
---|
386 | endif
|
---|
387 |
|
---|
388 | ## @def SOLARIS_STRIP_OBJS
|
---|
389 | # List of relocable object files to be copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/ and carefully
|
---|
390 | # stripped of debug info but not relocation information. These are the ring-0 and raw-mode context modules.
|
---|
391 | SOLARIS_FILE_LIST_VARS += SOLARIS_STRIP_OBJS
|
---|
392 | SOLARIS_STRIP_OBJS.SUBDIRS := no
|
---|
393 | SOLARIS_STRIP_OBJS.STRIP := objcopy
|
---|
394 | SOLARIS_STRIP_OBJS.MODE := 0644
|
---|
395 | SOLARIS_STRIP_OBJS.SRC := $(PATH_STAGE_BIN)
|
---|
396 | SOLARIS_STRIP_OBJS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
397 | SOLARIS_STRIP_OBJS = \
|
---|
398 | VBoxDDR0.r0 \
|
---|
399 | VMMR0.r0
|
---|
400 | ifdef VBOX_WITH_RAW_MODE
|
---|
401 | SOLARIS_STRIP_OBJS += \
|
---|
402 | VBoxDDRC.rc \
|
---|
403 | VMMRC.rc
|
---|
404 | endif
|
---|
405 |
|
---|
406 | ## @def SOLARIS_NO_STRIP
|
---|
407 | # List of data files that should be copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/.
|
---|
408 | SOLARIS_FILE_LIST_VARS += SOLARIS_NO_STRIP
|
---|
409 | SOLARIS_NO_STRIP.SUBDIRS := yes
|
---|
410 | SOLARIS_NO_STRIP.STRIP := no
|
---|
411 | SOLARIS_NO_STRIP.MODE := 0644
|
---|
412 | SOLARIS_NO_STRIP.SRC := $(PATH_STAGE_BIN)
|
---|
413 | SOLARIS_NO_STRIP.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
414 | SOLARIS_NO_STRIP = \
|
---|
415 | components/VBoxXPCOMBase.xpt \
|
---|
416 | components/VirtualBox_XPCOM.xpt \
|
---|
417 | $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
|
---|
418 |
|
---|
419 | ## @def SOLARIS_USRBIN_LINKS
|
---|
420 | # List of links to create in /usr/bin to /opt/VirtualBox/VBox.sh.
|
---|
421 | # Naturally no subdirectories.
|
---|
422 | SOLARIS_USRBIN_LINKS = \
|
---|
423 | $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \
|
---|
424 | $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
|
---|
425 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
|
---|
426 | VBoxManage \
|
---|
427 | $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) \
|
---|
428 | $(if $(VBOX_WITH_HOST_SHIPPING_AUDIO_TEST),VBoxAudioTest,)
|
---|
429 |
|
---|
430 | SOLARIS_COMMON_EXES += \
|
---|
431 | vboxconfig.sh \
|
---|
432 | VBox.sh \
|
---|
433 | pkginstall.sh \
|
---|
434 | smf-vboxballoonctrl.sh \
|
---|
435 | smf-vboxautostart.sh \
|
---|
436 | $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,)
|
---|
437 |
|
---|
438 |
|
---|
439 | # Documentation (packed as DOCS as they are arch. neutral)
|
---|
440 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
441 | SOLARIS_COMMON += \
|
---|
442 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox.chm,) \
|
---|
443 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual.qch UserManual.qhc,) \
|
---|
444 | UserManual.pdf \
|
---|
445 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
446 | $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox_$(f).chm,) \
|
---|
447 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual_$(f).qch UserManual_$(f).qhc,) \
|
---|
448 | UserManual_$(f).pdf)
|
---|
449 | endif
|
---|
450 |
|
---|
451 | # Python XPCOM glue
|
---|
452 | ifdef VBOX_WITH_PYTHON
|
---|
453 | SOLARIS_COMMON += \
|
---|
454 | $(VBOXINST_SDK_BINDINGS_XPCOM_PYTHON_FILES) \
|
---|
455 | $(VBOXINST_SDK_INSTALLER_PYTHON_FILES)
|
---|
456 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
457 | SOLARIS_PYTHON_32_ON_64_BINS = $(notdir $(wildcard $(PATH_STAGE_BIN)/VBoxPython*_x86.so))
|
---|
458 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
459 | SOLARIS_COMMON_STRIP_BINS += $(SOLARIS_PYTHON_32_ON_64_BINS)
|
---|
460 | endif
|
---|
461 | SOLARIS_COMMON_STRIP_BINS += $(filter-out $(SOLARIS_PYTHON_32_ON_64_BINS), $(notdir $(wildcard $(PATH_STAGE_BIN)/VBoxPython*.so)))
|
---|
462 | else
|
---|
463 | SOLARIS_COMMON_STRIP_BINS += $(notdir $(wildcard $(PATH_STAGE_BIN)/VBoxPython*.so)))
|
---|
464 | endif
|
---|
465 | endif
|
---|
466 |
|
---|
467 | ifdef VBOX_WITH_JXPCOM
|
---|
468 | SOLARIS_COMMON += \
|
---|
469 | sdk/bindings/xpcom/java/vboxjxpcom.jar
|
---|
470 | endif
|
---|
471 |
|
---|
472 | # auth stuff
|
---|
473 | SOLARIS_STRIP_BINS += \
|
---|
474 | VBoxAuth.so \
|
---|
475 | VBoxAuthSimple.so
|
---|
476 |
|
---|
477 | # VRDP
|
---|
478 | ifdef VBOX_WITH_VRDP
|
---|
479 | ifndef VBOX_WITH_EXTPACK_PUEL
|
---|
480 | SOLARIS_STRIP_BINS += \
|
---|
481 | VBoxVRDP.so
|
---|
482 | endif
|
---|
483 | endif
|
---|
484 |
|
---|
485 | SOLARIS_STRIP_BINS += \
|
---|
486 | $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
|
---|
487 |
|
---|
488 | SOLARIS_STRIP_EXES += \
|
---|
489 | $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
|
---|
490 | VBoxBugReport \
|
---|
491 | VBoxBalloonCtrl \
|
---|
492 | VBoxAutostart \
|
---|
493 | $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
|
---|
494 | $(if $(VBOX_WITH_VBOX_IMG)$(VBOX_WITH_TESTCASES),vbox-img)
|
---|
495 |
|
---|
496 | # Guest Additions
|
---|
497 | ifdef VBOX_WITH_ADDITIONS_PACKING
|
---|
498 | # SOLARIS_COMMON += \
|
---|
499 | # additions/VBoxGuestAdditions.iso
|
---|
500 | endif
|
---|
501 |
|
---|
502 |
|
---|
503 | # EFI firmware
|
---|
504 | ifdef VBOX_WITH_EFIFW_PACKING
|
---|
505 | SOLARIS_COMMON += \
|
---|
506 | VBoxEFI32.fd \
|
---|
507 | VBoxEFI64.fd
|
---|
508 | endif
|
---|
509 |
|
---|
510 | # Unattended installation template scripts.
|
---|
511 | ifdef VBOX_UNATTENDED_TEMPLATES
|
---|
512 | SOLARIS_COMMON += $(addprefix UnattendedTemplates/,$(VBOX_UNATTENDED_TEMPLATES))
|
---|
513 | endif
|
---|
514 |
|
---|
515 | # DTrace library, testcase and scripts (as the rest of this file, this makes bold
|
---|
516 | # ASSUMPTIONS about VBPX_INST_XXX variable values).
|
---|
517 | ifdef VBOX_WITH_DTRACE
|
---|
518 | SOLARIS_COMMON += \
|
---|
519 | $(addprefix dtrace/lib/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_LIB_ARCH_FILES)) \
|
---|
520 | $(addprefix dtrace/testcase/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_TESTCASE_ARCH_FILES)) \
|
---|
521 | $(addprefix dtrace/scripts/,$(VBOXINST_DTRACE_SCRIPTS_FILES))
|
---|
522 | endif
|
---|
523 |
|
---|
524 |
|
---|
525 | #
|
---|
526 | # End of file lists.
|
---|
527 | #
|
---|
528 |
|
---|
529 |
|
---|
530 |
|
---|
531 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
532 |
|
---|
533 |
|
---|
534 | #
|
---|
535 | # Copy all files needed for packaging into the final directory structure
|
---|
536 | #
|
---|
537 | $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts: \
|
---|
538 | $(VBOX_VERSION_STAMP) \
|
---|
539 | \
|
---|
540 | $(VBOX_PATH_INST_COMMON_SRC)/virtualbox.desktop.in \
|
---|
541 | $(VBOX_PATH_INST_COMMON_SRC)/virtualboxvm.desktop.in \
|
---|
542 | $(VBOX_PATH_INST_COMMON_SRC)/virtualbox.xml \
|
---|
543 | $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in \
|
---|
544 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
|
---|
545 | $(VBOX_PATH_SOL_INST_SRC)/vbox-ips.mog \
|
---|
546 | \
|
---|
547 | $(if-expr defined(VBOX_WITH_ADDITIONS_PACKING),$(PATH_STAGE_BIN)/additions/VBoxGuestAdditions.iso,) \
|
---|
548 | $(if-expr !defined(VBOX_OSE) && defined(VBOX_WITH_VBOXSDL), $(KBUILD_DEVTOOLS_TRG)/libsdl/v1.2.13/lib/libSDL-1.2.so.0.11.2,) \
|
---|
549 | \
|
---|
550 | $(foreach var, $(SOLARIS_FILE_LIST_VARS),$(foreach file, $($(var)), $($(var).SRC)/$(file))) \
|
---|
551 | \
|
---|
552 | $(foreach size, $(VBOX_SI_ICON_SIZES), $(foreach type, $(VBOX_SI_ICON_TYPES) \
|
---|
553 | ,$(PATH_ROOT)/src/VBox/Artwork/other/virtualbox-$(type)-$(size)px.png)) \
|
---|
554 | \
|
---|
555 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
556 | | $$(dir $$@)
|
---|
557 | $(call MSG_L1,Copying files to package staging area)
|
---|
558 | # Start with a clean slate, don't want to pick up random garbage.
|
---|
559 | $(RM) -Rf -- "$(VBOX_PATH_SI_SCRATCH_PKG)/"
|
---|
560 | $(QUIET)$(RM) -f -- "$@"
|
---|
561 |
|
---|
562 | # Create all the directories we need. We specify each sub directory to make sure the mode is correct.
|
---|
563 | $(MKDIR) -p -m 0755 -- $(sort $(VBOX_PATH_SI_SCRATCH_PKG)/ \
|
---|
564 | $(VBOX_PATH_SI_SCRATCH_PKG)/opt/ \
|
---|
565 | $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/ \
|
---|
566 | $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/amd64/ \
|
---|
567 | $(VBOX_PATH_SI_SCRATCH_PKG)/platform/ \
|
---|
568 | $(VBOX_PATH_SI_SCRATCH_PKG)/platform/i86pc/ \
|
---|
569 | $(VBOX_PATH_SI_SCRATCH_PKG)/platform/i86pc/kernel/ \
|
---|
570 | $(VBOX_PATH_SI_SCRATCH_PKG)/platform/i86pc/kernel/drv/ \
|
---|
571 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/ \
|
---|
572 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/bin/ \
|
---|
573 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/ \
|
---|
574 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/ \
|
---|
575 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/application-registry/ \
|
---|
576 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/icons/ \
|
---|
577 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/icons/hicolor/ \
|
---|
578 | $(foreach size, $(VBOX_SI_ICON_SIZES) \
|
---|
579 | ,$(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/icons/hicolor/$(size)x$(size)/ \
|
---|
580 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/icons/hicolor/$(size)x$(size)/mimetypes/) \
|
---|
581 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime/ \
|
---|
582 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime/packages/ \
|
---|
583 | $(VBOX_PATH_SI_SCRATCH_PKG)/var/ \
|
---|
584 | $(VBOX_PATH_SI_SCRATCH_PKG)/var/svc/ \
|
---|
585 | $(VBOX_PATH_SI_SCRATCH_PKG)/var/svc/manifest/ \
|
---|
586 | $(VBOX_PATH_SI_SCRATCH_PKG)/var/svc/manifest/application/ \
|
---|
587 | $(foreach var,$(SOLARIS_FILE_LIST_VARS), $($(var).DST)/) \
|
---|
588 | $(foreach var,$(SOLARIS_FILE_LIST_VARS),$(if-expr "$($(var).SUBDIRS)" == "yes",$(sort $(dir $(addprefix $($(var).DST)/,$($(var))))),)) \
|
---|
589 | )
|
---|
590 |
|
---|
591 | # Generic copy file lists.
|
---|
592 | $(foreach var, $(SOLARIS_FILE_LIST_VARS), $(foreach file, $($(var)) \
|
---|
593 | ,$(if-expr "$($(var).STRIP)" == "objcopy" && defined(VBOX_DO_STRIP)\
|
---|
594 | ,$(NLTAB)$(VBOX_SI_OBJCOPY_STRIP) "$($(var).SRC)/$(file)" "$($(var).DST)/$(file)" \
|
---|
595 | $(NLTAB)$(CHMOD) "$($(var).MODE)" "$($(var).DST)/$(file)" \
|
---|
596 | ,$(NLTAB)$(INSTALL) -m "$($(var).MODE)" $(if-expr "$($(var).STRIP)" == "yes" && defined(VBOX_DO_STRIP),-s,) \
|
---|
597 | "$($(var).SRC)/$(file)" "$($(var).DST)/$(file)")))
|
---|
598 |
|
---|
599 | # VirtualBox: Common files.
|
---|
600 | $(if-expr defined(VBOX_WITH_ADDITIONS_PACKING) \
|
---|
601 | ,$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/additions/VBoxGuestAdditions.iso $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/,)
|
---|
602 | $(LN_SYMLINK) -f ./pkginstall.sh $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/ipsinstall.sh
|
---|
603 | $(SED) -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
|
---|
604 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/vboxconfig.sh \
|
---|
605 | $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh
|
---|
606 | $(CHMOD) 0755 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh
|
---|
607 | $(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/autoresponse
|
---|
608 | $(if-expr defined(VBOX_WITH_PYTHON) \
|
---|
609 | ,$(SED) -e "s@^#!.*@#!/usr/bin/python3@" \
|
---|
610 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/vboxshell.py \
|
---|
611 | $(PATH_STAGE_BIN)/vboxshell.py \
|
---|
612 | $(NLTAB)$(CHMOD) 0755 $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/vboxshell.py,)
|
---|
613 |
|
---|
614 | # VirtualBox: Arch specific files.
|
---|
615 | $(if-expr defined(VBOX_WITH_ADDITIONS_PACKING) \
|
---|
616 | ,$(NLTAB)$(LN_SYMLINK) ../VBoxGuestAdditions.iso $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/,)
|
---|
617 |
|
---|
618 | $(if-expr !defined(VBOX_OSE) && defined(VBOX_WITH_VBOXSDL) \
|
---|
619 | ,$(INSTALL) -s -m 0644 $(KBUILD_DEVTOOLS_TRG)/libsdl/v1.2.13/lib/libSDL-1.2.so.0.11.2 \
|
---|
620 | $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/libSDL-1.2.so.0,)
|
---|
621 |
|
---|
622 | $(if-expr defined(VBOX_WITH_EFIFW_PACKING) \
|
---|
623 | ,$(LN_SYMLINK) ../VBoxEFI32.fd ../VBoxEFI64.fd $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/,)
|
---|
624 |
|
---|
625 | # Links to /usr/bin.
|
---|
626 | $(foreach link,$(SOLARIS_USRBIN_LINKS) \
|
---|
627 | ,$(NLTAB)$(LN_SYMLINK) ../../opt/VirtualBox/VBox.sh $(VBOX_PATH_SI_SCRATCH_PKG)/usr/bin/$(link))
|
---|
628 |
|
---|
629 | # Desktop stuff in /usr/share/applications/.
|
---|
630 | $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
|
---|
631 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/virtualbox.desktop \
|
---|
632 | $(VBOX_PATH_INST_COMMON_SRC)/virtualbox.desktop.in
|
---|
633 | $(CHMOD) 0644 $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/virtualbox.desktop
|
---|
634 |
|
---|
635 | $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
|
---|
636 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/virtualboxvm.desktop \
|
---|
637 | $(VBOX_PATH_INST_COMMON_SRC)/virtualboxvm.desktop.in
|
---|
638 | $(CHMOD) 0644 $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/virtualboxvm.desktop
|
---|
639 |
|
---|
640 | # Desktop stuff in /usr/share/mime/packages/ (S10 cannot deal with icon information in virtualbox.xml).
|
---|
641 | $(SED) -e '/<icon/d' \
|
---|
642 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime/packages/virtualbox.xml \
|
---|
643 | $(VBOX_PATH_INST_COMMON_SRC)/virtualbox.xml
|
---|
644 | $(CHMOD) 0644 $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime/packages/virtualbox.xml
|
---|
645 |
|
---|
646 | # Desktop stuff in /usr/share/application-registry.
|
---|
647 | $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
|
---|
648 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/application-registry/virtualbox.applications \
|
---|
649 | $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in
|
---|
650 | $(CHMOD) 0644 $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/application-registry/virtualbox.applications
|
---|
651 |
|
---|
652 | # Icons stuff under /usr/share/icons/hicolor/<size>x<size>/mimetypes/.
|
---|
653 | $(foreach size, $(VBOX_SI_ICON_SIZES), $(foreach type, $(VBOX_SI_ICON_TYPES) \
|
---|
654 | ,$(NLTAB)$(INSTALL) -m 0644 \
|
---|
655 | $(PATH_ROOT)/src/VBox/Artwork/other/virtualbox-$(type)-$(size)px.png \
|
---|
656 | $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/icons/hicolor/$(size)x$(size)/mimetypes/virtualbox-$(type).png))
|
---|
657 |
|
---|
658 | # Files related to package creation.
|
---|
659 | $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g" \
|
---|
660 | -e "s+@VBOX_VENDOR@+$(VBOX_VENDOR)+g" \
|
---|
661 | -e "s+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g" \
|
---|
662 | -e "s+@VBOX_VERSION_REVSTAMP@+$(PKGINFO_REVSTAMP)+g" \
|
---|
663 | -e "s+@UNAME_P@+$(PKGINFO_ARCH)+g" \
|
---|
664 | -e "s+@VBOX_PSTAMP@+$(PKGINFO_PSTAMP)+g" \
|
---|
665 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/vbox.pkginfo \
|
---|
666 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
|
---|
667 | $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g" \
|
---|
668 | -e "s+@VBOX_VENDOR@+$(VBOX_VENDOR)+g" \
|
---|
669 | -e "s+@VBOX_VERSION_STRING@+$(VBOX_VERSION_SMF_STYLE)+g" \
|
---|
670 | -e "s+@VBOX_SVN_REV@+$(VBOX_SVN_REV)+g" \
|
---|
671 | -e "s+@UNAME_P@+$(PKGINFO_ARCH)+g" \
|
---|
672 | --output $(VBOX_PATH_SI_SCRATCH_PKG)/vbox-ips.mog \
|
---|
673 | $(VBOX_PATH_SOL_INST_SRC)/vbox-ips.mog
|
---|
674 | $(APPEND) -t $@ "done"
|
---|
675 |
|
---|
676 | #
|
---|
677 | # Creates the System V style installer package.
|
---|
678 | #
|
---|
679 | solaris-package:: $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg
|
---|
680 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg: \
|
---|
681 | $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts \
|
---|
682 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
683 | | $$(dir $$@)
|
---|
684 | $(call MSG_L1,Creating install package: $(PKG_FILENAME).pkg)
|
---|
685 | $(VBOX_PATH_SI_SCRATCH_PKG)/makepackage.sh \
|
---|
686 | $(if-expr defined(VBOX_WITH_HARDENING),--hardened,) \
|
---|
687 | $(VBOX_PATH_SI_SCRATCH_PKG) \
|
---|
688 | $(PKG_FILENAME) \
|
---|
689 | $(KBUILD_TARGET_ARCH) \
|
---|
690 | $(VBOX_SVN_REV)
|
---|
691 | $(MV) -- "$(VBOX_PATH_SI_SCRATCH_PKG)/$(PKG_FILENAME).pkg" "$@"
|
---|
692 |
|
---|
693 | #
|
---|
694 | # Creates the tar file containing license, readme and autoresponse file in addition to the System V package.
|
---|
695 | #
|
---|
696 | solaris-package-tar-gz:: $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz
|
---|
697 | $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz: \
|
---|
698 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg \
|
---|
699 | $(PATH_STAGE_BIN)/LICENSE \
|
---|
700 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
|
---|
701 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
|
---|
702 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
703 | | $(VBOX_PATH_SI_SCRATCH)/
|
---|
704 | $(call MSG_L1,Creating final tar.gz package: $(PKG_FILENAME).tar.gz)
|
---|
705 | $(QUIET)$(RM) -f -- $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt "$@"
|
---|
706 | $(QUIET)$(SED) \
|
---|
707 | -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g" \
|
---|
708 | -e "s+@VBOX_VENDOR@+$(VBOX_VENDOR)+g" \
|
---|
709 | -e "s+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g" \
|
---|
710 | -e "s+@KBUILD_TARGET_ARCH@+$(KBUILD_TARGET_ARCH)+g" \
|
---|
711 | -e "s+@VBOX_SVN_REV@+$(VBOX_SVN_REV)+g" \
|
---|
712 | --output $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt \
|
---|
713 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt
|
---|
714 | $(QUIET)$(VBOX_SI_GTAR) -C $(VBOX_PATH_SI_SCRATCH) -czvf "$@" --show-transformed-name \
|
---|
715 | --xform 's,^.*/,,g' --xform 's,vbox.pkgresponse,autoresponse,' \
|
---|
716 | $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt \
|
---|
717 | $(PATH_STAGE_BIN)/LICENSE \
|
---|
718 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
|
---|
719 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg
|
---|
720 | $(QUIET)$(RM) -f -- $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt
|
---|
721 | $(call MSG_L1,Packaging $@ is completed.)
|
---|
722 |
|
---|
723 | #
|
---|
724 | # Creates the IPS style installer package.
|
---|
725 | #
|
---|
726 | solaris-package-ips:: $(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p
|
---|
727 | $(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p: \
|
---|
728 | $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts \
|
---|
729 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
730 | | $$(dir $$@)
|
---|
731 | $(call MSG_L1,Creating install package: $(PKG_FILENAME_SMF_STYLE).p5p)
|
---|
732 | $(VBOX_PATH_SI_SCRATCH_PKG)/makepackage.sh \
|
---|
733 | --ips \
|
---|
734 | $(if-expr defined(VBOX_WITH_HARDENING),--hardened,) \
|
---|
735 | $(VBOX_PATH_SI_SCRATCH_PKG) \
|
---|
736 | $(PKG_FILENAME_SMF_STYLE) \
|
---|
737 | $(KBUILD_TARGET_ARCH) \
|
---|
738 | $(VBOX_SVN_REV)
|
---|
739 | $(MV) -- "$(VBOX_PATH_SI_SCRATCH_PKG)/$(PKG_FILENAME_SMF_STYLE).p5p" "$@"
|
---|
740 |
|
---|
741 |
|
---|
742 | ## List of file list variable names relevant for debug info.
|
---|
743 | SOLARIS_FILE_LIST_DBGINFO_VARS := $(foreach var, $(SOLARIS_FILE_LIST_VARS), $(if-expr "$($(var).STRIP)" != "no",$(var),))
|
---|
744 | ## Adds a .DBGDST property to each of the debug info file lists. Simplifies our job below
|
---|
745 | $(foreach var,$(SOLARIS_FILE_LIST_DBGINFO_VARS) \
|
---|
746 | ,$(eval $(var).DBGDST := $(subst $(VBOX_PATH_SI_SCRATCH_PKG)/,$(VBOX_PATH_SI_SCRATCH_DBG)/,$(subst /opt/VirtualBox,,$($(var).DST)))))
|
---|
747 |
|
---|
748 | #
|
---|
749 | # Creates a tar file containing the debug info.
|
---|
750 | #
|
---|
751 | $(PATH_STAGE_BIN)/VirtualBoxDebug.tar.bz2: \
|
---|
752 | $(VBOX_VERSION_STAMP) \
|
---|
753 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
754 | $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS), $(foreach file, $($(var)), $($(var).SRC)/$(file)))
|
---|
755 | $(call MSG_L1,Preparing $@)
|
---|
756 | $(RM) -Rf -- "$(VBOX_PATH_SI_SCRATCH_DBG)/"
|
---|
757 | $(RM) -f -- "$@"
|
---|
758 | $(MKDIR) -p -m 0755 \
|
---|
759 | $(VBOX_PATH_SI_SCRATCH_DBG)/ \
|
---|
760 | $(sort $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS), $($(var).DBGDST)/ $(if-expr "$($(var).SUBDIRS)" == "yes" \
|
---|
761 | ,$(sort $(dir $(foreach file, $($(var)), $($(var).DBGDST)/$(file)))),)))
|
---|
762 | $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS),$(foreach file, $($(var)) \
|
---|
763 | ,$(NLTAB)$(VBOX_SI_OBJCOPY_DBGINFO) "$($(var).SRC)/$(file)" "$($(var).DBGDST)/$(file)"))
|
---|
764 | $(call MSG_L1,Packing $@)
|
---|
765 | $(QUIET)$(VBOX_SI_GTAR) --dereference --owner 0 --group 0 \
|
---|
766 | -cvjRhf "$@" -C "$(VBOX_PATH_SI_SCRATCH_DBG)/.." "./$(notdir $(VBOX_PATH_SI_SCRATCH_DBG))/"
|
---|
767 | $(QUIET)$(CHMOD) 0644 $@
|
---|
768 | $(call MSG_L1,Packaging $@ is completed.)
|
---|
769 | $(RM) -Rf "$(VBOX_PATH_SI_SCRATCH_DBG)/"
|
---|
770 |
|
---|