diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-01-30 13:00:04 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 11:58:50 +0100 |
commit | 57d434407adc967a696d7afad0cc32f8f7eb4a4f (patch) | |
tree | 8b180312b184f527f05678b9075fa54356bc8ab8 /hw | |
parent | 99e1a93bbf602f16efacac7d392f355892328e2a (diff) | |
download | qemu-57d434407adc967a696d7afad0cc32f8f7eb4a4f.zip qemu-57d434407adc967a696d7afad0cc32f8f7eb4a4f.tar.gz qemu-57d434407adc967a696d7afad0cc32f8f7eb4a4f.tar.bz2 |
hw/display/milkymist-tmu2: Explicit the dependency to both X11 / OpenGL
The TMU device requires both X11 and OpenGL.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190130120005.23123-4-philmd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/Makefile.objs | 4 | ||||
-rw-r--r-- | hw/lm32/milkymist-hw.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs index 5b77081..7c4ae9a 100644 --- a/hw/display/Makefile.objs +++ b/hw/display/Makefile.objs @@ -29,8 +29,8 @@ obj-$(CONFIG_MILKYMIST) += milkymist-vgafb.o common-obj-$(CONFIG_ZAURUS) += tc6393xb.o obj-$(CONFIG_MILKYMIST_TMU2) += milkymist-tmu2.o -milkymist-tmu2.o-cflags := $(X11_CFLAGS) -milkymist-tmu2.o-libs := $(X11_LIBS) +milkymist-tmu2.o-cflags := $(X11_CFLAGS) $(OPENGL_CFLAGS) +milkymist-tmu2.o-libs := $(X11_LIBS) $(OPENGL_LIBS) obj-$(CONFIG_OMAP) += omap_dss.o obj-$(CONFIG_OMAP) += omap_lcdc.o diff --git a/hw/lm32/milkymist-hw.h b/hw/lm32/milkymist-hw.h index d3be0cf..32c344e 100644 --- a/hw/lm32/milkymist-hw.h +++ b/hw/lm32/milkymist-hw.h @@ -88,7 +88,7 @@ static inline DeviceState *milkymist_pfpu_create(hwaddr base, return dev; } -#ifdef CONFIG_OPENGL +#if defined(CONFIG_X11) && defined(CONFIG_OPENGL) #include <X11/Xlib.h> #include <epoxy/gl.h> #include <epoxy/glx.h> @@ -103,7 +103,7 @@ static const int glx_fbconfig_attr[] = { static inline DeviceState *milkymist_tmu2_create(hwaddr base, qemu_irq irq) { -#ifdef CONFIG_OPENGL +#if defined(CONFIG_X11) && defined(CONFIG_OPENGL) DeviceState *dev; Display *d; GLXFBConfig *configs; |