commit 9b72f904ae3897a312e18e3c7f755c87680d016e
Author: Marko Saukko <[email protected]>
Date: Thu Nov 4 13:07:49 2010 +0200
Added warning about vdso to arm builds.
diff --git a/mic/imgcreate/creator.py b/mic/imgcreate/creator.py
index 91560ad..a7eed56 100644
--- a/mic/imgcreate/creator.py
+++ b/mic/imgcreate/creator.py
@@ -140,6 +140,17 @@ class ImageCreator(object):
if not os.path.exists("/usr/bin/qemu-arm") or not
is_statically_linked("/usr/bin/qemu-arm"):
self._dep_checks.append("qemu-arm-static")
+
+ if os.path.exists("/proc/sys/vm/vdso_enabled"):
+ vdso_fh = open("/proc/sys/vm/vdso_enabled","r")
+ vdso_value = vdso_fh.read().strip()
+ vdso_fh.close()
+ if (int)(vdso_value) == 1:
+ print "\n= WARNING ="
+ print "vdso is enabled on your host, which might cause
problems with arm emulations."
+ print "You can disable vdso with following command before
starting image build:"
+ print "echo 0 | sudo tee /proc/sys/vm/vdso_enabled"
+ print "= WARNING =\n"
return True
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev