aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-08-21 14:37:44 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-08-22 09:49:03 +0000
commit295a4b502e10748d2a48a91eba70d77ce4d09fd4 (patch)
tree148d2c4e54881fa73863c0058ae50bf3cb12e9e9 /pkg/bisect
parentea1cd5ff3029315c1f89b98b820ceeebfba0e4df (diff)
syz-ci: accept a BuildJobs parameter
The parameter defines the maximum number of CPUs involved in the kernel build process.
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index 2654b5dec..1fd08d1ca 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -37,6 +37,7 @@ type Config struct {
Manager *mgrconfig.Config
BuildSemaphore *instance.Semaphore
TestSemaphore *instance.Semaphore
+ BuildJobs int
// CrossTree specifies whether a cross tree bisection is to take place, i.e.
// Kernel.Commit is not reachable from Kernel.Branch.
// In this case, bisection starts from their merge base.
@@ -625,6 +626,7 @@ func (env *env) build() (*vcs.Commit, string, error) {
CmdlineFile: kern.Cmdline,
SysctlFile: kern.Sysctl,
KernelConfig: bisectEnv.KernelConfig,
+ BuildJobs: env.cfg.BuildJobs,
})
if imageDetails.CompilerID != "" {
env.log("compiler: %v", imageDetails.CompilerID)