Skip to content

Commit b1e5fff

Browse files
committed
configure: rename OpenGL feature to GLX
As the probe now actually checks for the availability of GLX, rename it accordingly. The only user of this feature is the milkymist-tmu2 model. Signed-off-by: Michael Walle <[email protected]>
1 parent d3fcbb1 commit b1e5fff

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

configure

+15-15
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ spice=""
217217
rbd=""
218218
smartcard_nss=""
219219
usb_redir=""
220-
opengl=""
220+
glx=""
221221
zlib="yes"
222222
guest_agent="yes"
223223
want_tools="yes"
@@ -858,9 +858,9 @@ for opt do
858858
;;
859859
--enable-vhost-net) vhost_net="yes"
860860
;;
861-
--disable-opengl) opengl="no"
861+
--disable-glx) glx="no"
862862
;;
863-
--enable-opengl) opengl="yes"
863+
--enable-glx) glx="yes"
864864
;;
865865
--disable-rbd) rbd="no"
866866
;;
@@ -2435,23 +2435,23 @@ EOF
24352435
fi
24362436

24372437
##########################################
2438-
# opengl probe, used by milkymist-tmu2
2439-
if test "$opengl" != "no" ; then
2440-
opengl_libs="-lGL -lX11"
2438+
# GLX probe, used by milkymist-tmu2
2439+
if test "$glx" != "no" ; then
2440+
glx_libs="-lGL -lX11"
24412441
cat > $TMPC << EOF
24422442
#include <X11/Xlib.h>
24432443
#include <GL/gl.h>
24442444
#include <GL/glx.h>
24452445
int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
24462446
EOF
24472447
if compile_prog "" "-lGL -lX11" ; then
2448-
opengl=yes
2448+
glx=yes
24492449
else
2450-
if test "$opengl" = "yes" ; then
2451-
feature_not_found "opengl"
2450+
if test "$glx" = "yes" ; then
2451+
feature_not_found "glx"
24522452
fi
2453-
opengl_libs=
2454-
opengl=no
2453+
glx_libs=
2454+
glx=no
24552455
fi
24562456
fi
24572457

@@ -3429,7 +3429,7 @@ echo "rbd support $rbd"
34293429
echo "xfsctl support $xfs"
34303430
echo "nss used $smartcard_nss"
34313431
echo "usb net redir $usb_redir"
3432-
echo "OpenGL support $opengl"
3432+
echo "GLX support $glx"
34333433
echo "libiscsi support $libiscsi"
34343434
echo "build guest agent $guest_agent"
34353435
echo "seccomp support $seccomp"
@@ -3740,8 +3740,8 @@ if test "$usb_redir" = "yes" ; then
37403740
echo "CONFIG_USB_REDIR=y" >> $config_host_mak
37413741
fi
37423742

3743-
if test "$opengl" = "yes" ; then
3744-
echo "CONFIG_OPENGL=y" >> $config_host_mak
3743+
if test "$glx" = "yes" ; then
3744+
echo "CONFIG_GLX=y" >> $config_host_mak
37453745
fi
37463746

37473747
if test "$libiscsi" = "yes" ; then
@@ -4019,7 +4019,7 @@ case "$target_arch2" in
40194019
target_nptl="yes"
40204020
;;
40214021
lm32)
4022-
target_libs_softmmu="$opengl_libs"
4022+
target_libs_softmmu="$glx_libs"
40234023
;;
40244024
m68k)
40254025
bflt="yes"

hw/lm32/Makefile.objs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ obj-y += milkymist-minimac2.o
1111
obj-y += milkymist-pfpu.o
1212
obj-y += milkymist-softusb.o
1313
obj-y += milkymist-sysctl.o
14-
obj-$(CONFIG_OPENGL) += milkymist-tmu2.o
14+
obj-$(CONFIG_GLX) += milkymist-tmu2.o
1515
obj-y += milkymist-uart.o
1616
obj-y += milkymist-vgafb.o
1717
obj-y += framebuffer.o

hw/milkymist-hw.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static inline DeviceState *milkymist_pfpu_create(hwaddr base,
8787
return dev;
8888
}
8989

90-
#ifdef CONFIG_OPENGL
90+
#ifdef CONFIG_GLX
9191
#include <X11/Xlib.h>
9292
#include <GL/glx.h>
9393
static const int glx_fbconfig_attr[] = {
@@ -101,7 +101,7 @@ static const int glx_fbconfig_attr[] = {
101101
static inline DeviceState *milkymist_tmu2_create(hwaddr base,
102102
qemu_irq irq)
103103
{
104-
#ifdef CONFIG_OPENGL
104+
#ifdef CONFIG_GLX
105105
DeviceState *dev;
106106
Display *d;
107107
GLXFBConfig *configs;

0 commit comments

Comments
 (0)