Make the mmap min_addr check not depend on arm
Hey,
I have the following in the OM git tree that was needed to build ecj-initial. Robert I would appreciate if you could comment if that is still needed and Richard can you agree to such a change?
z.
commit 6f11296d1bdf022443763a02b0cf2d808cbad19a
Author: Holger Hans Peter Freyther <[email protected]> Date: Mon Jul 21 10:27:57 2008 +0200
[sanity] Move the mmap_min_addr check out of arch == arm as ecj-initial fails
This check is not arm specific. An ordinary ecj-initial will fail with mmap'ing and classpath-native can not be build then.
classes/sanity.bbclass +5 -5
@@ -98,11 +98,11 @@ def check_sanity(e): if not check_app_exists("qemu-arm", e.data): messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" - if os.path.exists("/proc/sys/vm/mmap_min_addr"): - f = file("/proc/sys/vm/mmap_min_addr", "r") - if (f.read().strip() != "0"): - messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n" - f.close() + if os.path.exists("/proc/sys/vm/mmap_min_addr"): + f = file("/proc/sys/vm/mmap_min_addr", "r") + if (f.read().strip() != "0"): + messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu and ecj so please fix the value (as root).\n" + f.close() for util in required_utilities.split(): if not check_app_exists( util, e.data ):