1 | # $Id: Makefile.kmk 17917 2009-03-16 11:08:13Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Solaris installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2008 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | ifneq ($(KBUILD_HOST),solaris)
|
---|
26 | $(error "The Solaris installer can only be built on Solaris!") # yeah, right.
|
---|
27 | endif
|
---|
28 |
|
---|
29 | # Unset this to speed up things during makefile hacking.
|
---|
30 | VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
|
---|
31 |
|
---|
32 | #
|
---|
33 | # Globals
|
---|
34 | #
|
---|
35 | ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
|
---|
36 | VBOX_WITH_COMBINED_PACKAGE := 1
|
---|
37 | endif
|
---|
38 | VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
|
---|
39 | SOLARIS_DIR_NAME_64 := amd64
|
---|
40 | SOLARIS_DIR_NAME_32 := i386
|
---|
41 | SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer/solaris
|
---|
42 | SOLARIS_INST_DIR := $(PATH_TARGET)/Installer/solaris/install
|
---|
43 | SOLARIS_INST_DIR_32 := $(SOLARIS_INST_DIR)/$(SOLARIS_DIR_NAME_32)
|
---|
44 | SOLARIS_INST_DIR_64 := $(SOLARIS_INST_DIR)/$(SOLARIS_DIR_NAME_64)
|
---|
45 |
|
---|
46 | SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin
|
---|
47 | SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin
|
---|
48 | SOLARIS_OUT_BIN := $(PATH_BIN)
|
---|
49 |
|
---|
50 | SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/solaris/installdbg
|
---|
51 | SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)
|
---|
52 | SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)
|
---|
53 | SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/solaris/installvbi
|
---|
54 |
|
---|
55 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
56 | SOLARIS_INST_DIR_ISA := $(SOLARIS_INST_DIR_64)
|
---|
57 | SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)
|
---|
58 | SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
|
---|
59 | else
|
---|
60 | SOLARIS_INST_DIR_ISA := $(SOLARIS_INST_DIR_32)
|
---|
61 | SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)
|
---|
62 | SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.
|
---|
63 | endif
|
---|
64 | SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
|
---|
65 |
|
---|
66 |
|
---|
67 | # Figure out the paths to the two platform specific Qt4 directories
|
---|
68 | SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4))
|
---|
69 | SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4))
|
---|
70 |
|
---|
71 | # Base package
|
---|
72 | PKGINFO_ARCH = $(shell uname -p)
|
---|
73 | PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
|
---|
74 | ifndef VBOX_WITH_COMBINED_PACKAGE
|
---|
75 | PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
|
---|
76 | else
|
---|
77 | PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
|
---|
78 | endif
|
---|
79 |
|
---|
80 | # Debug package
|
---|
81 | DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
|
---|
82 |
|
---|
83 | # Kernel interface (vbi) package
|
---|
84 | VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
|
---|
85 |
|
---|
86 | #
|
---|
87 | # Targets
|
---|
88 | #
|
---|
89 | PROGRAMS += VBoxZoneAccess VBoxISAExec
|
---|
90 | INSTALLS += solaris-doc
|
---|
91 |
|
---|
92 | BLDDIRS += $(SOLARIS_INST_OUT_DIR) $(SOLARIS_INST_DIR) $(SOLARIS_VBI_DIR) $(SOLARIS_DBG_DIR)
|
---|
93 | PACKING += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
|
---|
94 |
|
---|
95 | OTHER_CLEAN += $(addprefix $(SOLARIS_INST_DIR)/,\
|
---|
96 | vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
|
---|
97 | makepackage.sh prototype postinstall.sh preremove.sh)
|
---|
98 |
|
---|
99 | #
|
---|
100 | # VBoxZoneAccess
|
---|
101 | #
|
---|
102 | VBoxZoneAccess_TEMPLATE = VBOXR3EXE
|
---|
103 | VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
104 | VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
|
---|
105 | VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
|
---|
106 |
|
---|
107 | #
|
---|
108 | # VBoxISAExec
|
---|
109 | #
|
---|
110 | VBoxISAExec_TEMPLATE = VBOXR3EXE
|
---|
111 | VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
112 | VBoxISAExec_SOURCES = VBoxISAExec.c
|
---|
113 |
|
---|
114 | #
|
---|
115 | # Solaris installs.
|
---|
116 | #
|
---|
117 | solaris-doc_INST = bin/
|
---|
118 | solaris-doc_MODE = a+r,u+w
|
---|
119 | solaris-doc_SOURCES = \
|
---|
120 | $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
|
---|
121 | $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
|
---|
122 |
|
---|
123 | #
|
---|
124 | # Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
|
---|
125 | # go into the temporary install folder $(SOLARIS_INST_DIR) should be part of $(SOLARIS_ARCH_FILES).
|
---|
126 | # For the files produced during packing they should be cleaned up promptly when the work is done.
|
---|
127 |
|
---|
128 | # Strip these executables
|
---|
129 | SOLARIS_STRIP_EXES = \
|
---|
130 | VBoxZoneAccess \
|
---|
131 | $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
|
---|
132 | VBoxManage \
|
---|
133 | $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
|
---|
134 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
|
---|
135 | $(if $(VBOX_WITH_USB),VBoxUSBHelper,) \
|
---|
136 | $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
|
---|
137 | $(if $(VBOX_WITH_NETADP),VBoxNetDHCP,) \
|
---|
138 | VBoxSVC \
|
---|
139 | VBoxXPCOMIPCD \
|
---|
140 | kchmviewer
|
---|
141 |
|
---|
142 | # Strip these binaries
|
---|
143 | SOLARIS_STRIP_BINS = \
|
---|
144 | vboxdrv \
|
---|
145 | $(if $(VBOX_WITH_NETFLT),vboxflt,) \
|
---|
146 | $(if $(VBOX_WITH_NETADP),vboxnet,) \
|
---|
147 | $(if $(VBOX_WITH_USB),vboxusbmon,) \
|
---|
148 | VBoxDD.so \
|
---|
149 | VBoxDD2.so \
|
---|
150 | VBoxREM.so \
|
---|
151 | VBoxRT.so \
|
---|
152 | VBoxDDU.so \
|
---|
153 | VBoxVMM.so \
|
---|
154 | VBoxXPCOM.so \
|
---|
155 | VBoxXPCOMC.so \
|
---|
156 | $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
|
---|
157 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
|
---|
158 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
|
---|
159 | $(if $(VBOX_WITH_QTGUI),\
|
---|
160 | VBoxKeyboard.so \
|
---|
161 | libQtCoreVBox.so.4 \
|
---|
162 | libQtGuiVBox.so.4 \
|
---|
163 | libQtNetworkVBox.so.4 \
|
---|
164 | accessible/libqtaccessiblewidgets.so,) \
|
---|
165 | $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
|
---|
166 | $(if $(VBOX_WITH_CROGL),\
|
---|
167 | VBoxOGLhostcrutil.so \
|
---|
168 | VBoxOGLhosterrorspu.so \
|
---|
169 | VBoxOGLrenderspu.so \
|
---|
170 | VBoxSharedCrOpenGL.so) \
|
---|
171 | VBoxSettings.so \
|
---|
172 | components/VBoxC.so \
|
---|
173 | components/VBoxSVCM.so \
|
---|
174 | components/VBoxXPCOMIPCC.so
|
---|
175 | ifdef VBOX_WITH_HARDENING
|
---|
176 | SOLARIS_STRIP_BINS += \
|
---|
177 | VBoxNetDHCP.so \
|
---|
178 | $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
|
---|
179 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
|
---|
180 | $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
|
---|
181 | endif
|
---|
182 |
|
---|
183 | # Do not remove relocation information of these binaries
|
---|
184 | SOLARIS_STRIP_OBJS = \
|
---|
185 | VBoxDD2GC.gc \
|
---|
186 | VBoxDD2R0.r0 \
|
---|
187 | VBoxDDGC.gc \
|
---|
188 | VBoxDDR0.r0 \
|
---|
189 | VMMGC.gc \
|
---|
190 | VMMR0.r0
|
---|
191 |
|
---|
192 | # Special differences between 32-bit and 64-bit
|
---|
193 | SOLARIS_STRIP_BIN_32 = \
|
---|
194 | VBoxREM32.so \
|
---|
195 | VBoxREM64.so
|
---|
196 |
|
---|
197 | ifndef VBOX_WITH_NEW_RECOMPILER
|
---|
198 | SOLARIS_STRIP_OBJ_64 = VBoxREM2.rel
|
---|
199 | endif
|
---|
200 |
|
---|
201 | VBOX_SOL_PYTHON_DIR_64 = 64
|
---|
202 |
|
---|
203 | # Do not strip anything of these files
|
---|
204 | SOLARIS_NO_STRIP = \
|
---|
205 | components/VBoxXPCOMBase.xpt \
|
---|
206 | components/VirtualBox_XPCOM.xpt \
|
---|
207 | $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
|
---|
208 |
|
---|
209 | # Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
|
---|
210 | SOLARIS_EXTRAS = \
|
---|
211 | $(if $(VBOX_OSE),,LICENSE) \
|
---|
212 | VBox.png \
|
---|
213 | autoresponse \
|
---|
214 | vboxdrv.conf \
|
---|
215 | $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
|
---|
216 | $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
|
---|
217 | $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
|
---|
218 | vboxdrv.sh \
|
---|
219 | VBox.sh \
|
---|
220 | $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
|
---|
221 | $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
|
---|
222 | $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
|
---|
223 | $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
|
---|
224 | virtualbox-webservice.xml \
|
---|
225 | virtualbox-zoneaccess.xml \
|
---|
226 | smf-vboxwebsrv.sh \
|
---|
227 | VBoxQtconfig \
|
---|
228 | VBoxISAExec \
|
---|
229 | vbox.copyright \
|
---|
230 | ReadMe.txt
|
---|
231 |
|
---|
232 | # These extra Qt libs are purely for running VBoxQtconfig
|
---|
233 | ifdef VBOX_WITH_QTGUI
|
---|
234 | SOLARIS_QTLIBS = \
|
---|
235 | libQtXmlVBox.so.4 \
|
---|
236 | libQtSqlVBox.so.4 \
|
---|
237 | libQt3SupportVBox.so.4
|
---|
238 | endif
|
---|
239 |
|
---|
240 |
|
---|
241 | ifdef VBOX_WITH_QTGUI
|
---|
242 | include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
|
---|
243 | SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
|
---|
244 | endif
|
---|
245 |
|
---|
246 | # Documentation (packed as DOCS as they are arch. neutral)
|
---|
247 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
248 | SOLARIS_COMMON = \
|
---|
249 | VirtualBox.chm \
|
---|
250 | UserManual.pdf \
|
---|
251 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
|
---|
252 | endif
|
---|
253 |
|
---|
254 | # VRDP
|
---|
255 | ifdef VBOX_WITH_VRDP
|
---|
256 | SOLARIS_STRIP_BINS += \
|
---|
257 | VBoxVRDP.so \
|
---|
258 | VRDPAuth.so
|
---|
259 | SOLARIS_COMMON += \
|
---|
260 | rdesktop-vrdp.tar.gz
|
---|
261 | ifdef VBOX_WITH_VRDP_RDESKTOP
|
---|
262 | SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
|
---|
263 | SOLARIS_STRIP_EXES += \
|
---|
264 | rdesktop-vrdp
|
---|
265 | endif
|
---|
266 | endif
|
---|
267 |
|
---|
268 | SOLARIS_STRIP_BINS += \
|
---|
269 | $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
|
---|
270 |
|
---|
271 | SOLARIS_STRIP_EXES += \
|
---|
272 | $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
|
---|
273 | $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
|
---|
274 | $(if $(VBOX_WITH_WEBSERVICES),webtest)
|
---|
275 |
|
---|
276 | # Guest Additions
|
---|
277 | ifdef VBOX_WITH_ADDITIONS_PACKING
|
---|
278 | SOLARIS_COMMON += \
|
---|
279 | additions/VBoxGuestAdditions.iso
|
---|
280 | endif
|
---|
281 |
|
---|
282 | SOLARIS_ARCH_FILES := \
|
---|
283 | $(SOLARIS_STRIP_EXES) \
|
---|
284 | $(SOLARIS_STRIP_BINS) \
|
---|
285 | $(SOLARIS_STRIP_OBJS) \
|
---|
286 | $(SOLARIS_NO_STRIP) \
|
---|
287 | $(SOLARIS_EXTRAS) \
|
---|
288 | $(SOLARIS_QTLIBS) \
|
---|
289 | $(SOLARIS_COMMON)
|
---|
290 |
|
---|
291 | SOLARIS_DBG_FILES := \
|
---|
292 | $(SOLARIS_STRIP_EXES) \
|
---|
293 | $(SOLARIS_STRIP_BINS)
|
---|
294 |
|
---|
295 | OTHER_CLEAN += \
|
---|
296 | $(addprefix $(SOLARIS_INST_DIR)/, $(SOLARIS_ARCH_FILES)) \
|
---|
297 | $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz \
|
---|
298 | $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg \
|
---|
299 | $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
|
---|
300 | $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
|
---|
301 | $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
|
---|
302 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
|
---|
303 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
|
---|
304 |
|
---|
305 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
306 | SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
|
---|
307 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
|
---|
308 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
|
---|
309 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
|
---|
310 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_QTLIBS)) \
|
---|
311 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
|
---|
312 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
|
---|
313 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
|
---|
314 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
|
---|
315 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_QTLIBS)) \
|
---|
316 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
|
---|
317 | $(if $(VBOX_WITH_NEW_RECOMPILER),,$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64))) \
|
---|
318 | $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython.so) \
|
---|
319 | $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython.so)
|
---|
320 | SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
|
---|
321 | $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
|
---|
322 | else
|
---|
323 | SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
|
---|
324 | $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
|
---|
325 | $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
|
---|
326 | $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
|
---|
327 | $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
|
---|
328 | $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
|
---|
329 | $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_QTLIBS))
|
---|
330 | SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
|
---|
331 | endif
|
---|
332 | SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_COMMON))
|
---|
333 |
|
---|
334 | BLDDIRS += $(foreach d,\
|
---|
335 | additions \
|
---|
336 | rdesktop-vrdp-keymaps \
|
---|
337 | $(SOLARIS_DIR_NAME_64) \
|
---|
338 | $(SOLARIS_DIR_NAME_64)/components \
|
---|
339 | $(SOLARIS_DIR_NAME_64)/nls \
|
---|
340 | $(SOLARIS_DIR_NAME_64)/accessible \
|
---|
341 | $(SOLARIS_DIR_NAME_64)/$(VBOX_SOL_PYTHON_DIR_64) \
|
---|
342 | $(SOLARIS_DIR_NAME_32) \
|
---|
343 | $(SOLARIS_DIR_NAME_32)/components \
|
---|
344 | $(SOLARIS_DIR_NAME_32)/nls \
|
---|
345 | $(SOLARIS_DIR_NAME_32)/accessible \
|
---|
346 | ,$(SOLARIS_INST_DIR)/$(d)/)
|
---|
347 |
|
---|
348 | BLDDIRS += $(foreach d,\
|
---|
349 | amd64 \
|
---|
350 | ,$(SOLARIS_VBI_DIR)/$(d)/)
|
---|
351 |
|
---|
352 | BLDDIRS += $(foreach d,\
|
---|
353 | additions \
|
---|
354 | components \
|
---|
355 | accessible \
|
---|
356 | $(SOLARIS_DIR_NAME_64) \
|
---|
357 | $(SOLARIS_DIR_NAME_64)/components \
|
---|
358 | $(SOLARIS_DIR_NAME_64)/accessible \
|
---|
359 | $(SOLARIS_DIR_NAME_64)/$(VBOX_SOL_PYTHON_DIR_64) \
|
---|
360 | $(SOLARIS_DIR_NAME_32) \
|
---|
361 | $(SOLARIS_DIR_NAME_32)/components \
|
---|
362 | $(SOLARIS_DIR_NAME_32)/nls \
|
---|
363 | $(SOLARIS_DIR_NAME_32)/accessible \
|
---|
364 | ,$(SOLARIS_DBG_DIR)/$(d))
|
---|
365 |
|
---|
366 |
|
---|
367 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
368 |
|
---|
369 | #
|
---|
370 | # -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
|
---|
371 | #
|
---|
372 |
|
---|
373 | ## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
|
---|
374 | # containing any obsolete files the way packing is performed here. Consider recursivly
|
---|
375 | # invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
|
---|
376 | # directory tree.
|
---|
377 | $(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
|
---|
378 | $(VBOX_VERSION_STAMP) \
|
---|
379 | $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
|
---|
380 | $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
|
---|
381 | $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
|
---|
382 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
|
---|
383 | $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
|
---|
384 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
|
---|
385 | $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
|
---|
386 | $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
|
---|
387 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
|
---|
388 | $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
|
---|
389 | $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
|
---|
390 | $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
|
---|
391 | $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
|
---|
392 | $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
|
---|
393 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
|
---|
394 | $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf,) \
|
---|
395 | $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf,) \
|
---|
396 | $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf,) \
|
---|
397 | $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
|
---|
398 | $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
|
---|
399 | $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
|
---|
400 | VBoxISAExec \
|
---|
401 | $(SOLARIS_ARCH_DEPFILES)
|
---|
402 | $(call MSG_L1,Installing binaries $(SOLARIS_INST_DIR))
|
---|
403 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
404 | $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/)
|
---|
405 | else
|
---|
406 | $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/)
|
---|
407 | endif
|
---|
408 | $(call MSG_L1,Installing files $(SOLARIS_INST_DIR))
|
---|
409 | $(QUIET)$(SED) \
|
---|
410 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
411 | -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
|
---|
412 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
413 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
414 | --output $(SOLARIS_INST_DIR)/vbox.pkginfo \
|
---|
415 | $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
|
---|
416 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf
|
---|
417 | $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_INST_DIR)/vboxflt.conf,)
|
---|
418 | $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf $(SOLARIS_INST_DIR)/vboxnet.conf,)
|
---|
419 | $(QUIET)$(if $(VBOX_WITH_USB),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf $(SOLARIS_INST_DIR)/vboxusbmon.conf,)
|
---|
420 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE)
|
---|
421 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/vbox.copyright)
|
---|
422 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
423 | $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.x86/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_INST_DIR_32)/libSDL-1.2.so.0,)
|
---|
424 | $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.amd64/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_INST_DIR_64)/libSDL-1.2.so.0,)
|
---|
425 | @# @todo -XXX- how to get rid of this manual MKDIR ?
|
---|
426 | $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR_64)/$(VBOX_SOL_PYTHON_DIR_64)
|
---|
427 | $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN_32)/VBoxPython.so $(SOLARIS_INST_DIR_32)/VBoxPython.so,)
|
---|
428 | $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN_64)/VBoxPython.so $(SOLARIS_INST_DIR_64)/$(VBOX_SOL_PYTHON_DIR_64)/VBoxPython.so,)
|
---|
429 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_INST_DIR_32)/VBoxQtconfig,)
|
---|
430 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_INST_DIR_64)/VBoxQtconfig,)
|
---|
431 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_INST_DIR)/VBoxISAExec
|
---|
432 | else
|
---|
433 | $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_INST_DIR_ISA)/libSDL-1.2.so.0,)
|
---|
434 | @# @todo -XXX- how to get rid of this manual MKDIR ?
|
---|
435 | ifdef VBOX_WITH_PYTHON
|
---|
436 | $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_INST_DIR_64)/$(VBOX_SOL_PYTHON_DIR_64),)
|
---|
437 | $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(SOLARIS_OUT_BIN)/VBoxPython.so $(SOLARIS_INST_DIR_ISA)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,)VBoxPython.so
|
---|
438 | endif
|
---|
439 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_INST_DIR_ISA)/VBoxQtconfig,)
|
---|
440 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_INST_DIR)/VBoxISAExec
|
---|
441 | endif
|
---|
442 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_INST_DIR)/virtualbox-zoneaccess.xml
|
---|
443 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_INST_DIR)/virtualbox-webservice.xml,)
|
---|
444 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh $(SOLARIS_INST_DIR)/smf-vboxwebsrv.sh,)
|
---|
445 | $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_INST_DIR)/vnic_setup.sh,)
|
---|
446 | $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_INST_DIR)/vnic_term.sh,)
|
---|
447 | $(QUIET)$(SED) \
|
---|
448 | -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,))/" \
|
---|
449 | --output $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp \
|
---|
450 | $(VBOX_PATH_SOL_INST_SRC)/vboxdrv.sh
|
---|
451 | $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp $(SOLARIS_INST_DIR)/vboxdrv.sh
|
---|
452 | $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp
|
---|
453 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh $(SOLARIS_INST_DIR)/VBox.sh
|
---|
454 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_INST_DIR)/virtualbox.desktop,)
|
---|
455 | $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_INST_DIR)/VBox.png
|
---|
456 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_INST_DIR)/postinstall.sh
|
---|
457 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_INST_DIR)/preremove.sh
|
---|
458 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_INST_DIR)/makepackage.sh
|
---|
459 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_INST_DIR)/autoresponse
|
---|
460 | $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_INST_DIR)/vbox.space
|
---|
461 | $(QUIET)$(SED) \
|
---|
462 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
463 | -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
|
---|
464 | -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
|
---|
465 | --output $(SOLARIS_INST_DIR)/ReadMe.txt \
|
---|
466 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt
|
---|
467 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
468 | $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
|
---|
469 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_INST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
|
---|
470 | $(SOLARIS_INST_DIR) \
|
---|
471 | $(PKG_FILENAME) \
|
---|
472 | $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
|
---|
473 | $(VBOX_SVN_REV) \
|
---|
474 | $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
|
---|
475 | $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
|
---|
476 | @# Clean up files emitted as side-effect or result of packing
|
---|
477 | $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz
|
---|
478 | $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg
|
---|
479 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
480 |
|
---|
481 |
|
---|
482 | #
|
---|
483 | # 32-bit Main Package
|
---|
484 | #
|
---|
485 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
|
---|
486 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
487 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
488 |
|
---|
489 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
|
---|
490 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
491 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
492 |
|
---|
493 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
|
---|
494 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
495 | $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
496 |
|
---|
497 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
|
---|
498 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
499 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
500 |
|
---|
501 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
|
---|
502 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
503 | $(INSTALL) -m 0644 $< $@
|
---|
504 |
|
---|
505 | $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_QTLIBS)): \
|
---|
506 | $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
|
---|
507 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
508 |
|
---|
509 | #
|
---|
510 | # 64-bit Main Package
|
---|
511 | #
|
---|
512 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
|
---|
513 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
514 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
515 |
|
---|
516 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
|
---|
517 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
518 | $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
519 |
|
---|
520 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
|
---|
521 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
522 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
523 |
|
---|
524 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
|
---|
525 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
526 | $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
|
---|
527 |
|
---|
528 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
|
---|
529 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
530 | $(INSTALL) -m 0644 $< $@
|
---|
531 |
|
---|
532 | $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_QTLIBS)): \
|
---|
533 | $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
|
---|
534 | $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
|
---|
535 |
|
---|
536 |
|
---|
537 | #
|
---|
538 | # Common (32-bit and 64-bit)
|
---|
539 | #
|
---|
540 | $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_COMMON)): \
|
---|
541 | $(SOLARIS_INST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
|
---|
542 | $(INSTALL) -m 0644 $< $@
|
---|
543 |
|
---|
544 |
|
---|
545 | #
|
---|
546 | # -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
|
---|
547 | #
|
---|
548 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
|
---|
549 | $(VBOX_VERSION_STAMP) \
|
---|
550 | $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
|
---|
551 | $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
|
---|
552 | $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
|
---|
553 | $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
|
---|
554 | $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
|
---|
555 | $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
|
---|
556 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
|
---|
557 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
|
---|
558 | $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
|
---|
559 | $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
|
---|
560 | $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
|
---|
561 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
|
---|
562 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
|
---|
563 | $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
|
---|
564 | $(QUIET)$(SED) \
|
---|
565 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
566 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
567 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
568 | --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
|
---|
569 | $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
|
---|
570 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
|
---|
571 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
|
---|
572 | $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
|
---|
573 | $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
|
---|
574 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
|
---|
575 |
|
---|
576 |
|
---|
577 | #
|
---|
578 | # -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
|
---|
579 | #
|
---|
580 | $(PATH_BIN)/$(DBG_ARCHIVE): \
|
---|
581 | $(VBOX_VERSION_STAMP) \
|
---|
582 | $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
|
---|
583 | $(SOLARIS_DBG_DEPFILES)
|
---|
584 | $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
|
---|
585 | $(call MSG_L1,Packing $@)
|
---|
586 | $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
|
---|
587 | $(QUIET)$(CHMOD) 0644 $@
|
---|
588 |
|
---|
589 | #
|
---|
590 | # 32-bit Debug package
|
---|
591 | #
|
---|
592 | $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
|
---|
593 | $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
|
---|
594 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
595 |
|
---|
596 | #
|
---|
597 | # 64-bit Debug package
|
---|
598 | #
|
---|
599 | $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
|
---|
600 | $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
|
---|
601 | $(SOL_DBG_OBJCOPY) $< $@
|
---|
602 |
|
---|