diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
| commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
| tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch | |
| download | meta-linaro-8d89651ef729e560ad96dcfc002fcde6ff7f923b.tar.gz | |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch')
| -rw-r--r-- | meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch b/meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch new file mode 100644 index 0000000..bb0d6a3 --- /dev/null +++ b/meta-linaro/recipes-devtools/qemu/files/enable-i386-linux-user.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Enable i386-linux-user | ||
| 2 | |||
| 3 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
| 4 | |||
| 5 | Upstream-Status: Inappropriate [configuration] | ||
| 6 | |||
| 7 | Index: qemu-0.14.0/Makefile.target | ||
| 8 | =================================================================== | ||
| 9 | --- qemu-0.14.0.orig/Makefile.target | ||
| 10 | +++ qemu-0.14.0/Makefile.target | ||
| 11 | @@ -78,8 +78,13 @@ ifeq ($(TARGET_BASE_ARCH), i386) | ||
| 12 | libobj-y += cpuid.o | ||
| 13 | endif | ||
| 14 | libobj-$(CONFIG_NEED_MMU) += mmu.o | ||
| 15 | +ifndef CONFIG_LINUX_USER | ||
| 16 | libobj-$(TARGET_I386) += helper_opengl.o opengl_exec.o | ||
| 17 | libobj-$(TARGET_X86_64) += helper_opengl.o opengl_exec.o | ||
| 18 | +else | ||
| 19 | +libobj-$(TARGET_I386) += dummygl.o | ||
| 20 | +libobj-$(TARGET_X86_64) += dummygl.o | ||
| 21 | +endif #CONFIG_LINUX_USER | ||
| 22 | libobj-$(TARGET_ARM) += dummygl.o | ||
| 23 | libobj-$(TARGET_MIPS) += dummygl.o | ||
| 24 | libobj-$(TARGET_PPC) += dummygl.o | ||
| 25 | Index: qemu-0.14.0/target-i386/dummygl.c | ||
| 26 | =================================================================== | ||
| 27 | --- /dev/null | ||
| 28 | +++ qemu-0.14.0/target-i386/dummygl.c | ||
| 29 | @@ -0,0 +1,26 @@ | ||
| 30 | +#include <string.h> | ||
| 31 | +#include <stdlib.h> | ||
| 32 | +#include <assert.h> | ||
| 33 | +#include <stdint.h> | ||
| 34 | +#include <X11/Xlib.h> | ||
| 35 | +#include <X11/Xutil.h> | ||
| 36 | + | ||
| 37 | +void opengl_exec_set_parent_window(Display* _dpy, Window _parent_window) | ||
| 38 | +{ | ||
| 39 | + | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +void opengl_process_enable(void) | ||
| 43 | +{ | ||
| 44 | + | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | + | ||
| 48 | +void mem_opengl(uint64_t ptr) | ||
| 49 | +{ | ||
| 50 | + | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +void helper_opengl(void) | ||
| 54 | +{ | ||
| 55 | +} | ||
