diff options
author | Ross Burton <ross.burton@intel.com> | 2015-01-21 14:13:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-21 14:37:39 +0000 |
commit | f0d5edc91eed3fac7ba04ac75f7584a9e186c138 (patch) | |
tree | 864758e3745cd0a106f9e1f6fe45878b3a5a2746 | |
parent | a67b855df67230c2ab36d7bb3b2a3340e3975894 (diff) | |
download | poky-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-x | bitbake/bin/bitbake | 4 |
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" |
45 | logger = logging.getLogger("BitBake") | 45 | logger = logging.getLogger("BitBake") |
46 | 46 | ||
47 | # Python multiprocessing requires /dev/shm | 47 | # Python multiprocessing requires /dev/shm on Linux |
48 | if not os.access('/dev/shm', os.W_OK | os.X_OK): | 48 | if 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 |