diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-23 07:36:58 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-23 07:36:58 +0000 |
commit | a75b8d8b360d754649b790d761a19e6519a0308d (patch) | |
tree | 7cd291a140672306df2132c56bbb64891a3720ef /bitbake/lib/bb | |
parent | f8b928e9bab33fb60945fc9abfb8e4ffc404de6f (diff) | |
download | openembedded-core-a75b8d8b360d754649b790d761a19e6519a0308d.tar.gz openembedded-core-a75b8d8b360d754649b790d761a19e6519a0308d.tar.bz2 openembedded-core-a75b8d8b360d754649b790d761a19e6519a0308d.zip |
bitbake: use Psyco only on x86 (no support for other archs)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2541 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0eda9eed99..2ddb590c5b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -474,15 +474,17 @@ class BBCooker: def updateCache(self): # Import Psyco if available and not disabled - if not self.configuration.disable_psyco: - try: - import psyco - except ImportError: - bb.msg.note(1, bb.msg.domain.Collection, "Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.") + import platform + if platform.machine() in ['i386', 'i486', 'i586', 'i686']: + if not self.configuration.disable_psyco: + try: + import psyco + except ImportError: + bb.msg.note(1, bb.msg.domain.Collection, "Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.") + else: + psyco.bind( self.parse_bbfiles ) else: - psyco.bind( self.parse_bbfiles ) - else: - bb.msg.note(1, bb.msg.domain.Collection, "You have disabled Psyco. This decreases performance.") + bb.msg.note(1, bb.msg.domain.Collection, "You have disabled Psyco. This decreases performance.") self.status = bb.cache.CacheData() |