diff options
author | Richard Purdie <richard@openedhand.com> | 2007-11-13 20:00:21 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-11-13 20:00:21 +0000 |
commit | fda2bb511e8ddc93cfe84bba740f6af151d37b07 (patch) | |
tree | c4d35c8730acb9b406e1e1eed7e6b2d3c7a7197a /meta-extras/packages/qemu | |
parent | 210caef864c14cf30c224f2ae09253bdf6932d7e (diff) | |
download | openembedded-core-fda2bb511e8ddc93cfe84bba740f6af151d37b07.tar.gz openembedded-core-fda2bb511e8ddc93cfe84bba740f6af151d37b07.tar.bz2 openembedded-core-fda2bb511e8ddc93cfe84bba740f6af151d37b07.zip |
Add android-goldfish metadata to meta-extras
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3143 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages/qemu')
-rw-r--r-- | meta-extras/packages/qemu/qemu-android-native.bb | 25 | ||||
-rw-r--r-- | meta-extras/packages/qemu/qemu-android-native/fixes.patch | 45 |
2 files changed, 70 insertions, 0 deletions
diff --git a/meta-extras/packages/qemu/qemu-android-native.bb b/meta-extras/packages/qemu/qemu-android-native.bb new file mode 100644 index 0000000000..169d790864 --- /dev/null +++ b/meta-extras/packages/qemu/qemu-android-native.bb @@ -0,0 +1,25 @@ +LICENSE = "GPL" +DEPENDS = "zlib-native" +PV = "0.0-rc20" +PR = "r0" + +SRC_URI = "http://android.googlecode.com/files/android-emulator-m3-rc20.tar.bz2 \ + file://fixes.patch;patch=1" + +S = "${WORKDIR}/android-emulator-20071111/qemu" + +EXTRA_OECONF = "--disable-gfx-check --target-list=arm-softmmu --enable-nand --enable-skins --enable-trace --enable-shaper --use-sdl-config=${prefix}/hackedsdl/bin/sdl-config --disable-user --disable-kqemu --enable-sdl --static-png --static-sdl" + +inherit autotools +inherit native + +do_unfubar () { + chmod -R u+w ${WORKDIR}/ + cd ${WORKDIR}/android-emulator-20071111/sdl + configure --prefix=${prefix}/hackedsdl + make + make install +} + +addtask unfubar after do_unpack before do_patch + diff --git a/meta-extras/packages/qemu/qemu-android-native/fixes.patch b/meta-extras/packages/qemu/qemu-android-native/fixes.patch new file mode 100644 index 0000000000..5d16b6061d --- /dev/null +++ b/meta-extras/packages/qemu/qemu-android-native/fixes.patch @@ -0,0 +1,45 @@ +Index: qemu/linux-user/elfload.c +=================================================================== +--- qemu.orig/linux-user/elfload.c 2007-11-12 06:58:42.000000000 +0000 ++++ qemu/linux-user/elfload.c 2007-11-12 20:41:37.000000000 +0000 +@@ -12,6 +12,10 @@ + #include "qemu.h" + #include "disas.h" + ++#ifndef O_BINARY ++#define O_BINARY 0 ++#endif ++ + /* this flag is uneffective under linux too, should be deleted */ + #ifndef MAP_DENYWRITE + #define MAP_DENYWRITE 0 +Index: qemu/linux-user/linuxload.c +=================================================================== +--- qemu.orig/linux-user/linuxload.c 2007-11-12 06:58:42.000000000 +0000 ++++ qemu/linux-user/linuxload.c 2007-11-12 20:35:16.000000000 +0000 +@@ -12,6 +12,10 @@ + + #define NGROUPS 32 + ++#ifndef O_BINARY ++#define O_BINARY 0 ++#endif ++ + /* ??? This should really be somewhere else. */ + void memcpy_to_target(target_ulong dest, const void *src, + unsigned long len) +Index: qemu/hw/qfb_fs.c +=================================================================== +--- qemu.orig/hw/qfb_fs.c 2007-11-12 06:58:41.000000000 +0000 ++++ qemu/hw/qfb_fs.c 2007-11-12 20:59:34.000000000 +0000 +@@ -14,6 +14,10 @@ + #include <sys/xattr.h> + #include <errno.h> + ++#ifndef O_BINARY ++#define O_BINARY 0 ++#endif ++ + /* all mount paths */ + static int next_path_index = 0; + static struct mount_path mount_paths[MAX_MOUNT_PATHS]; |