]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bin/bitbake: only check that /dev/shm is writable on Linux
authorRoss Burton <ross.burton@intel.com>
Wed, 21 Jan 2015 14:13:38 +0000 (14:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Jan 2015 14:19:20 +0000 (14:19 +0000)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bin/bitbake

index d46c3dde3baac01f7db4797b1213ddad4b649231..49efdf1eb0ee3b220a06aa252282b67c389584a1 100755 (executable)
@@ -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