diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-07 09:31:43 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-07 09:31:43 +0000 |
commit | f7cabaae530047668228c284a9261a55afc6567b (patch) | |
tree | 5181b3af0ada767bdf0e7c91fe86043134c41a98 /meta | |
parent | 6c004de3821267a1c3f5c47b6101cca6c3605202 (diff) | |
download | poky-f7cabaae530047668228c284a9261a55afc6567b.tar.gz |
sanity.bbclass: Add check of the /proc/sys/vm/mmap_min_addr value and warn if its potentially problematic
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4448 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 45fdc19b95..b8fc090184 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -96,6 +96,12 @@ def check_sanity(e): | |||
96 | if not check_app_exists("qemu-arm", e.data): | 96 | if not check_app_exists("qemu-arm", e.data): |
97 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" | 97 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" |
98 | 98 | ||
99 | if os.path.exists("/proc/sys/vm/mmap_min_addr"): | ||
100 | f = file("/proc/sys/vm/mmap_min_addr", "r") | ||
101 | if (f.read().strip() != "0"): | ||
102 | 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" | ||
103 | f.close() | ||
104 | |||
99 | for util in required_utilities.split(): | 105 | for util in required_utilities.split(): |
100 | if not check_app_exists( util, e.data ): | 106 | if not check_app_exists( util, e.data ): |
101 | missing = missing + "%s," % util | 107 | missing = missing + "%s," % util |