Skip to contentSkip to conversation

utils.py: Use minimum value for PARALLEL_MAKE.

PATCH In review Michael Gloff 2 participants 2 messages Feb 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils.py: Use minimum value for PARALLEL_MAKE.

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

---
 meta/lib/oe/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/utils.py +1 -1
index ec91927233..80f0442d0a 100644
@@ -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 ''
 
Signature · 1 line
2.16.2
#1 lore raw

http://lists.openembedded.org/pipermail/openembedded-core/2018-February/147525.html

Quoted 31 lines · Michael Gloff

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

---
 meta/lib/oe/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/utils.py +1 -2
index ec91927233..80f0442d0a 100644
@@ -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

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core