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:
Joshua Watt 2018-02-16 14:30:00 -06:00 committed by Richard Purdie
parent 704d0b114d
commit c4172f3f76

View File

@ -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 ''