VirtualBox

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

Last change on this file since 53570 was 53570, checked in by vboxsync, 10 years ago

Additions/x11/vboxvideo: remove test case which was not testing anything.

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