All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] utils.py: Use minimum value for PARALLEL_MAKE.
@ 2018-02-21  6:35 Michael Gloff
  2018-02-21  9:08 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gloff @ 2018-02-21  6:35 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Michael Gloff <mgloff@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] utils.py: Use minimum value for PARALLEL_MAKE.
  2018-02-21  6:35 [PATCH] utils.py: Use minimum value for PARALLEL_MAKE Michael Gloff
@ 2018-02-21  9:08 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2018-02-21  9:08 UTC (permalink / raw)
  To: Michael Gloff; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

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

On Wed, Feb 21, 2018 at 7:35 AM, Michael Gloff <mgloff@emacinc.com> wrote:

> feded5fe2755fc6523c235fd6e82a0972e197c08 introduces
> parallel_make_argument with optional limit value. We need
> the min of PARRALLEL_MAKE and limit.
>
> Signed-off-by: Michael Gloff <mgloff@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
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 1900 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-21  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21  6:35 [PATCH] utils.py: Use minimum value for PARALLEL_MAKE Michael Gloff
2018-02-21  9:08 ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.