mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
utils.py: Fix parallel_make limit
parallel_make_argument() was incorrectly taking the maximum of the limit and the calculated value instead of the minimum. (From OE-Core rev: 45205be547967c84dff96403c3a6825a62e3ca6a) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
704d0b114d
commit
c4172f3f76
|
@ -195,7 +195,7 @@ def parallel_make_argument(d, fmt, limit=None):
|
||||||
v = parallel_make(d)
|
v = parallel_make(d)
|
||||||
if v:
|
if v:
|
||||||
if limit:
|
if limit:
|
||||||
v = max(limit, v)
|
v = min(limit, v)
|
||||||
return fmt % v
|
return fmt % v
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user