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/classes/sanity.bbclass | |
parent | 257a9edb4b6a12cc1c990f6bb2d8e5a6fb560823 (diff) | |
download | 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/classes/sanity.bbclass')
-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 1b272190e7..a6d320b167 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -172,8 +172,8 @@ def check_sanity(e): | |||
172 | if os.path.exists("/proc/sys/vm/mmap_min_addr"): | 172 | if os.path.exists("/proc/sys/vm/mmap_min_addr"): |
173 | f = open("/proc/sys/vm/mmap_min_addr", "r") | 173 | f = open("/proc/sys/vm/mmap_min_addr", "r") |
174 | try: | 174 | try: |
175 | if (int(f.read().strip()) < 65536): | 175 | if (int(f.read().strip()) > 65536): |
176 | 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" | 176 | 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" |
177 | finally: | 177 | finally: |
178 | f.close() | 178 | f.close() |
179 | except: | 179 | except: |