mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"
This reverts commit 138df217ef.
We still need the vm_mmap_min_addr set to 0 to run locale generation for
qemu-arm
Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
@@ -120,6 +120,17 @@ 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 data.getVar('TARGET_ARCH', e.data, True) == "arm":
|
||||
# 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()
|
||||
except:
|
||||
pass
|
||||
|
||||
for util in required_utilities.split():
|
||||
if not check_app_exists( util, e.data ):
|
||||
missing = missing + "%s," % util
|
||||
|
||||
Reference in New Issue
Block a user