diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-09 14:02:59 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-09 14:02:59 +0000 |
commit | d1798db3ca4cb25ffc4bc46d3f87f932a2940486 (patch) | |
tree | de6504e78f51a251d4f9169f60c351097ada873e /meta | |
parent | 62f662256a6cd1e55849e98715d0d3a654d7f78a (diff) | |
download | openembedded-core-d1798db3ca4cb25ffc4bc46d3f87f932a2940486.tar.gz openembedded-core-d1798db3ca4cb25ffc4bc46d3f87f932a2940486.tar.bz2 openembedded-core-d1798db3ca4cb25ffc4bc46d3f87f932a2940486.tar.xz openembedded-core-d1798db3ca4cb25ffc4bc46d3f87f932a2940486.zip |
qemu: fix lack of MAP_32BIT on 32bit machines
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2475 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch | 20 | ||||
-rw-r--r-- | meta/packages/qemu/qemu_cvs.bb | 2 |
2 files changed, 16 insertions, 6 deletions
diff --git a/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch b/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch index 8f5e9d8b4..d9303e346 100644 --- a/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch +++ b/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch @@ -1,7 +1,17 @@ -diff -Naru qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c qemu-snapshot-2007-07-01_05/linux-user/mmap.c ---- qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c 2007-06-03 17:31:32.000000000 +0200 -+++ qemu-snapshot-2007-07-01_05/linux-user/mmap.c 2007-07-02 14:00:30.000000000 +0200 -@@ -234,7 +234,7 @@ +--- qemu.orig/linux-user/mmap.c ++++ qemu/linux-user/mmap.c +@@ -29,6 +29,10 @@ + + //#define DEBUG_MMAP + ++#ifndef MAP_32BIT ++#define MAP_32BIT 0 ++#endif ++ + /* NOTE: all the constants are the HOST ones, but addresses are target. */ + int target_mprotect(target_ulong start, target_ulong len, int prot) + { +@@ -234,7 +238,7 @@ host_offset = offset & qemu_host_page_mask; host_len = len + offset - host_offset; host_start = (long)mmap(real_start ? g2h(real_start) : NULL, @@ -10,7 +20,7 @@ diff -Naru qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c qemu-snapshot-2007 if (host_start == -1) return host_start; /* update start so that it points to the file position at 'offset' */ -@@ -388,7 +388,7 @@ +@@ -388,7 +392,7 @@ int prot; /* XXX: use 5 args syscall */ diff --git a/meta/packages/qemu/qemu_cvs.bb b/meta/packages/qemu/qemu_cvs.bb index 740bf1258..29d68438a 100644 --- a/meta/packages/qemu/qemu_cvs.bb +++ b/meta/packages/qemu/qemu_cvs.bb @@ -1,7 +1,7 @@ LICENSE = "GPL" DEPENDS = "zlib" PV = "0.9.0+cvs${SRCDATE}" -PR = "r2" +PR = "r3" FILESDIR = "${WORKDIR}" |