summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-12 03:25:34 -0800
committerSaul Wold <sgw@linux.intel.com>2011-03-14 17:41:47 -0700
commita250829cb64b2d25918ae21ce4752f170a3345a8 (patch)
tree726020055223aa31ea3ef882d95623d911c1be55 /meta/classes
parentaa3af99591db29599259decf247f5d49128cb86f (diff)
downloadpoky-a250829cb64b2d25918ae21ce4752f170a3345a8.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')
-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 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: