summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sanity.bbclass11
-rwxr-xr-xscripts/poky-qemu-internal7
2 files changed, 0 insertions, 18 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index fcb7846db7..381749ef01 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -101,17 +101,6 @@ def check_sanity(e):
101 if not check_app_exists("qemu-arm", e.data): 101 if not check_app_exists("qemu-arm", e.data):
102 messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" 102 messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
103 103
104 if data.getVar('TARGET_ARCH', e.data, True) == "arm":
105 # This path is no longer user-readable in modern (very recent) Linux
106 try:
107 if os.path.exists("/proc/sys/vm/mmap_min_addr"):
108 f = file("/proc/sys/vm/mmap_min_addr", "r")
109 if (f.read().strip() != "0"):
110 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"
111 f.close()
112 except:
113 pass
114
115 for util in required_utilities.split(): 104 for util in required_utilities.split():
116 if not check_app_exists( util, e.data ): 105 if not check_app_exists( util, e.data ):
117 missing = missing + "%s," % util 106 missing = missing + "%s," % util
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 738bf53fc8..7dd52371b6 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -79,13 +79,6 @@ if [ ! -f "$ZIMAGE" ]; then
79 return 79 return
80fi 80fi
81 81
82if [ -e /proc/sys/vm/mmap_min_addr ]; then
83 if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then
84 echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU"
85 return
86 fi
87fi
88
89if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then 82if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then
90 QEMU=qemu-system-arm 83 QEMU=qemu-system-arm
91 if [ "$TYPE" = "ext3" ]; then 84 if [ "$TYPE" = "ext3" ]; then