summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-01-21 14:13:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-21 14:37:39 +0000
commitf0d5edc91eed3fac7ba04ac75f7584a9e186c138 (patch)
tree864758e3745cd0a106f9e1f6fe45878b3a5a2746
parenta67b855df67230c2ab36d7bb3b2a3340e3975894 (diff)
downloadpoky-f0d5edc91eed3fac7ba04ac75f7584a9e186c138.tar.gz
bitbake: bin/bitbake: only check that /dev/shm is writable on Linux
(Bitbake rev: 7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/bin/bitbake4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index d46c3dde3b..49efdf1eb0 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -44,8 +44,8 @@ from bb import cookerdata
44__version__ = "1.25.0" 44__version__ = "1.25.0"
45logger = logging.getLogger("BitBake") 45logger = logging.getLogger("BitBake")
46 46
47# Python multiprocessing requires /dev/shm 47# Python multiprocessing requires /dev/shm on Linux
48if not os.access('/dev/shm', os.W_OK | os.X_OK): 48if sys.platform.startswith('linux') and not os.access('/dev/shm', os.W_OK | os.X_OK):
49 sys.exit("FATAL: /dev/shm does not exist or is not writable") 49 sys.exit("FATAL: /dev/shm does not exist or is not writable")
50 50
51# Unbuffer stdout to avoid log truncation in the event 51# Unbuffer stdout to avoid log truncation in the event