]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Add check of the /proc/sys/vm/mmap_min_addr value and warn if its...
authorRichard Purdie <richard@openedhand.com>
Wed, 7 May 2008 09:31:43 +0000 (09:31 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 7 May 2008 09:31:43 +0000 (09:31 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4448 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/sanity.bbclass

index 45fdc19b9599fe82656d0969af54053b4a5de122..b8fc090184e1c6b06e9904da30d4507271263d9c 100644 (file)
@@ -96,6 +96,12 @@ 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()
+
        for util in required_utilities.split():
                if not check_app_exists( util, e.data ):
                        missing = missing + "%s," % util