1 | # $Id: Makefile.kmk 103303 2024-02-12 07:16:23Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Solaris installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2023 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 | $(if $(VBOX_WITH_FE_BALLOONCTRL),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxballoonctrl.sh) \
|
---|
125 | $(if $(VBOX_WITH_FE_AUTOSTART),$(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 | $(if-expr defined(VBOX_WITH_FE_BALLOONCTRL),virtualbox-balloonctrl.xml,) \
|
---|
182 | $(if-expr defined(VBOX_WITH_FE_AUTOSTART),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_XPCOMIPCD_IN_VBOX_SVC),,VBoxXPCOMICPD) \
|
---|
330 | $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) \
|
---|
331 | $(if $(VBOX_WITH_HOST_SHIPPING_AUDIO_TEST),VBoxAudioTest,)
|
---|
332 |
|
---|
333 | ## @def SOLARIS_STRIP_BINS
|
---|
334 | # List of shared libraries that are copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/ and stripped of debug info.
|
---|
335 | SOLARIS_FILE_LIST_VARS += SOLARIS_STRIP_BINS
|
---|
336 | SOLARIS_STRIP_BINS.SUBDIRS := yes
|
---|
337 | SOLARIS_STRIP_BINS.STRIP := yes
|
---|
338 | SOLARIS_STRIP_BINS.MODE := 0644
|
---|
339 | SOLARIS_STRIP_BINS.SRC := $(PATH_STAGE_BIN)
|
---|
340 | SOLARIS_STRIP_BINS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
341 | SOLARIS_STRIP_BINS = \
|
---|
342 | VBoxDD.so \
|
---|
343 | VBoxDD2.so \
|
---|
344 | VBoxRT.so \
|
---|
345 | VBoxDDU.so \
|
---|
346 | VBoxVMM.so \
|
---|
347 | $(if $(VBOX_WITH_LIBSSH),VBoxLibSsh.so,) \
|
---|
348 | VBoxXPCOM.so \
|
---|
349 | VBoxXPCOMC.so \
|
---|
350 | $(if $(VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC),VBoxXPCOMICPD.so,) \
|
---|
351 | $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
|
---|
352 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
|
---|
353 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBoxDragAndDropSvc.so,) \
|
---|
354 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
|
---|
355 | $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
|
---|
356 | VBoxHostChannel.so \
|
---|
357 | $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
|
---|
358 | $(if $(VBOX_WITH_QTGUI), \
|
---|
359 | VBoxKeyboard.so) \
|
---|
360 | $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so DbgPlugInDiggers.so,) \
|
---|
361 | components/VBoxC.so \
|
---|
362 | components/VBoxSVCM.so \
|
---|
363 | components/VBoxXPCOMIPCC.so
|
---|
364 |
|
---|
365 | ifdef VBOX_WITH_QTGUI
|
---|
366 | ifdef VBOX_WITH_ORACLE_QT
|
---|
367 | SOLARIS_STRIP_BINS += \
|
---|
368 | $(notdir $(wildcard $(PATH_STAGE_BIN)/lib*VBox*)) \
|
---|
369 | $(VBOX_QT_PLUGINS)
|
---|
370 | endif
|
---|
371 | endif #VBOX_WITH_QTGUI
|
---|
372 |
|
---|
373 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
374 | SOLARIS_STRIP_BINS += \
|
---|
375 | VBoxRT-x86.so \
|
---|
376 | VBoxXPCOM-x86.so \
|
---|
377 | VBoxCAPI-x86.so \
|
---|
378 | components/VBoxClient-x86.so \
|
---|
379 | components/VBoxSVCM-x86.so \
|
---|
380 | components/VBoxXPCOMIPCC-x86.so
|
---|
381 | endif
|
---|
382 | ifdef VBOX_WITH_HARDENING
|
---|
383 | SOLARIS_STRIP_BINS += \
|
---|
384 | VBoxNetDHCP.so \
|
---|
385 | VBoxNetNAT.so \
|
---|
386 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
|
---|
387 | $(if $(VBOX_WITH_QTGUI),VirtualBoxVM.so UICommon.so,)
|
---|
388 | endif
|
---|
389 |
|
---|
390 | ## @def SOLARIS_STRIP_OBJS
|
---|
391 | # List of relocable object files to be copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/ and carefully
|
---|
392 | # stripped of debug info but not relocation information. These are the ring-0 and raw-mode context modules.
|
---|
393 | SOLARIS_FILE_LIST_VARS += SOLARIS_STRIP_OBJS
|
---|
394 | SOLARIS_STRIP_OBJS.SUBDIRS := no
|
---|
395 | SOLARIS_STRIP_OBJS.STRIP := objcopy
|
---|
396 | SOLARIS_STRIP_OBJS.MODE := 0644
|
---|
397 | SOLARIS_STRIP_OBJS.SRC := $(PATH_STAGE_BIN)
|
---|
398 | SOLARIS_STRIP_OBJS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
399 | SOLARIS_STRIP_OBJS = \
|
---|
400 | VBoxDDR0.r0 \
|
---|
401 | VMMR0.r0
|
---|
402 | ifdef VBOX_WITH_RAW_MODE
|
---|
403 | SOLARIS_STRIP_OBJS += \
|
---|
404 | VBoxDDRC.rc \
|
---|
405 | VMMRC.rc
|
---|
406 | endif
|
---|
407 |
|
---|
408 | ## @def SOLARIS_NO_STRIP
|
---|
409 | # List of data files that should be copied from INST_BIN to /opt/VirtualBox/$(VBOX_SI_ARCH)/.
|
---|
410 | SOLARIS_FILE_LIST_VARS += SOLARIS_NO_STRIP
|
---|
411 | SOLARIS_NO_STRIP.SUBDIRS := yes
|
---|
412 | SOLARIS_NO_STRIP.STRIP := no
|
---|
413 | SOLARIS_NO_STRIP.MODE := 0644
|
---|
414 | SOLARIS_NO_STRIP.SRC := $(PATH_STAGE_BIN)
|
---|
415 | SOLARIS_NO_STRIP.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)
|
---|
416 | SOLARIS_NO_STRIP = \
|
---|
417 | components/VBoxXPCOMBase.xpt \
|
---|
418 | components/VirtualBox_XPCOM.xpt \
|
---|
419 | $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
|
---|
420 |
|
---|
421 | ## @def SOLARIS_USRBIN_LINKS
|
---|
422 | # List of links to create in /usr/bin to /opt/VirtualBox/VBox.sh.
|
---|
423 | # Naturally no subdirectories.
|
---|
424 | SOLARIS_USRBIN_LINKS = \
|
---|
425 | $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \
|
---|
426 | $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
|
---|
427 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
|
---|
428 | VBoxManage \
|
---|
429 | $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) \
|
---|
430 | $(if $(VBOX_WITH_HOST_SHIPPING_AUDIO_TEST),VBoxAudioTest,)
|
---|
431 |
|
---|
432 | SOLARIS_COMMON_EXES += \
|
---|
433 | vboxconfig.sh \
|
---|
434 | VBox.sh \
|
---|
435 | pkginstall.sh \
|
---|
436 | $(if $(VBOX_WITH_FE_BALLOONCTRL),smf-vboxballoonctrl.sh) \
|
---|
437 | $(if $(VBOX_WITH_FE_AUTOSTART),smf-vboxautostart.sh) \
|
---|
438 | $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh)
|
---|
439 |
|
---|
440 |
|
---|
441 | # Documentation (packed as DOCS as they are arch. neutral)
|
---|
442 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
443 | SOLARIS_COMMON += \
|
---|
444 | $(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual.qch UserManual.qhc,) \
|
---|
445 | UserManual.pdf \
|
---|
446 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
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 | $(if $(VBOX_WITH_FE_BUGREPORT),VBoxBugReport) \
|
---|
491 | $(if $(VBOX_WITH_FE_BALLOONCTRL),VBoxBalloonCtrl) \
|
---|
492 | $(if $(VBOX_WITH_FE_AUTOSTART),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 | $(if-expr !defined(VBOX_WITH_FE_BUGREPORT),--without-VBoxBugReport,) \
|
---|
688 | $(if-expr !defined(VBOX_WITH_FE_BALLOONCTRL),--without-VBoxBalloonCtrl,) \
|
---|
689 | $(if-expr !defined(VBOX_WITH_FE_AUTOSTART),--without-VBoxAutostart,) \
|
---|
690 | $(if-expr !defined(VBOX_WITH_WEBSERVICES),--without-vboxwebsrv,) \
|
---|
691 | $(VBOX_PATH_SI_SCRATCH_PKG) \
|
---|
692 | $(PKG_FILENAME) \
|
---|
693 | $(KBUILD_TARGET_ARCH) \
|
---|
694 | $(VBOX_SVN_REV)
|
---|
695 | $(MV) -- "$(VBOX_PATH_SI_SCRATCH_PKG)/$(PKG_FILENAME).pkg" "$@"
|
---|
696 |
|
---|
697 | #
|
---|
698 | # Creates the tar file containing license, readme and autoresponse file in addition to the System V package.
|
---|
699 | #
|
---|
700 | solaris-package-tar-gz:: $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz
|
---|
701 | $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz: \
|
---|
702 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg \
|
---|
703 | $(PATH_STAGE_BIN)/LICENSE \
|
---|
704 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
|
---|
705 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
|
---|
706 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
707 | | $(VBOX_PATH_SI_SCRATCH)/
|
---|
708 | $(call MSG_L1,Creating final tar.gz package: $(PKG_FILENAME).tar.gz)
|
---|
709 | $(QUIET)$(RM) -f -- $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt "$@"
|
---|
710 | $(QUIET)$(SED) \
|
---|
711 | -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g" \
|
---|
712 | -e "s+@VBOX_VENDOR@+$(VBOX_VENDOR)+g" \
|
---|
713 | -e "s+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g" \
|
---|
714 | -e "s+@KBUILD_TARGET_ARCH@+$(KBUILD_TARGET_ARCH)+g" \
|
---|
715 | -e "s+@VBOX_SVN_REV@+$(VBOX_SVN_REV)+g" \
|
---|
716 | --output $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt \
|
---|
717 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt
|
---|
718 | $(QUIET)$(VBOX_SI_GTAR) -C $(VBOX_PATH_SI_SCRATCH) -czvf "$@" --show-transformed-name \
|
---|
719 | --xform 's,^.*/,,g' --xform 's,vbox.pkgresponse,autoresponse,' \
|
---|
720 | $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt \
|
---|
721 | $(PATH_STAGE_BIN)/LICENSE \
|
---|
722 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
|
---|
723 | $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg
|
---|
724 | $(QUIET)$(RM) -f -- $(VBOX_PATH_SI_SCRATCH)/ReadMe.txt
|
---|
725 | $(call MSG_L1,Packaging $@ is completed.)
|
---|
726 |
|
---|
727 | #
|
---|
728 | # Creates the IPS style installer package.
|
---|
729 | #
|
---|
730 | solaris-package-ips:: $(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p
|
---|
731 | $(PATH_STAGE_BIN)/$(PKG_FILENAME_SMF_STYLE).p5p: \
|
---|
732 | $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts \
|
---|
733 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
734 | | $$(dir $$@)
|
---|
735 | $(call MSG_L1,Creating install package: $(PKG_FILENAME_SMF_STYLE).p5p)
|
---|
736 | $(VBOX_PATH_SI_SCRATCH_PKG)/makepackage.sh \
|
---|
737 | --ips \
|
---|
738 | $(if-expr defined(VBOX_WITH_HARDENING),--hardened,) \
|
---|
739 | $(if-expr !defined(VBOX_WITH_FE_BUGREPORT),--without-VBoxBugReport,) \
|
---|
740 | $(if-expr !defined(VBOX_WITH_FE_BALLOONCTRL),--without-VBoxBalloonCtrl,) \
|
---|
741 | $(if-expr !defined(VBOX_WITH_FE_AUTOSTART),--without-VBoxAutostart,) \
|
---|
742 | $(if-expr !defined(VBOX_WITH_WEBSERVICES),--without-vboxwebsrv,) \
|
---|
743 | $(VBOX_PATH_SI_SCRATCH_PKG) \
|
---|
744 | $(PKG_FILENAME_SMF_STYLE) \
|
---|
745 | $(KBUILD_TARGET_ARCH) \
|
---|
746 | $(VBOX_SVN_REV)
|
---|
747 | $(MV) -- "$(VBOX_PATH_SI_SCRATCH_PKG)/$(PKG_FILENAME_SMF_STYLE).p5p" "$@"
|
---|
748 |
|
---|
749 |
|
---|
750 | ## List of file list variable names relevant for debug info.
|
---|
751 | SOLARIS_FILE_LIST_DBGINFO_VARS := $(foreach var, $(SOLARIS_FILE_LIST_VARS), $(if-expr "$($(var).STRIP)" != "no",$(var),))
|
---|
752 | ## Adds a .DBGDST property to each of the debug info file lists. Simplifies our job below
|
---|
753 | $(foreach var,$(SOLARIS_FILE_LIST_DBGINFO_VARS) \
|
---|
754 | ,$(eval $(var).DBGDST := $(subst $(VBOX_PATH_SI_SCRATCH_PKG)/,$(VBOX_PATH_SI_SCRATCH_DBG)/,$(subst /opt/VirtualBox,,$($(var).DST)))))
|
---|
755 |
|
---|
756 | #
|
---|
757 | # Creates a tar file containing the debug info.
|
---|
758 | #
|
---|
759 | $(PATH_STAGE_BIN)/VirtualBoxDebug.tar.bz2: \
|
---|
760 | $(VBOX_VERSION_STAMP) \
|
---|
761 | $(VBOX_SI_DEP_ON_MAKEFILE) \
|
---|
762 | $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS), $(foreach file, $($(var)), $($(var).SRC)/$(file)))
|
---|
763 | $(call MSG_L1,Preparing $@)
|
---|
764 | $(RM) -Rf -- "$(VBOX_PATH_SI_SCRATCH_DBG)/"
|
---|
765 | $(RM) -f -- "$@"
|
---|
766 | $(MKDIR) -p -m 0755 \
|
---|
767 | $(VBOX_PATH_SI_SCRATCH_DBG)/ \
|
---|
768 | $(sort $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS), $($(var).DBGDST)/ $(if-expr "$($(var).SUBDIRS)" == "yes" \
|
---|
769 | ,$(sort $(dir $(foreach file, $($(var)), $($(var).DBGDST)/$(file)))),)))
|
---|
770 | $(foreach var, $(SOLARIS_FILE_LIST_DBGINFO_VARS),$(foreach file, $($(var)) \
|
---|
771 | ,$(NLTAB)$(VBOX_SI_OBJCOPY_DBGINFO) "$($(var).SRC)/$(file)" "$($(var).DBGDST)/$(file)"))
|
---|
772 | $(call MSG_L1,Packing $@)
|
---|
773 | $(QUIET)$(VBOX_SI_GTAR) --dereference --owner 0 --group 0 \
|
---|
774 | -cvjRhf "$@" -C "$(VBOX_PATH_SI_SCRATCH_DBG)/.." "./$(notdir $(VBOX_PATH_SI_SCRATCH_DBG))/"
|
---|
775 | $(QUIET)$(CHMOD) 0644 $@
|
---|
776 | $(call MSG_L1,Packaging $@ is completed.)
|
---|
777 | $(RM) -Rf "$(VBOX_PATH_SI_SCRATCH_DBG)/"
|
---|
778 |
|
---|