* [PATCHv3 3/4] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
@ 2011-03-08 6:46 Khem Raj
2011-03-08 19:03 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2011-03-08 6:46 UTC (permalink / raw)
To: openembedded-core
* Now qemu can handle lower values we can chnage this sanity test
to check of values if less than 65536
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/classes/sanity.bbclass | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 13940f8..aae5028 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -170,10 +170,12 @@ def check_sanity(e):
# This path is no longer user-readable in modern (very recent) Linux
try:
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\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
- f.close()
+ 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"
+ finally:
+ f.close()
except:
pass
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv3 3/4] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
2011-03-08 6:46 [PATCHv3 3/4] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
@ 2011-03-08 19:03 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2011-03-08 19:03 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2011-03-07 at 22:46 -0800, Khem Raj wrote:
> * Now qemu can handle lower values we can chnage this sanity test
> to check of values if less than 65536
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/sanity.bbclass | 10 ++++++----
> 1 files changed, 6 insertions(+), 4 deletions(-)
Merged into master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-08 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 6:46 [PATCHv3 3/4] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-08 19:03 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.