VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk@ 49174

Last change on this file since 49174 was 49174, checked in by vboxsync, 11 years ago

Additions/x11: replace header files for X.Org Server 1.6.0 with those for version 1.6.5 due to an ABI bump in-between.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.2 KB
Line 
1# $Id: Makefile.kmk 49174 2013-10-18 09:11:58Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
4#
5
6#
7# Copyright (C) 2006-2013 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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Include sub-makefile(s).
23#
24ifndef VBOX_USE_SYSTEM_XORG_HEADERS
25 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
26endif
27
28vboxvideo_70_DEFS := \
29 IN_MODULE XORG_7X RENDER=1 IN_RT_STATIC
30ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
31 vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this?
32endif
33vboxvideo_13_DEFS := $(vboxvideo_70_DEFS) VBOXVIDEO_13
34vboxvideo_15_DEFS := \
35 $(vboxvideo_13_DEFS) VBOX_DRI NO_ANSIC PCIACCESS XSERVER_LIBPCIACCESS
36vboxvideo_xorg_INCS = \
37 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
38 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
39 $(VBOX_PATH_X11_ROOT)/MesaLib-8.0.4-GL \
40 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
41 $(VBOX_PATH_X11_ROOT)/kbproto-1.0.6 \
42 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
43 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
44 $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \
45 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
46 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
47 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
48 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
49 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
50 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
51
52#
53# vboxvideo_drv
54#
55if1of ($(KBUILD_TARGET), linux)
56 SYSMODS += vboxvideo_drv
57endif # target linux
58vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
59vboxvideo_drv_CFLAGS += -Wno-shadow # Avoid MBs of warnings in X11 and OpenGL headers (solaris mostly).
60vboxvideo_drv_DEFS.linux = linux
61vboxvideo_drv_DEFS.x86 = __i386__
62# This one has to be defined when building server code on systems where
63# unsigned long is 64bits
64vboxvideo_drv_DEFS.amd64 += _XSERVER64
65vboxvideo_drv_DEFS = \
66 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
67 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
68 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
69 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
70 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
71 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
72 IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
73vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
74vboxvideo_drv_INCS = \
75 $(VBOX_PATH_X11_XFREE_4_3)/include \
76 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
77 $(VBOX_PATH_X11_XFREE_4_3)/include/X11/extensions \
78 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
79 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
80 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
81 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
82 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
83 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
84 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
85 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
86 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
87 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
88 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
89 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
90 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
91 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
92 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
93 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
94 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
95 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
96 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
97 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
98 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
99 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
100 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
101 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
102 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/randr \
103 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
104vboxvideo_drv_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
105vboxvideo_drv_SOURCES = \
106 pointer.c \
107 setmode.c \
108 vboxutils.c \
109 vboxvideo.c \
110 vbva.c \
111 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
112 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
113 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
114 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
115 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapsimple.cpp \
116 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapoffset.cpp
117 # Any global symbols in the driver object files will be added to XFree86's
118 # symbol table, which can cause problems if we e.g. define a symbol in two
119 # modules.
120 vboxvideo_drv_POST_CMDS = \
121 objcopy --keep-global-symbol vboxvideoModuleData $(out) $(out)-objcopy$$(NLTAB) \
122 $(MV) -f $(out)-objcopy $(out)
123
124#
125# vboxvideo_drv_70
126#
127# Remark: The other X.org drivers below are derived from this one. So, to make
128# that as simple as possible we do ifeq/if1of test here and extends the
129# base keywords instead of using .solaris or .linux.
130# Also it is *important* to use := and not = when deriving a property.
131#
132DLLS += vboxvideo_drv_70
133vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
134vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700000000
135ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
136 vboxvideo_drv_70_CFLAGS += -D_XPG6 -Wno-shadow # Use XPG6 until we have moved the C++ bits into a library.
137endif
138vboxvideo_drv_70_INCS = \
139 $(VBOX_PATH_X11_XORG_7_0) \
140 $(VBOX_PATH_X11_XORG_7_0)/X11 \
141 $(VBOX_PATH_X11_XORG_7_0)/xorg
142vboxvideo_drv_70_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
143vboxvideo_drv_70_SOURCES = $(vboxvideo_drv_SOURCES)
144
145
146#
147# vboxvideo_drv_71
148#
149DLLS += vboxvideo_drv_71
150vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
151vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
152vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700100000
153vboxvideo_drv_71_INCS = \
154 $(VBOX_PATH_X11_XORG_7_1) \
155 $(VBOX_PATH_X11_XORG_7_1)/X11 \
156 $(VBOX_PATH_X11_XORG_7_1)/xorg
157vboxvideo_drv_71_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
158vboxvideo_drv_71_SOURCES = $(vboxvideo_drv_SOURCES)
159
160
161#
162# vboxvideo_drv_13
163#
164DLLS += vboxvideo_drv_13
165vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
166vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
167vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100300000
168vboxvideo_drv_13_INCS = \
169 $(vboxvideo_xorg_INCS) \
170 $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0
171vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
172vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
173
174
175#
176# vboxvideo_drv_14
177#
178DLLS += vboxvideo_drv_14
179vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
180vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
181vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100400000
182vboxvideo_drv_14_INCS = \
183 $(vboxvideo_xorg_INCS) \
184 $(VBOX_PATH_X11_ROOT)/xorg-server-1.4.2
185vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
186vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES)
187
188
189#
190# vboxvideo_drv_15
191#
192DLLS += vboxvideo_drv_15
193vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
194vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
195vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100503000
196if1of ($(KBUILD_TARGET), linux solaris)
197 vboxvideo_drv_15_DEFS += VBOX_DRI
198endif
199vboxvideo_drv_15_INCS = \
200 $(vboxvideo_xorg_INCS) \
201 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
202vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
203vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES)
204if1of ($(KBUILD_TARGET), linux solaris)
205 vboxvideo_drv_15_SOURCES += \
206 vboxvideo_dri.c
207endif
208
209
210#
211# vboxvideo_drv_16
212#
213DLLS += vboxvideo_drv_16
214vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
215vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
216vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100600000
217vboxvideo_drv_16_INCS = \
218 $(vboxvideo_xorg_INCS) \
219 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.5 \
220vboxvideo_drv_16_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
221vboxvideo_drv_16_SOURCES := $(vboxvideo_drv_15_SOURCES)
222
223
224#
225# vboxvideo_drv_17
226#
227DLLS += vboxvideo_drv_17
228vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
229vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
230vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100699000
231vboxvideo_drv_17_INCS = \
232 $(vboxvideo_xorg_INCS) \
233 $(VBOX_PATH_X11_ROOT)/xorg-server-1.7.7
234vboxvideo_drv_17_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
235vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_15_SOURCES)
236
237
238#
239# vboxvideo_drv_18
240#
241DLLS += vboxvideo_drv_18
242vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
243vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
244vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100800000
245vboxvideo_drv_18_INCS = \
246 $(vboxvideo_xorg_INCS) \
247 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0
248vboxvideo_drv_18_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
249vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_15_SOURCES)
250
251
252#
253# vboxvideo_drv_19
254#
255DLLS += vboxvideo_drv_19
256vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
257vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
258vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100900000
259vboxvideo_drv_19_INCS = \
260 $(vboxvideo_xorg_INCS) \
261 $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0
262vboxvideo_drv_19_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
263vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_15_SOURCES)
264
265
266#
267# vboxvideo_drv_110
268#
269DLLS += vboxvideo_drv_110
270vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
271vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
272vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101000000
273vboxvideo_drv_110_INCS = \
274 $(vboxvideo_xorg_INCS) \
275 $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0
276vboxvideo_drv_110_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
277vboxvideo_drv_110_SOURCES := $(vboxvideo_drv_15_SOURCES)
278
279
280#
281# vboxvideo_drv_111
282#
283DLLS += vboxvideo_drv_111
284vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
285vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
286vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101100000
287vboxvideo_drv_111_INCS = \
288 $(vboxvideo_xorg_INCS) \
289 $(VBOX_PATH_X11_ROOT)/xorg-server-1.11.0
290vboxvideo_drv_111_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
291vboxvideo_drv_111_SOURCES := $(vboxvideo_drv_15_SOURCES)
292
293
294#
295# vboxvideo_drv_112
296#
297DLLS += vboxvideo_drv_112
298vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
299vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
300vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101200000
301vboxvideo_drv_112_INCS = \
302 $(vboxvideo_xorg_INCS) \
303 $(VBOX_PATH_X11_ROOT)/xorg-server-1.12.0
304vboxvideo_drv_112_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
305vboxvideo_drv_112_SOURCES := $(vboxvideo_drv_15_SOURCES)
306
307
308#
309# vboxvideo_drv_113
310#
311DLLS += vboxvideo_drv_113
312vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
313vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
314vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101300000
315vboxvideo_drv_113_INCS = \
316 $(vboxvideo_xorg_INCS) \
317 $(VBOX_PATH_X11_ROOT)/xorg-server-1.13.0
318vboxvideo_drv_113_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
319vboxvideo_drv_113_SOURCES := $(vboxvideo_drv_15_SOURCES)
320
321
322#
323# vboxvideo_drv_114
324#
325DLLS += vboxvideo_drv_114
326vboxvideo_drv_114_TEMPLATE = VBOXGUESTR3XORGMOD
327vboxvideo_drv_114_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
328vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101400000
329vboxvideo_drv_114_INCS = \
330 $(vboxvideo_xorg_INCS) \
331 $(VBOX_PATH_X11_ROOT)/xorg-server-1.14.0
332vboxvideo_drv_114_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
333vboxvideo_drv_114_SOURCES := $(vboxvideo_drv_15_SOURCES)
334
335
336# 32-bit modules for the 64-bit Linux Additions
337ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
338 ifneq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),)
339 SYSMODS += vboxvideo_drv_32
340 vboxvideo_drv_32_EXTENDS = vboxvideo_drv
341 vboxvideo_drv_32_TEMPLATE = VBOXGUESTR3XF86MOD_X86
342 vboxvideo_drv_32_NAME = vboxvideo_drv
343 $(foreach i,$(filter vboxvideo_drv_%,$(DLLS)),$(eval DLLS += $(i)_32))
344 $(foreach i,$(filter vboxvideo_drv_%_32,$(DLLS)),$(eval $(i)_EXTENDS = $(subst _32,,$(i))))
345 $(foreach i,$(filter vboxvideo_drv_%_32,$(DLLS)),$(eval $(i)_TEMPLATE = VBOXGUESTR3XORGMOD_X86))
346 $(foreach i,$(filter vboxvideo_drv_%_32,$(DLLS)),$(eval $(i)_NAME = $(subst _32,,$(i))))
347 endif
348endif
349
350ifdef VBOX_USE_SYSTEM_XORG_HEADERS
351 # Build using local X.Org headers. We assume X.Org Server 1.7 or later.
352 DLLS := $(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system
353 SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS))
354 vboxvideo_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD
355 vboxvideo_drv_system_CFLAGS := \
356 $(vboxvideo_drv_70_CFLAGS) -include xorg-server.h
357 vboxvideo_drv_system_DEFS := $(vboxvideo_15_DEFS)
358 vboxvideo_drv_system_INCS += \
359 $(PATH_ROOT)/src/VBox/Runtime/include \
360 /usr/include/x11 \
361 /usr/include/X11/dri \
362 /usr/include/libdrm \
363 /usr/include/xorg \
364 /usr/include/pixman-1
365 vboxvideo_drv_system_SOURCES := $(vboxvideo_drv_15_SOURCES)
366endif
367
368# Check the undefined symbols in the X.Org modules against lists of allowed
369# symbols. Not very elegant, but it will catch problems early.
370
371ifdef VBOX_WITH_TESTCASES
372# ifndef VBOX_ONLY_ADDITIONS
373 ifndef VBOX_USE_SYSTEM_XORG_HEADERS
374 if1of ($(KBUILD_TARGET),linux solaris)
375 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
376 ifndef VBOX_ONLY_SDK
377 VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
378
379 ifeq ($(KBUILD_TARGET),linux)
380 TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
381 OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
382$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
383 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
384 $(QUIET)$(ASH) $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
385 $(vboxvideo_drv_1_STAGE_TARGET) --static $(VBOXVIDEO_SRC_PATH)/undefined
386 $(QUIET)$(APPEND) -t "$@" "done"
387 endif
388
389##
390# Using the extra expansion to replace $(ver) before eval, thus everything
391# else needs escaped dollars.
392 define def_vboxvideo_test
393 TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
394 OTHERS += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
395 $$$$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
396 $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
397 $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST) \
398 $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/undefined $$(VBOXVIDEO_SRC_PATH)/undefined_extra
399 $$(QUIET)$$(APPEND) -t "$$@" "done"
400 endef
401
402 $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113 _114, $(eval $(def_vboxvideo_test)))
403
404 endif # ! VBOX_ONLY_SDK
405 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
406 endif # 1of ($(KBUILD_TARGET),linux solaris)
407 endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
408# endif # ! VBOX_ONLY_ADDITIONS
409endif # VBOX_WITH_TESTCASES
410
411include $(FILE_KBUILD_SUB_FOOTER)
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