[OE-core] [PATCH] utils.py: Fix parallel_make limit

Joshua Watt jpewhacker at gmail.com
Fri Feb 16 20:30:00 UTC 2018


parallel_make_argument() was incorrectly taking the maximum of the limit
and the calculated value instead of the minimum.

Signed-off-by: Joshua Watt <JPEWhacker at gmail.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 ec91927233a..80f0442d0ae 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.14.3




More information about the Openembedded-core mailing list