[oe] [sanity.bbclass] Make the mmap min_addr check not depend on arm

Holger Freyther zecke at selfish.org
Tue Oct 28 21:27:45 UTC 2008


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.
-------------- next part --------------
commit 6f11296d1bdf022443763a02b0cf2d808cbad19a
Author: Holger Hans Peter Freyther <zecke at openmoko.org>
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.

diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 883c0e5..4e33616 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -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 ):


More information about the Openembedded-devel mailing list