Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [sanity.bbclass] Make the mmap min_addr check not depend on arm
@ 2008-10-28 21:27 Holger Freyther
  0 siblings, 0 replies; only message in thread
From: Holger Freyther @ 2008-10-28 21:27 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

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.

[-- Attachment #2: sanity.bbclass --]
[-- Type: text/plain, Size: 1420 bytes --]

commit 6f11296d1bdf022443763a02b0cf2d808cbad19a
Author: Holger Hans Peter Freyther <zecke@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 ):

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-29 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 21:27 [sanity.bbclass] Make the mmap min_addr check not depend on arm Holger Freyther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox