mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01: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:
committed by
Richard Purdie
parent
704d0b114d
commit
c4172f3f76
@@ -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 ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user