[OE-core] [PATCH] utils.py: Use minimum value for PARALLEL_MAKE.

Michael Gloff mgloff at emacinc.com
Wed Feb 21 06:35:32 UTC 2018


feded5fe2755fc6523c235fd6e82a0972e197c08 introduces
parallel_make_argument with optional limit value. We need
the min of PARRALLEL_MAKE and limit.

Signed-off-by: Michael Gloff <mgloff at emacinc.com>
---
 meta/lib/oe/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index ec91927233..80f0442d0a 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -195,7 +195,7 @@ def parallel_make_argument(d, fmt, limit=None):
     v = parallel_make(d)
     if v:
         if limit:
-            v = max(limit, v)
+            v = min(limit, v)
         return fmt % v
     return ''
 
-- 
2.16.2




More information about the Openembedded-core mailing list