Having a hardcoded -j4, and having this come via DefMakeFlags, is not brilliant. But at least this make_njobs variable has better semantics so won't make it harder to make this more sophisticated later.
Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> --- Osstest/BuildSupport.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Osstest/BuildSupport.pm b/Osstest/BuildSupport.pm index b96ce76..4367b40 100644 --- a/Osstest/BuildSupport.pm +++ b/Osstest/BuildSupport.pm @@ -104,7 +104,10 @@ sub selectbuildhost { sub builddirsprops { my (%xbuildopts) = @_; - $xbuildopts{DefMakeFlags} ||= '-j4'; + if (!defined ) { + my $njobs = $r{make_njobs} // 4; + $xbuildopts{DefMakeFlags} = "-j$njobs"; + } $builddir= target_jobdir($ho); $makeflags= get_host_property($ho, 'build make flags', $xbuildopts{DefMakeFlags}); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel