diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-09-29 12:18:34 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-09-29 17:10:41 +0100 |
commit | 7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf (patch) | |
tree | e3ac55e588a75491cf066cf591ba2d3c3658c98e /meta/classes/sanity.bbclass | |
parent | 62fe6dc755d83a4d394cb8a3751fc6172715ee37 (diff) | |
download | openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.tar.gz openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.tar.bz2 openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.tar.xz openembedded-core-7f7c185cf1ed2bd02c9a98e694cb74cc89a15daf.zip |
Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"
This reverts commit 138df217efe850528f88d340acf864c38780c2b0.
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>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index ef1020b21..f963f280e 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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 |