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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Include sub-makefile(s).
|
---|
23 | #
|
---|
24 | ifndef VBOX_USE_SYSTEM_XORG_HEADERS
|
---|
25 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
26 | endif
|
---|
27 |
|
---|
28 | vboxvideo_70_DEFS := \
|
---|
29 | IN_MODULE XORG_7X RENDER=1 IN_RT_STATIC
|
---|
30 | ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
|
---|
31 | vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this?
|
---|
32 | endif
|
---|
33 | ifdef VBOX_WITH_GUEST_KMS_DRIVER
|
---|
34 | vboxvideo_70_DEFS += VBOX_WITH_GUEST_KMS_DRIVER
|
---|
35 | endif
|
---|
36 | vboxvideo_13_DEFS := $(vboxvideo_70_DEFS) VBOXVIDEO_13
|
---|
37 | vboxvideo_15_DEFS := \
|
---|
38 | $(vboxvideo_13_DEFS) NO_ANSIC PCIACCESS XSERVER_LIBPCIACCESS
|
---|
39 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
40 | vboxvideo_15_DEFS += \
|
---|
41 | VBOX_DRI
|
---|
42 | endif
|
---|
43 | vboxvideo_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 | #
|
---|
63 | if1of ($(KBUILD_TARGET), linux)
|
---|
64 | SYSMODS += vboxvideo_drv
|
---|
65 | endif # target linux
|
---|
66 | vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
|
---|
67 | vboxvideo_drv_CFLAGS += -Wno-shadow # Avoid MBs of warnings in X11 and OpenGL headers (solaris mostly).
|
---|
68 | vboxvideo_drv_DEFS.linux = linux
|
---|
69 | vboxvideo_drv_DEFS.x86 = __i386__
|
---|
70 | # This one has to be defined when building server code on systems where
|
---|
71 | # unsigned long is 64bits
|
---|
72 | vboxvideo_drv_DEFS.amd64 += _XSERVER64
|
---|
73 | vboxvideo_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
|
---|
81 | vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
|
---|
82 | ifdef VBOX_WITH_GUEST_KMS_DRIVER
|
---|
83 | vboxvideo_drv_DEFS += VBOX_WITH_GUEST_KMS_DRIVER
|
---|
84 | endif
|
---|
85 | vboxvideo_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
|
---|
115 | vboxvideo_drv_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
116 | vboxvideo_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 | #
|
---|
144 | DLLS += vboxvideo_drv_70
|
---|
145 | vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
146 | vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700000000
|
---|
147 | ifeq ($(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.
|
---|
149 | endif
|
---|
150 | vboxvideo_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
|
---|
154 | vboxvideo_drv_70_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
155 | vboxvideo_drv_70_SOURCES = $(vboxvideo_drv_SOURCES)
|
---|
156 |
|
---|
157 |
|
---|
158 | #
|
---|
159 | # vboxvideo_drv_71
|
---|
160 | #
|
---|
161 | DLLS += vboxvideo_drv_71
|
---|
162 | vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
163 | vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
164 | vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700100000
|
---|
165 | vboxvideo_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
|
---|
169 | vboxvideo_drv_71_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
170 | vboxvideo_drv_71_SOURCES = $(vboxvideo_drv_SOURCES)
|
---|
171 |
|
---|
172 |
|
---|
173 | #
|
---|
174 | # vboxvideo_drv_13
|
---|
175 | #
|
---|
176 | DLLS += vboxvideo_drv_13
|
---|
177 | vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
178 | vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
179 | vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100300000
|
---|
180 | vboxvideo_drv_13_INCS = \
|
---|
181 | $(vboxvideo_xorg_INCS) \
|
---|
182 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0
|
---|
183 | vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
184 | vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
|
---|
185 |
|
---|
186 |
|
---|
187 | #
|
---|
188 | # vboxvideo_drv_14
|
---|
189 | #
|
---|
190 | DLLS += vboxvideo_drv_14
|
---|
191 | vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
192 | vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
193 | vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100400000
|
---|
194 | vboxvideo_drv_14_INCS = \
|
---|
195 | $(vboxvideo_xorg_INCS) \
|
---|
196 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.4.2
|
---|
197 | vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
198 | vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES)
|
---|
199 |
|
---|
200 |
|
---|
201 | #
|
---|
202 | # vboxvideo_drv_15
|
---|
203 | #
|
---|
204 | DLLS += vboxvideo_drv_15
|
---|
205 | vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
206 | vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
207 | vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100503000
|
---|
208 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
209 | vboxvideo_drv_15_DEFS += \
|
---|
210 | VBOX_DRI_OLD
|
---|
211 | endif
|
---|
212 | vboxvideo_drv_15_INCS = \
|
---|
213 | $(vboxvideo_xorg_INCS) \
|
---|
214 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
|
---|
215 | vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
216 | vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES)
|
---|
217 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
218 | vboxvideo_drv_15_SOURCES += \
|
---|
219 | vboxvideo_dri.c
|
---|
220 | endif
|
---|
221 |
|
---|
222 |
|
---|
223 | #
|
---|
224 | # vboxvideo_drv_16
|
---|
225 | #
|
---|
226 | DLLS += vboxvideo_drv_16
|
---|
227 | vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
228 | vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
229 | vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100600000
|
---|
230 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
231 | vboxvideo_drv_16_DEFS += \
|
---|
232 | VBOX_DRI_OLD
|
---|
233 | endif
|
---|
234 | vboxvideo_drv_16_INCS = \
|
---|
235 | $(vboxvideo_xorg_INCS) \
|
---|
236 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.5 \
|
---|
237 | vboxvideo_drv_16_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
238 | vboxvideo_drv_16_SOURCES := $(vboxvideo_drv_15_SOURCES)
|
---|
239 |
|
---|
240 |
|
---|
241 | #
|
---|
242 | # vboxvideo_drv_17
|
---|
243 | #
|
---|
244 | DLLS += vboxvideo_drv_17
|
---|
245 | vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
246 | vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
247 | vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100699000
|
---|
248 | vboxvideo_drv_17_INCS = \
|
---|
249 | $(vboxvideo_xorg_INCS) \
|
---|
250 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.7.7
|
---|
251 | vboxvideo_drv_17_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
252 | vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_13_SOURCES)
|
---|
253 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
254 | vboxvideo_drv_17_SOURCES += \
|
---|
255 | vboxvideo_dri2.c
|
---|
256 | endif
|
---|
257 |
|
---|
258 |
|
---|
259 | #
|
---|
260 | # vboxvideo_drv_18
|
---|
261 | #
|
---|
262 | DLLS += vboxvideo_drv_18
|
---|
263 | vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
264 | vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
265 | vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100800000
|
---|
266 | vboxvideo_drv_18_INCS = \
|
---|
267 | $(vboxvideo_xorg_INCS) \
|
---|
268 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0
|
---|
269 | vboxvideo_drv_18_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
270 | vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
271 |
|
---|
272 |
|
---|
273 | #
|
---|
274 | # vboxvideo_drv_19
|
---|
275 | #
|
---|
276 | DLLS += vboxvideo_drv_19
|
---|
277 | vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
278 | vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
279 | vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100900000
|
---|
280 | vboxvideo_drv_19_INCS = \
|
---|
281 | $(vboxvideo_xorg_INCS) \
|
---|
282 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0
|
---|
283 | vboxvideo_drv_19_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
284 | vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
285 |
|
---|
286 |
|
---|
287 | #
|
---|
288 | # vboxvideo_drv_110
|
---|
289 | #
|
---|
290 | DLLS += vboxvideo_drv_110
|
---|
291 | vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
292 | vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
293 | vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101000000
|
---|
294 | vboxvideo_drv_110_INCS = \
|
---|
295 | $(vboxvideo_xorg_INCS) \
|
---|
296 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0
|
---|
297 | vboxvideo_drv_110_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
298 | vboxvideo_drv_110_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
299 |
|
---|
300 |
|
---|
301 | #
|
---|
302 | # vboxvideo_drv_111
|
---|
303 | #
|
---|
304 | DLLS += vboxvideo_drv_111
|
---|
305 | vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
306 | vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
307 | vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101100000
|
---|
308 | vboxvideo_drv_111_INCS = \
|
---|
309 | $(vboxvideo_xorg_INCS) \
|
---|
310 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.11.0
|
---|
311 | vboxvideo_drv_111_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
312 | vboxvideo_drv_111_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
313 |
|
---|
314 |
|
---|
315 | #
|
---|
316 | # vboxvideo_drv_112
|
---|
317 | #
|
---|
318 | DLLS += vboxvideo_drv_112
|
---|
319 | vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
320 | vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
321 | vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101200000
|
---|
322 | vboxvideo_drv_112_INCS = \
|
---|
323 | $(vboxvideo_xorg_INCS) \
|
---|
324 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.12.0
|
---|
325 | vboxvideo_drv_112_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
326 | vboxvideo_drv_112_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
327 |
|
---|
328 |
|
---|
329 | #
|
---|
330 | # vboxvideo_drv_113
|
---|
331 | #
|
---|
332 | DLLS += vboxvideo_drv_113
|
---|
333 | vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
334 | vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
335 | vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101300000
|
---|
336 | vboxvideo_drv_113_INCS = \
|
---|
337 | $(vboxvideo_xorg_INCS) \
|
---|
338 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.13.0
|
---|
339 | vboxvideo_drv_113_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
340 | vboxvideo_drv_113_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
341 |
|
---|
342 |
|
---|
343 | #
|
---|
344 | # vboxvideo_drv_114
|
---|
345 | #
|
---|
346 | DLLS += vboxvideo_drv_114
|
---|
347 | vboxvideo_drv_114_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
348 | vboxvideo_drv_114_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
349 | vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101400000
|
---|
350 | vboxvideo_drv_114_INCS = \
|
---|
351 | $(vboxvideo_xorg_INCS) \
|
---|
352 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.14.0
|
---|
353 | vboxvideo_drv_114_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
354 | vboxvideo_drv_114_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
355 |
|
---|
356 |
|
---|
357 | #
|
---|
358 | # vboxvideo_drv_115
|
---|
359 | #
|
---|
360 | DLLS += vboxvideo_drv_115
|
---|
361 | vboxvideo_drv_115_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
362 | vboxvideo_drv_115_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
363 | vboxvideo_drv_115_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101500000
|
---|
364 | vboxvideo_drv_115_INCS = \
|
---|
365 | $(vboxvideo_xorg_INCS) \
|
---|
366 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.15.0
|
---|
367 | vboxvideo_drv_115_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
368 | vboxvideo_drv_115_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
369 |
|
---|
370 |
|
---|
371 | ifdef 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)
|
---|
387 | endif
|
---|
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 |
|
---|
393 | ifdef 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
|
---|
431 | endif # VBOX_WITH_TESTCASES
|
---|
432 |
|
---|
433 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|