poky-qemu-internal: only check mmap_min_addr when running arm images

No need to force users to poke /proc/sys when they don't need to.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-10-01 15:09:47 +01:00
parent 8fdc5ff4c1
commit b9369741db
1 changed files with 7 additions and 7 deletions

View File

@ -150,14 +150,14 @@ 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
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
QEMU=qemu-system-arm
MACHINE_SUBTYPE=versatilepb
QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS"