VirtualBox

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

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

HGSMI memory allocator: x11 build fix.

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