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