VirtualBox

source: vbox/trunk/src/VBox/Installer/linux/Makefile.kmk@ 31664

最後變更 在這個檔案從31664是 31642,由 vboxsync 提交於 15 年 前

fix

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 14.1 KB
 
1# $Id: Makefile.kmk 31642 2010-08-13 12:39:02Z vboxsync $
2## @file
3# Makefile for the Linux installer.
4#
5
6#
7# Copyright (C) 2006-2007 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifneq ($(KBUILD_HOST),linux)
22 $(error "The Linux installer can only be built on Linux!")
23endif
24
25#
26# Globals and targets.
27#
28VBOX_PATH_LNX_INST_SRC := $(PATH_SUB_CURRENT)
29VBOX_LNX_INST_OUT_DIR := $(PATH_TARGET)/Installer/linux
30VBOX_LNX_INST_STAGE_DIR := $(PATH_TARGET)/Installer/linux/install
31VBOX_LNX_DBG_PATH := usr/lib/debug/opt/VirtualBox
32VBOX_LNX_PACKAGE_NAME = VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).run
33
34# Unset this to speed up things during makefile hacking.
35VBOX_LNX_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
36
37BLDDIRS += $(VBOX_LNX_INST_OUT_DIR) $(VBOX_LNX_INST_STAGE_DIR)
38PACKING += $(PATH_BIN)/VirtualBox.tar.bz2
39if !defined(VBOX_NO_LINUX_RUN_INSTALLER)
40 PACKING += $(PATH_BIN)/$(VBOX_LNX_PACKAGE_NAME) \
41 $(PATH_BIN)/VirtualBox-dbg.tar.bz2
42endif
43
44OTHER_CLEAN += \
45 $(addprefix $(VBOX_LNX_INST_STAGE_DIR)/,\
46 install.sh \
47 uninstall.sh \
48 deffiles \
49 routines.sh \
50 vboxdrv.sh \
51 VirtualBox.tar.bz2 \
52 LICENSE) \
53 $(wildcard $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-*) \
54 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/,\
55 vboxdrv.sh \
56 install.sh)
57
58#
59# Linux installs.
60#
61INSTALLS += linux-bin
62linux-bin_INST = bin/
63linux-bin_MODE = a+rx,u+w
64linux-bin_SOURCES = \
65 VBoxSysInfo.sh \
66 VBox.sh=>VBox.sh \
67 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py=>vboxshell.py,)
68
69INSTALLS += linux-misc
70linux-misc_INST = bin/
71linux-misc_MODE = a+r,u+w
72linux-misc_SOURCES = \
73 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_32px.png=>VBox.png \
74 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
75 $(if $(VBOX_WITH_QTGUI),$(PATH_linux-misc)/virtualbox.desktop,)
76linux-misc_CLEAN = $(PATH_linux-misc)/virtualbox.desktop
77
78$$(PATH_linux-misc)/virtualbox.desktop: $(PATH_SUB_CURRENT)/virtualbox.desktop $(VBOX_VERSION_STAMP) | $$(dir $$@)
79 $(call MSG_GENERATE,,$@,$<)
80ifdef VBOX_PATH_PACKAGE_DOCS
81 $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+$(VBOX_PATH_PACKAGE_DOCS)+" --output $@ $<
82else
83 $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+/opt/VirtualBox+" --output $@ $<
84endif
85
86
87
88#
89# The files residing in bin/ that we'll ship.
90#
91
92# Strip these binaries
93VBOX_LNX_STRIP_BIN = \
94 VBoxDD.so \
95 VBoxDD2.so \
96 VBoxREM.so \
97 VBoxDDU.so \
98 VBoxVMM.so \
99 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM32.so,) \
100 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM64.so,) \
101 VBoxRT.so \
102 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL $(if $(VBOX_WITH_HARDENING),VBoxSDL.so),) \
103 $(if $(VBOX_WITH_SHARED_CLIPBOARD), VBoxSharedClipboard.so,) \
104 $(if $(VBOX_WITH_SHARED_FOLDERS), VBoxSharedFolders.so,) \
105 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
106 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
107 $(if $(VBOX_WITH_MAIN), \
108 VBoxManage \
109 VBoxNetDHCP $(if $(VBOX_WITH_HARDENING),VBoxNetDHCP.so,) \
110 VBoxNetAdpCtl \
111 VBoxSVC \
112 VBoxXPCOM.so \
113 VBoxXPCOMC.so \
114 VBoxXPCOMIPCD \
115 components/VBoxXPCOMIPCC.so \
116 components/VBoxSVCM.so \
117 components/VBoxC.so,) \
118 $(if $(VBOX_WITH_CROGL),\
119 VBoxOGLhostcrutil.so \
120 VBoxOGLhosterrorspu.so \
121 VBoxOGLrenderspu.so \
122 VBoxTestOGL \
123 VBoxSharedCrOpenGL.so,) \
124 $(if $(VBOX_WITH_PYTHON),$(notdir $(wildcard $(PATH_BIN)/VBoxPython*.so)),) \
125 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
126 VBoxTunctl
127
128# Do not remove relocation information of these binaries
129VBOX_LNX_STRIP_OBJ = \
130 VBoxDD2GC.gc \
131 VBoxDD2R0.r0 \
132 VBoxDDGC.gc \
133 VBoxDDR0.r0 \
134 VMMGC.gc \
135 VMMR0.r0
136
137# Do not strip anything of these files
138VBOX_LNX_NO_STRIP = \
139 $(if $(VBOX_OSE),,LICENSE) \
140 $(if $(VBOX_WITH_MAIN), \
141 components/VBoxXPCOMBase.xpt \
142 components/VirtualBox_XPCOM.xpt) \
143 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
144 VBoxSysInfo.sh \
145 VBox.sh \
146 VBox.png \
147 src
148
149# Qt4 GUI
150ifdef VBOX_WITH_QTGUI
151 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
152 VBOX_LNX_STRIP_BIN += \
153 VBoxKeyboard.so \
154 VirtualBox \
155 $(if $(VBOX_WITH_HARDENING),VirtualBox.so) \
156 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so)
157 VBOX_LNX_NO_STRIP += \
158 virtualbox.desktop \
159 $(VBOX_LICENSE_FILES) \
160 $(if $(VBOX_WITH_QT4_SUN),$(notdir $(wildcard $(PATH_BIN)/lib*VBox*)),) \
161 $(if $(VBOX_WITH_QT4_SUN),accessible/libqtaccessiblewidgets.so,) \
162 $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
163endif
164
165# Guest Additions
166ifdef VBOX_WITH_ADDITIONS_PACKING
167 VBOX_LNX_NO_STRIP += \
168 additions/VBoxGuestAdditions.iso
169endif
170
171# Documentation
172ifdef VBOX_WITH_DOCS_PACKING
173 VBOX_LNX_NO_STRIP += \
174 UserManual.pdf \
175 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),UserManual_$(f).pdf)
176 ifdef VBOX_WITH_DOCS_CHM
177 VBOX_LNX_NO_STRIP += \
178 VirtualBox.chm \
179 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm)
180 endif
181 VBOX_LNX_STRIP_BIN += \
182 $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,)
183endif
184
185# VRDP
186ifdef VBOX_WITH_VRDP
187 VBOX_LNX_STRIP_BIN += \
188 VBoxVRDP.so \
189 VRDPAuth.so \
190 VRDPAuthSimple.so
191 ifdef VBOX_WITH_VRDP_RDESKTOP
192 VBOX_LNX_NO_STRIP += \
193 rdesktop-vrdp.tar.gz
194 VBOX_LNX_NO_STRIP += \
195 rdesktop-vrdp-keymaps
196 VBOX_LNX_STRIP_BIN += \
197 rdesktop-vrdp
198 endif
199endif
200
201# Python XPCOM glue
202ifdef VBOX_WITH_PYTHON
203 VBOX_LNX_NO_STRIP += \
204 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
205 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
206 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
207 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
208 sdk/bindings/xpcom/python/xpcom/server/factory.py \
209 sdk/bindings/xpcom/python/xpcom/server/loader.py \
210 sdk/bindings/xpcom/python/xpcom/server/module.py \
211 sdk/bindings/xpcom/python/xpcom/server/policy.py \
212 sdk/installer/vboxapisetup.py \
213 sdk/installer/vboxapi/__init__.py \
214 sdk/installer/vboxapi/VirtualBox_constants.py
215endif
216
217# Java XPCOM bridge
218ifdef VBOX_WITH_JXPCOM
219 VBOX_LNX_NO_STRIP += \
220 sdk/bindings/xpcom/java/vboxjxpcom.jar
221endif
222
223# Headless
224ifdef VBOX_WITH_HEADLESS
225 VBOX_LNX_STRIP_BIN += \
226 VBoxHeadless \
227 $(if $(VBOX_WITH_HARDENING),VBoxHeadless.so)
228endif
229
230# BFE
231ifdef VBOX_WITH_BFE
232 VBOX_LNX_STRIP_BIN += \
233 VBoxBFE \
234 $(if $(VBOX_WITH_HARDENING),VBoxBFE.so)
235endif
236
237# Webservices
238ifdef VBOX_WITH_WEBSERVICES
239 VBOX_LNX_STRIP_BIN += \
240 vboxwebsrv \
241 webtest
242endif
243
244# EFI firmware
245ifdef VBOX_WITH_EFIFW_PACKING
246 VBOX_LNX_NO_STRIP += \
247 VBoxEFI32.fd \
248 VBoxEFI64.fd
249endif
250
251#
252# All the bin files that goes into the archives.
253#
254VBOX_LNX_ARCH_FILES := $(VBOX_LNX_STRIP_BIN) $(VBOX_LNX_STRIP_OBJ) $(VBOX_LNX_NO_STRIP)
255
256# Cleanup of the files we copy/symlink from bin.
257OTHER_CLEAN += $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_ARCH_FILES)) \
258 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
259
260
261#
262# The generic installer.
263#
264$(PATH_BIN)/$(VBOX_LNX_PACKAGE_NAME): \
265 $(VBOX_LNX_INST_STAGE_DIR)/VirtualBox.tar.bz2 \
266 $(VBOX_VERSION_STAMP) \
267 $(VBOX_PATH_LNX_INST_SRC)/routines.sh \
268 $(VBOX_PATH_LNX_INST_SRC)/deffiles \
269 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
270 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh \
271 $(VBOX_LNX_INST_OUT_DIR)/install.sh \
272 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py \
273 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh \
274 $(wildcard $(PATH_BIN)/src/*) \
275 $(wildcard $(PATH_BIN)/src/*/*) \
276 $(wildcard $(PATH_BIN)/src/*/*/*) \
277 $(wildcard $(PATH_BIN)/src/*/*/*/*)
278 $(call MSG_TOOL,makeself,,$@)
279 $(QUIET)$(RM) -f $(wildcard $(PATH_BIN)/VirtualBox-*.run)
280 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/routines.sh $(VBOX_LNX_INST_STAGE_DIR)/
281 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/deffiles $(VBOX_LNX_INST_STAGE_DIR)/
282 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(VBOX_LNX_INST_STAGE_DIR)/LICENSE)
283 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh $(VBOX_LNX_INST_STAGE_DIR)/
284 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py $(VBOX_LNX_INST_STAGE_DIR)/
285 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/install.sh $(VBOX_LNX_INST_STAGE_DIR)/
286 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh $(VBOX_LNX_INST_STAGE_DIR)/
287 $(QUIET)$(RM) -f $@
288 $(QUIET)$(VBOX_MAKESELF) --follow --nocomp $(VBOX_LNX_INST_STAGE_DIR) $@ \
289 "VirtualBox for Linux installation" ./install.sh "\$$0 1> /dev/null"
290
291# files that needs editing before they can be included in the generic installer.
292$(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@)
293 $(QUIET)$(SED_EXT) \
294 -e "s|%NOLSB%|yes|g" \
295 -e "s|%DEBIAN%||g" \
296 -e "s|%PACKAGE%|virtualbox|g" \
297 --output $@ \
298 $<
299
300$(VBOX_LNX_INST_OUT_DIR)/install.sh: $(VBOX_PATH_LNX_INST_SRC)/install.sh $(VBOX_VERSION_STAMP) | $$(dir $$@)
301 $(QUIET)$(SED) \
302 -e "s;_VERSION_;$(VBOX_VERSION_STRING);g" \
303 -e "s;_SVNREV_;$(VBOX_SVN_REV);g" \
304 -e "s;_BUILD_;$(date-utc );g" \
305 -e "s;_ARCH_;$(KBUILD_TARGET_ARCH);g" \
306 -e "s;_HARDENED_;$(VBOX_WITH_HARDENING);g" \
307 -e "s;_PYTHON_;$(VBOX_WITH_PYTHON);g" \
308 --output $@ \
309 $<
310
311#
312# .tar.bz2 for converting into .run
313#
314$(VBOX_LNX_INST_STAGE_DIR)/VirtualBox.tar.bz2: \
315 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/, $(VBOX_LNX_ARCH_FILES)) \
316 $(VBOX_LNX_INST_DEP_ON_MAKEFILE) \
317 $(VBOX_VERSION_STAMP)
318 $(call MSG_L1,Packing $@)
319 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
320 $(QUIET)$(MKDIR) -p $(@D)
321ifdef VBOX_USE_PBZIP2
322 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR)/archive $(VBOX_LNX_ARCH_FILES)
323 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
324else
325 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR)/archive $(VBOX_LNX_ARCH_FILES)
326endif
327 $(QUIET)$(CHMOD) 0644 $@
328
329#
330# .tar.bz2 for distribution with the files under VirtualBox-<ver>/.
331#
332$(PATH_BIN)/VirtualBox.tar.bz2: \
333 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/, $(VBOX_LNX_ARCH_FILES)) \
334 $(VBOX_LNX_INST_DEP_ON_MAKEFILE) \
335 $(VBOX_VERSION_STAMP)
336 $(call MSG_L1,Packing $@)
337 $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING) $@ $(patsubst %.bz2,%,$@)
338 $(QUIET)$(LN_SYMLINK) $(VBOX_LNX_INST_OUT_DIR)/archive/ $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
339ifdef VBOX_USE_PBZIP2
340 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR) \
341 $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
342 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
343else
344 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR) \
345 $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
346endif
347 $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
348
349
350# pattern rule for stripping and copying the VBOX_LNX_STRIP_BIN files to archive/
351$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_STRIP_BIN)): \
352 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% \
353 $(if $(VBOX_NO_LINUX_RUN_INSTALLER),,\
354 $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/%) \
355 | $$(dir $$@)
356 $(call MSG_INST_FILE,$<,$@)
357 $(QUIET)$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
358 $(QUIET)$(if $(VBOX_NO_LINUX_RUN_INSTALLER),,objcopy --add-gnu-debuglink=$(subst $(VBOX_LNX_INST_OUT_DIR)/archive,$(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH),$@) $@)
359
360# pattern rule for striping and copying the VBOX_LNX_STRIP_OBJ files to archive/
361$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_STRIP_OBJ)): \
362 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% | $$(dir $$@)
363 $(call MSG_INST_FILE,$<,$@)
364ifeq ($(VBOX_DO_STRIP),)
365 $(QUIET)$(INSTALL) -m 0644 $< $@
366else # strip to temp file because of umask.
367 $(QUIET)objcopy --strip-unneeded -R .comment $< [email protected]
368 $(QUIET)$(INSTALL) -m 0644 [email protected] $@
369 $(QUIET)$(RM) -f -- [email protected]
370endif
371
372# pattern rule for linking the VBOX_LNX_NO_STRIP into archive/
373$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_NO_STRIP)): \
374 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% | $$(dir $$@)
375 $(call MSG_INST_SYM,$<,$@)
376 $(QUIET)$(RM) -f $@
377 $(QUIET)$(LN_SYMLINK) $< $@
378
379# rules for creating directories in archive (the pattern rules depends on these). ## @todo use BLDDIRS
380BLDDIRS += $(foreach d,\
381 archive \
382 archive/components \
383 archive/nls \
384 $(if $(VBOX_WITH_QT4_SUN),archive/accessible,) \
385 $(if $(VBOX_WITH_PYTHON),\
386 archive/sdk/installer \
387 archive/sdk/installer/vboxapi \
388 archive/sdk/bindings/xpcom/python/xpcom \
389 archive/sdk/bindings/xpcom/python/xpcom/client \
390 archive/sdk/bindings/xpcom/python/xpcom/server,) \
391 $(if $(VBOX_WITH_JXPCOM),\
392 archive/sdk/bindings/xpcom/java,) \
393 archive/additions \
394 install\
395,$(VBOX_LNX_INST_OUT_DIR)/$(d)/)
396
397
398#
399# .tar.bz2 for with the debug info.
400#
401$(PATH_BIN)/VirtualBox-dbg.tar.bz2: \
402 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/, $(VBOX_LNX_STRIP_BIN))
403 $(call MSG_L1,Packing $@)
404 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
405ifdef VBOX_USE_PBZIP2
406 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR)/archive-dbg \
407 $(addprefix $(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
408 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
409else
410 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR)/archive-dbg \
411 $(addprefix $(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
412endif
413
414# pattern rule for copying the debug info from the VBOX_LNX_STRIP_BIN files into archive-dbg/$(VBOX_LNX_DBG_PATH)/
415$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN)): \
416 $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/% : $(PATH_BIN)/% | $$(dir $$@)
417 $(call MSG_TOOL,copydbg,$<,$@)
418 $(QUIET)objcopy --only-keep-debug $< $@
419
420# rules for creating directories in archive-dbg (the pattern rules depends on these). ## @todo use BLDDIRS
421BLDDIRS += $(foreach d,\
422 $(VBOX_LNX_DBG_PATH) \
423 $(VBOX_LNX_DBG_PATH)/components \
424,$(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(d)/)
425
426include $(KBUILD_PATH)/subfooter.kmk
427
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette