[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/2] BuildSupport: Honour new runvar make_njobs



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.Jackson@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.