diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-12 03:25:34 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-14 23:21:09 +0000 |
commit | de796d5df5b48cbe1978441bc6e1f56d00e53aca (patch) | |
tree | f3e95c7ae5707794d93d2a1e1abe858a28892c9d /meta | |
parent | 257a9edb4b6a12cc1c990f6bb2d8e5a6fb560823 (diff) | |
download | ast2050-yocto-poky-de796d5df5b48cbe1978441bc6e1f56d00e53aca.zip ast2050-yocto-poky-de796d5df5b48cbe1978441bc6e1f56d00e53aca.tar.gz |
sanity.bbclass: Fix inverted mmap_min_addr logic
(From OE-Core rev: 2956705bb0dad88b5ad7d42490c345ccb1d9d478)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 1b27219..a6d320b 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -172,8 +172,8 @@ def check_sanity(e): if os.path.exists("/proc/sys/vm/mmap_min_addr"): f = open("/proc/sys/vm/mmap_min_addr", "r") try: - if (int(f.read().strip()) < 65536): - messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n" + if (int(f.read().strip()) > 65536): + messages = messages + "/proc/sys/vm/mmap_min_addr is not <= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n" finally: f.close() except: |