VirtualBox

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

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

Additions/x11/vboxvideo: build with system headers on new X.Org servers.

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