summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu-0.13.0/enable-i386-linux-user.patch
blob: 95420ef99e49e0f6d2610a94766f5c44d414e598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Enable i386-linux-user

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

Index: qemu-0.13.0/Makefile.target
===================================================================
--- qemu-0.13.0.orig/Makefile.target	2011-01-17 16:50:39.000000000 +0800
+++ qemu-0.13.0/Makefile.target	2011-01-17 16:50:41.000000000 +0800
@@ -54,8 +54,13 @@
 libobj-y += cpuid.o
 endif
 libobj-$(CONFIG_NEED_MMU) += mmu.o
+ifndef CONFIG_LINUX_USER
 libobj-$(TARGET_I386) += helper_opengl.o opengl_exec.o
 libobj-$(TARGET_X86_64) += helper_opengl.o opengl_exec.o
+else
+libobj-$(TARGET_I386) += dummygl.o
+libobj-$(TARGET_X86_64) += dummygl.o
+endif #CONFIG_LINUX_USER
 libobj-$(TARGET_ARM) += dummygl.o
 libobj-$(TARGET_MIPS) += dummygl.o
 libobj-$(TARGET_PPC) += dummygl.o
Index: qemu-0.13.0/target-i386/dummygl.c
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ qemu-0.13.0/target-i386/dummygl.c	2011-01-17 16:50:41.000000000 +0800
@@ -0,0 +1,26 @@
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <stdint.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+void opengl_exec_set_parent_window(Display* _dpy, Window _parent_window)
+{
+
+}
+
+void opengl_process_enable(void)
+{
+
+}
+
+
+void mem_opengl(uint64_t ptr)
+{
+
+}
+
+void helper_opengl(void)
+{
+}
OpenPOWER on IntegriCloud