mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
sanity.bbclass: Add check for problematic /proc/sys/vm/mmap_min_addr values
commit 4293a82a6425a2baa39e26d18c1285b092c31254 Author: Richard Purdie <rpurdie@rpsys.net> Date: Wed May 7 09:39:08 2008 +0000 sanity.bbclass: Add check for problematic /proc/sys/vm/mmap_min_addr values
This commit is contained in:
parent
8f3e41b0f6
commit
23212b4c3d
|
@ -96,6 +96,12 @@ def check_sanity(e):
|
|||
if not check_app_exists("qemu-arm", e.data):
|
||||
messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
|
||||
|
||||
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()
|
||||
|
||||
for util in required_utilities.split():
|
||||
if not check_app_exists( util, e.data ):
|
||||
missing = missing + "%s," % util
|
||||
|
|
Loading…
Reference in New Issue
Block a user