summaryrefslogtreecommitdiff
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-12 03:25:34 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-12 03:28:06 -0800
commit2956705bb0dad88b5ad7d42490c345ccb1d9d478 (patch)
tree1b34f2677c7b30e5b674f4279d7cb40ebd374ed7 /meta/classes/sanity.bbclass
parentc3b74b0c3833541ab5e89a7f9597f1ef8a413a70 (diff)
downloadopenembedded-core-2956705bb0dad88b5ad7d42490c345ccb1d9d478.tar.gz
openembedded-core-2956705bb0dad88b5ad7d42490c345ccb1d9d478.tar.bz2
openembedded-core-2956705bb0dad88b5ad7d42490c345ccb1d9d478.tar.xz
openembedded-core-2956705bb0dad88b5ad7d42490c345ccb1d9d478.zip
sanity.bbclass: Fix inverted mmap_min_addr logic
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 1b272190e..a6d320b16 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: