summaryrefslogtreecommitdiff
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-09-29 12:18:34 +0100
committerJoshua Lock <josh@linux.intel.com>2010-09-29 17:10:41 +0100
commit7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf (patch)
treee3ac55e588a75491cf066cf591ba2d3c3658c98e /scripts/poky-qemu-internal
parent62fe6dc755d83a4d394cb8a3751fc6172715ee37 (diff)
downloadopenembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.tar.gz
openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.tar.bz2
openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.zip
Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"
This reverts commit 138df217efe850528f88d340acf864c38780c2b0. We still need the vm_mmap_min_addr set to 0 to run locale generation for qemu-arm Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index e7b7af3930..cb5d28b904 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -150,6 +150,13 @@ if [ ! -f "$ZIMAGE" ]; then
return
fi
+if [ -e /proc/sys/vm/mmap_min_addr ]; then
+ if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then
+ echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU"
+ return
+ fi
+fi
+
if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then
QEMU=qemu-system-arm
MACHINE_SUBTYPE=versatilepb