VirtualBox

source: vbox/trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk

Last change on this file was 106061, checked in by vboxsync, 8 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.5 KB
Line 
1# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
2## @file
3# Sub-makefile for VBoxDTrace.
4#
5# Contributed by: bird
6#
7
8#
9# Copyright (C) 2012-2024 Oracle and/or its affiliates.
10#
11# This file is part of VirtualBox base platform packages, as
12# available from http://www.virtualbox.org.
13#
14# The contents of this file are subject to the terms of the Common
15# Development and Distribution License Version 1.0 (CDDL) only, as it
16# comes in the "COPYING.CDDL" file of the VirtualBox distribution.
17#
18# SPDX-License-Identifier: CDDL-1.0
19#
20
21SUB_DEPTH = ../../../../
22include $(KBUILD_PATH)/subheader.kmk
23
24
25#
26# Globals.
27#
28VBOX_EXTPACK_VBOXDTRACE_NAME := Oracle VBoxDTrace Extension Pack
29VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME := Oracle_VBoxDTrace_Extension_Pack
30VBOX_PATH_EXTPACK_VBOXDTRACE = $(PATH_STAGE)/$(INST_EXTPACK)$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)
31INST_EXTPACK_VBOXDTRACE = $(INST_EXTPACK)$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/
32
33VBOXDT_PATH := $(PATH_ROOT)/src/VBox/ExtPacks/VBoxDTrace
34VBOXDT_PATH_ONNV := $(VBOXDT_PATH)/onnv
35VBOXDT_PATH_UTS := $(VBOXDT_PATH_ONNV)/uts
36VBOXDT_PATH_CMD := $(VBOXDT_PATH_ONNV)/cmd
37VBOXDT_PATH_LIBCTF := $(VBOXDT_PATH_ONNV)/lib/libctf
38VBOXDT_PATH_CMN_CTF := $(VBOXDT_PATH_ONNV)/common/ctf
39VBOXDT_PATH_LIBDTRACE := $(VBOXDT_PATH_ONNV)/lib/libdtrace
40VBOXDT_PATH_CMN_DTRACE := $(VBOXDT_PATH_ONNV)/common/dtrace
41
42
43ifndef VBOX_ONLY_EXTPACKS
44 #
45 # The generic wrapper that selects native or extpack dtrace cmd and adds our
46 # library path to the command line.
47 #
48 # Note! This is not installed as part of the extension pack, but always shipped
49 # with the base VBox installation.
50 #
51 PROGRAMS += VBoxDTrace
52 VBoxDTrace_TEMPLATE := VBoxR3Exe
53 VBoxDTrace_SOURCES := VBoxDTraceWrapper.cpp
54 VBoxDTrace_LIBS = $(LIB_RUNTIME)
55 $(call VBOX_SET_VER_INFO_DLL,VBoxDTrace,VirtualBox DTrace Chooser)
56endif
57
58
59if defined(VBOX_WITH_EXTPACK_VBOXDTRACE) && defined(VBOX_WITH_EXTPACK)
60
61 #
62 # Extend the extension pack templates.
63 #
64 TEMPLATE_VBoxR3ExtPackDTrace = For the ring-3 context modules in the VBoxDTrace extension pack.
65 TEMPLATE_VBoxR3ExtPackDTrace_EXTENDS = VBoxR3ExtPack
66 TEMPLATE_VBoxR3ExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
67 TEMPLATE_VBoxR3ExtPackDTrace_DEFS = $(TEMPLATE_VBoxR3ExtPack_DEFS) VBOX_IN_DTRACE_EXTPACK
68 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
69 # -wd4456: declaration of 'rval' hides previous local declaration
70 # -wd4477: 'fprintf' : format string '%02lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'ulong_t'
71 # -wd4457: warning C4457: declaration of 'arg' hides function parameter
72 TEMPLATE_VBoxR3ExtPackDTrace_CFLAGS.win = $(TEMPLATE_VBoxR3ExtPack_CFLAGS.win) -wd4456 -wd4477 -wd4457
73 endif
74
75 TEMPLATE_VBoxR0ExtPackDTrace = For the ring-0 context modules in the VBoxDTrace extension pack.
76 TEMPLATE_VBoxR0ExtPackDTrace_EXTENDS = VBoxR0ExtPack
77 TEMPLATE_VBoxR0ExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
78 TEMPLATE_VBoxR0ExtPackDTrace_DEFS = $(TEMPLATE_VBoxR0ExtPack_DEFS) VBOX_IN_DTRACE_EXTPACK
79
80 TEMPLATE_VBoxInsExtPackDTrace = For the install targets for the VBoxDTrace extension pack.
81 TEMPLATE_VBoxInsExtPackDTrace_EXTENDS = VBoxR0ExtPack
82 TEMPLATE_VBoxInsExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE)
83
84
85 #
86 # Install the description.
87 #
88 INSTALLS += VBoxDTraceIns
89 VBoxDTraceIns_TEMPLATE = VBoxInsExtPackDTrace
90 VBoxDTraceIns_SOURCES = \
91 $(VBoxDTraceIns_0_OUTDIR)/ExtPack.xml \
92 COPYING=>ExtPack-SourceCodeLicense.txt
93 $(call VBOX_EDIT_VERSION_RULE_FN,VBoxDTraceIns,ExtPack.xml)
94
95
96 #
97 # VBoxDTraceMain - The module which the VirtualBox Main API talks to.
98 #
99 DLLS += VBoxDTraceMain
100 VBoxDTraceMain_TEMPLATE = VBoxR3ExtPackDTrace
101 VBoxDTraceMain_SOURCES = VBoxDTraceMain.cpp
102 $(call VBOX_SET_VER_INFO_DLL,VBoxDTraceMain,VBoxDTrace Main module)
103
104
105 #
106 # The ring-3 VBoxDTrace command implementation (library).
107 #
108 ifneq ($(KBUILD_TARGET),solaris) # Temporarily disabled on Solaris (not really needed)...
109 DLLS += VBoxDTraceCmd
110 VBoxDTraceCmd_TEMPLATE = VBoxR3ExtPackDTrace
111 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
112 VBoxDTraceCmd_DEFS = RTMEM_WRAP_TO_EF_APIS VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME="$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)"
113 else
114 VBoxDTraceCmd_DEFS = RTMEM_WRAP_TO_EF_APIS VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME=\"$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)\"
115 endif
116 #VBoxDTraceCmd_DEFS += YYDEBUG
117 VBoxDTraceCmd_DEFS.linux = _XOPEN_SOURCE=700 _LARGEFILE64_SOURCE
118 VBoxDTraceCmd_DEFS.win = YY_USE_PROTOS=1 YYENABLE_NLS=0 YYLTYPE_IS_TRIVIAL=0
119 VBoxDTraceCmd_SDKS = VBoxZlib
120 ifn1of ($(KBUILD_TARGET), win)
121 VBoxDTraceCmd_CFLAGS = -Wno-format $(VBOX_GCC_Wno-overlength-strings) -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow
122 endif
123 VBoxDTraceCmd_INCS = \
124 include \
125 $(VBOXDT_PATH_UTS)/common \
126 $(VBOXDT_PATH_LIBCTF)/common \
127 $(VBOXDT_PATH_LIBDTRACE)/common \
128 $(VBOXDT_PATH_CMN_CTF)
129 VBoxDTraceCmd_SOURCES = \
130 $(VBOXDT_PATH_CMD)/dtrace/dtrace.c \
131 \
132 $(VBOXDT_PATH_LIBDTRACE)/common/dt_as.c \
133 $(VBOXDT_PATH_LIBDTRACE)/common/dt_aggregate.c \
134 $(VBOXDT_PATH_LIBDTRACE)/common/dt_buf.c \
135 $(VBOXDT_PATH_LIBDTRACE)/common/dt_cc.c \
136 $(VBOXDT_PATH_LIBDTRACE)/common/dt_cg.c \
137 $(VBOXDT_PATH_LIBDTRACE)/common/dt_consume.c \
138 $(VBOXDT_PATH_LIBDTRACE)/common/dt_decl.c \
139 $(VBOXDT_PATH_LIBDTRACE)/common/dt_dis.c \
140 $(VBOXDT_PATH_LIBDTRACE)/common/dt_dof.c \
141 $(VBOXDT_PATH_LIBDTRACE)/common/dt_error.c \
142 $(VBOXDT_PATH_LIBDTRACE)/common/dt_handle.c \
143 $(VBOXDT_PATH_LIBDTRACE)/common/dt_ident.c \
144 $(VBOXDT_PATH_LIBDTRACE)/common/dt_inttab.c \
145 $(VBOXDT_PATH_LIBDTRACE)/common/dt_list.c \
146 $(VBOXDT_PATH_LIBDTRACE)/common/dt_map.c \
147 $(VBOXDT_PATH_LIBDTRACE)/common/dt_module.c \
148 $(VBOXDT_PATH_LIBDTRACE)/common/dt_program.c \
149 $(VBOXDT_PATH_LIBDTRACE)/common/dt_open.c \
150 $(VBOXDT_PATH_LIBDTRACE)/common/dt_options.c \
151 $(VBOXDT_PATH_LIBDTRACE)/common/dt_parser.c \
152 $(VBOXDT_PATH_LIBDTRACE)/common/dt_pcb.c \
153 $(VBOXDT_PATH_LIBDTRACE)/common/dt_pragma.c \
154 $(VBOXDT_PATH_LIBDTRACE)/common/dt_printf.c \
155 $(VBOXDT_PATH_LIBDTRACE)/common/dt_proc.c \
156 $(VBOXDT_PATH_LIBDTRACE)/common/dt_provider.c \
157 $(VBOXDT_PATH_LIBDTRACE)/common/dt_regset.c \
158 $(VBOXDT_PATH_LIBDTRACE)/common/dt_string.c \
159 $(VBOXDT_PATH_LIBDTRACE)/common/dt_strtab.c \
160 $(VBOXDT_PATH_LIBDTRACE)/common/dt_subr.c \
161 $(VBOXDT_PATH_LIBDTRACE)/common/dt_work.c \
162 $(VBOXDT_PATH_LIBDTRACE)/common/dt_xlator.c \
163 \
164 $(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c \
165 $(VBoxDTraceCmd_0_OUTDIR)/dt_names.c \
166 \
167 $(VBOXDT_PATH_CMN_CTF)/ctf_create.c \
168 $(VBOXDT_PATH_CMN_CTF)/ctf_error.c \
169 $(VBOXDT_PATH_CMN_CTF)/ctf_decl.c \
170 $(VBOXDT_PATH_CMN_CTF)/ctf_hash.c \
171 $(VBOXDT_PATH_CMN_CTF)/ctf_labels.c \
172 $(VBOXDT_PATH_CMN_CTF)/ctf_lookup.c \
173 $(VBOXDT_PATH_CMN_CTF)/ctf_open.c \
174 $(VBOXDT_PATH_CMN_CTF)/ctf_types.c \
175 $(VBOXDT_PATH_CMN_CTF)/ctf_util.c \
176 \
177 $(VBOXDT_PATH_LIBCTF)/common/ctf_subr.c \
178 $(VBOXDT_PATH_LIBCTF)/common/ctf_lib.c
179
180 # Source not used or wanted:
181 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_link.c
182 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_pid.c
183
184 # Generate sources
185 VBoxDTraceCmd_CLEAN = \
186 $(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c \
187 $(VBoxDTraceCmd_0_OUTDIR)/dt_names.c
188
189 $$(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c: \
190 $(VBOXDT_PATH_LIBDTRACE)/common/dt_errtags.h \
191 $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed \
192 | $$(dir $$@)
193 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<)
194 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed --output $@ $<
195
196 $$(VBoxDTraceCmd_0_OUTDIR)/dt_names.c: \
197 $(VBOXDT_PATH_UTS)/common/sys/dtrace.h \
198 $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed \
199 | $$(dir $$@)
200 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<)
201 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed --output $@ $<
202
203 ifdef VBOX_HAVE_BISON
204 USES += yacc
205 VBoxDTraceCmd_USES += yacc
206 VBoxDTraceCmd_YACCTOOL = BISON
207 VBoxDTraceCmd_YACCFLAGS = -d -y
208 VBoxDTraceCmd_SOURCES += \
209 $(VBOXDT_PATH_LIBDTRACE)/common/dt_grammar.y
210 VBoxDTraceCmd_INCS += $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
211 else
212 VBoxDTraceCmd_SOURCES += \
213 $(VBOXDT_PATH)/generated/dt_grammar.c
214 VBoxDTraceCmd_INCS += \
215 $(VBOXDT_PATH)/generated/
216 endif
217
218 ifdef VBOX_HAVE_FLEX
219 USES += lex
220 VBoxDTraceCmd_USES += lex
221 VBoxDTraceCmd_LEXTOOL = FLEX
222 VBoxDTraceCmd_LEXFLAGS = -l -B #-d -T
223 VBoxDTraceCmd_SOURCES += \
224 $(VBOXDT_PATH_LIBDTRACE)/common/dt_lex.l
225 else
226 VBoxDTraceCmd_SOURCES += \
227 $(VBOXDT_PATH)/generated/dt_lex.c
228 endif
229 ifeq ($(KBUILD_HOST),linux)
230 if $(VBOX_GCC_VERSION_CXX) >= 70000
231 VBoxDTraceCmd_CFLAGS += -Wno-implicit-fallthrough
232 endif
233 endif
234 VBoxDTraceCmd_DEFS += USING_FLEX
235 $(call VBOX_SET_VER_INFO_DLL,VBoxDTraceCmd,VBoxDTrace Command Implementation)
236
237 #
238 # Updates the sources generated by flex and biosn.
239 # The SED processing removes the paths the from #line statements.
240 #
241 vboxdtrace-update-generated-sources: \
242 $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_grammar.c \
243 $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_grammar.h \
244 $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_lex.c
245 $(foreach file,dt_grammar.c dt_grammar.h dt_lex.c \
246 ,$(NLTAB)$(SED) -e 's,$(VBOXDT_PATH_LIBDTRACE)/common/,,g'\
247 -e 's,$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/,,g' \
248 --output $(VBOXDT_PATH)/generated/$(file) \
249 $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/$(file))
250 endif # Temporarily disabled on Solaris.
251
252 #
253 # The ring-0 part of VBoxDTrace.
254 #
255 ifneq ($(KBUILD_TARGET),solaris) # disabled on solaris - neiter needed nor currently able to build it here.
256 $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxDTraceR0
257 endif
258 VBoxDTraceR0_TEMPLATE = VBoxR0ExtPackDTrace
259 VBoxDTraceR0_DEFS = IN_VBOXDTRACE_R0 IN_RT_R0
260 ifeq ($(VBOX_LDR_FMT),elf)
261 VBoxDTraceR0_LDFLAGS = -e ModuleInit
262 endif
263 VBoxDTraceR0_INCS = \
264 include \
265 $(VBOXDT_PATH_UTS)/common
266 VBoxDTraceR0_SOURCES = \
267 VBoxDTraceR0.cpp \
268 VBoxDTraceR0A.asm \
269 $(VBOXDT_PATH_UTS)/common/dtrace/dtrace.c
270 VBoxDTraceR0_LIBS = \
271 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
272 $(VBOX_LIB_SUPR0)
273 $(call VBOX_SET_VER_INFO_R0,VBoxDTraceR0,VBoxDTrace Core (ring-0))
274
275
276 #
277 # Packing.
278 #
279 ifndef VBOX_WITHOUT_EXTPACK_VBOXDTRACE_PACKING
280 PACKING += $(VBOX_PATH_PACKAGES)/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)-$(VBOX_VERSION_STRING)r$(VBOX_SVN_REV).vbox-extpack
281 endif
282
283 ifndef VBOX_WITH_EXTPACK_OS_ARCHS
284 ifeq ($(USER),bird) # for now
285 VBOX_WITH_EXTPACK_OS_ARCHS = $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)
286 endif
287 endif
288
289 # Build the file list. The macro takes 1=darwin.x86, 2=dist/VirtualBox.app/Contents/MacOS, 3=dylib
290 VBOX_VBOXDTRACE_FILES_MACRO = \
291 $(PATH_OUT_BASE)/$(1)/$(KBUILD_TYPE)/$(2)/ExtensionPacks/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/$(1)/VBoxDTraceMain.$(3)=>$(1)/VBoxDTraceMain.$(3) \
292 $(if $(intersects $1, solaris.x86 solaris.amd64),, \
293 $(PATH_OUT_BASE)/$(1)/$(KBUILD_TYPE)/$(2)/ExtensionPacks/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/$(1)/VBoxDTraceCmd.$(3)=>$(1)/VBoxDTraceCmd.$(3) \
294 $(PATH_OUT_BASE)/$(1)/$(KBUILD_TYPE)/$(2)/ExtensionPacks/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/$(1)/VBoxDTraceR0.r0=>$(1)/VBoxDTraceR0.r0 \
295 )
296
297 VBOX_VBOXDTRACE_FILES := \
298 $(VBOX_PATH_EXTPACK_VBOXDTRACE)/ExtPack.xml=>ExtPack.xml \
299 $(VBOX_PATH_EXTPACK_VBOXDTRACE)/ExtPack-SourceCodeLicense.txt=>ExtPack-SourceCodeLicense.txt
300
301 if1of (darwin.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS))
302 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,darwin.amd64,dist/VirtualBox.app/Contents/MacOS,dylib)
303 endif
304 if1of (darwin.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
305 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,darwin.x86,dist/VirtualBox.app/Contents/MacOS,dylib)
306 endif
307 if1of (freebsd.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS))
308 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,freebsd.amd64,bin,so)
309 endif
310 if1of (freebsd.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
311 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,freebsd.x86,bin,so)
312 endif
313 if1of (linux.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS))
314 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,linux.amd64,bin,so)
315 endif
316 if1of (linux.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
317 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,linux.x86,bin,so)
318 endif
319 if1of (os2.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
320 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,os2.x86,bin,so)
321 endif
322 if1of (solaris.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS))
323 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,solaris.amd64,bin,so)
324 endif
325 if1of (solaris.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
326 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,solaris.x86,bin,so)
327 endif
328 if1of (win.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS))
329 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,win.amd64,bin,dll)
330 endif
331 if1of (win.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS))
332 VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,win.x86,bin,dll)
333 endif
334
335 # Pack it all up using a temporary staging directory.
336 $(VBOX_PATH_PACKAGES)/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)-$(VBOX_VERSION_STRING)r$(VBOX_SVN_REV).vbox-extpack: \
337 $$(foreach file, $$(VBOX_VBOXDTRACE_FILES), $$(firstword $$(subst =>,$$(SP),$$(file)))) \
338 | $(VBOX_PATH_PACKAGES)/
339 $(RM) -f $(wildcard $(VBOX_PATH_PACKAGES)/$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)-*.vbox-extpack) \
340 $(VBoxDTraceIns_0_OUTDIR)/ExtPack.manifest \
341 $(VBoxDTraceIns_0_OUTDIR)/ExtPack.signature
342 # Stage all the files
343 $(RM) -Rf $(VBoxDTraceIns_0_OUTDIR)/Stage/
344 $(foreach file, $(VBOX_VBOXDTRACE_FILES),\
345 $(NLTAB)$(MKDIR) -p $(dir $(lastword $(subst =>,$(SP)$(VBoxDTraceIns_0_OUTDIR)/Stage/,$(file)))) \
346 $(NLTAB)$(CP) $(subst =>,$(SP)$(VBoxDTraceIns_0_OUTDIR)/Stage/,$(file)) )
347 # Create the manifest
348 $(VBOX_RTMANIFEST) \
349 --manifest $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.manifest \
350 --chdir $(VBoxDTraceIns_0_OUTDIR)/Stage/ \
351 $(foreach file, $(VBOX_VBOXDTRACE_FILES), $(lastword $(subst =>,$(SP),$(file))))
352 $(APPEND) $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.signature "todo"
353 $(CHMOD) a+r \
354 $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.manifest \
355 $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.signature
356 # Tar it up.
357 tar -cvf - -C $(VBoxDTraceIns_0_OUTDIR)/Stage/ . | gzip -9c > $@
358 # Clean up
359 $(RM) -Rf $(VBoxDTraceIns_0_OUTDIR)/Stage/
360
361 BLDDIRS += $(VBOX_PATH_PACKAGES)/
362
363endif # VBOX_WITH_EXTPACK_VBOXDTRACE
364
365
366include $(FILE_KBUILD_SUB_FOOTER)
367
Note: See TracBrowser for help on using the repository browser.

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