diff options
-rw-r--r-- | morphlib/builder.py | 2 | ||||
-rw-r--r-- | morphlib/util.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py index e3f326eb..6348c811 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -64,6 +64,8 @@ class Builder(object): self.ex = morphlib.execute.Execute(self._build, self.msg) self.ex.env['WORKAREA'] = self.tempdir.dirname self.ex.env['DESTDIR'] = self._inst + '/' + self.ex.env['MAKEFLAGS'] = \ + '-j%d' % morphlib.util.make_concurrency() logging.debug('Creating build tree at %s' % self._build) tarball = cache_prefix + '.src.tar.gz' diff --git a/morphlib/util.py b/morphlib/util.py index 4558d8b8..007ba587 100644 --- a/morphlib/util.py +++ b/morphlib/util.py @@ -17,6 +17,7 @@ '''Utility functions for morph.''' +import multiprocessing import os |