summaryrefslogtreecommitdiffstats
path: root/bin/bitbake
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:19:20 +0000
commit7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071 (patch)
treecc168178a1cf00abd3d28dfcaccfe0b51d9a0aa6 /bin/bitbake
parent1aa1de4b0c5bd34466e04844bbc371933736be59 (diff)
downloadbitbake-contrib-7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071.tar.gz
bitbake-contrib-7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071.tar.bz2
bitbake-contrib-7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071.zip
bin/bitbake: only check that /dev/shm is writable on Linux
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-xbin/bitbake4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bitbake b/bin/bitbake
index d46c3dde3b..49efdf1eb0 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -44,8 +44,8 @@ from bb import cookerdata
__version__ = "1.25.0"
logger = logging.getLogger("BitBake")
-# Python multiprocessing requires /dev/shm
-if not os.access('/dev/shm', os.W_OK | os.X_OK):
+# Python multiprocessing requires /dev/shm on Linux
+if sys.platform.startswith('linux') and not os.access('/dev/shm', os.W_OK | os.X_OK):
sys.exit("FATAL: /dev/shm does not exist or is not writable")
# Unbuffer stdout to avoid log truncation in the event