From 484e362fcff09b8b74162eefd0c3bfd67e829d94 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Wed, 2 Oct 2024 16:02:12 +0200 Subject: pkg/build: use the build environment in clean() calls This unifies the build() and clean() interfaces such that if a custom compiler or make binary is provided in the manager or bisection config, they can be taken into account by the clean() interface. --- pkg/build/netbsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/build/netbsd.go') diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index 567fa122c..8a6c4d216 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -86,8 +86,8 @@ func (ctx netbsd) build(params Params) (ImageDetails, error) { filepath.Join(compileDir, "netbsd")) } -func (ctx netbsd) clean(kernelDir, targetArch string) error { - _, err := osutil.RunCmd(10*time.Minute, kernelDir, "./build.sh", "-m", targetArch, +func (ctx netbsd) clean(params Params) error { + _, err := osutil.RunCmd(10*time.Minute, params.KernelDir, "./build.sh", "-m", params.TargetArch, "-U", "-j"+strconv.Itoa(runtime.NumCPU()), "cleandir") return err } -- cgit mrf-deployment