diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-05-07 09:39:08 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-05-07 09:39:08 +0000 |
commit | 4293a82a6425a2baa39e26d18c1285b092c31254 (patch) | |
tree | 1f5c27bb8d9dc37d6adc893ac3ba6866a9116ea7 /classes | |
parent | 525a3db7e70c9e6418861d4534b69e4550666328 (diff) |
sanity.bbclass: Add check for problematic /proc/sys/vm/mmap_min_addr values
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanity.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index 44c74a0354..7aabe04283 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -98,6 +98,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 |