diff options
-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: | |||
474 | 474 | ||
475 | def updateCache(self): | 475 | def updateCache(self): |
476 | # Import Psyco if available and not disabled | 476 | # Import Psyco if available and not disabled |
477 | if not self.configuration.disable_psyco: | 477 | import platform |
478 | try: | 478 | if platform.machine() in ['i386', 'i486', 'i586', 'i686']: |
479 | import psyco | 479 | if not self.configuration.disable_psyco: |
480 | except ImportError: | 480 | try: |
481 | bb.msg.note(1, bb.msg.domain.Collection, "Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.") | 481 | import psyco |
482 | except ImportError: | ||
483 | bb.msg.note(1, bb.msg.domain.Collection, "Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.") | ||
484 | else: | ||
485 | psyco.bind( self.parse_bbfiles ) | ||
482 | else: | 486 | else: |
483 | psyco.bind( self.parse_bbfiles ) | 487 | bb.msg.note(1, bb.msg.domain.Collection, "You have disabled Psyco. This decreases performance.") |
484 | else: | ||
485 | bb.msg.note(1, bb.msg.domain.Collection, "You have disabled Psyco. This decreases performance.") | ||
486 | 488 | ||
487 | self.status = bb.cache.CacheData() | 489 | self.status = bb.cache.CacheData() |
488 | 490 | ||