From: Ross Burton Date: Wed, 21 Jan 2015 14:13:38 +0000 (+0000) Subject: bin/bitbake: only check that /dev/shm is writable on Linux X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a87ca9518f7239a2dfeb4576c59ea7b1f8d3071;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bin/bitbake: only check that /dev/shm is writable on Linux Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/bin/bitbake b/bin/bitbake index d46c3dde3ba..49efdf1eb0e 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