aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/freebsd.go
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2024-10-02 16:02:12 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-10-14 19:43:42 +0000
commit484e362fcff09b8b74162eefd0c3bfd67e829d94 (patch)
tree7db4c1f87a6c37073084a6b806978495297f6d25 /pkg/build/freebsd.go
parent2e5c6a5c1c62461b69c6f50a123885b9910fce04 (diff)
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.
Diffstat (limited to 'pkg/build/freebsd.go')
-rw-r--r--pkg/build/freebsd.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/build/freebsd.go b/pkg/build/freebsd.go
index 86d6f52ef..2d8ea0f77 100644
--- a/pkg/build/freebsd.go
+++ b/pkg/build/freebsd.go
@@ -119,9 +119,9 @@ sudo mdconfig -d -u ${md#md}
return ImageDetails{}, nil
}
-func (ctx freebsd) clean(kernelDir, targetArch string) error {
- objPrefix := filepath.Join(kernelDir, "obj")
- _, err := ctx.make(kernelDir, objPrefix, runtime.NumCPU(), "cleanworld")
+func (ctx freebsd) clean(params Params) error {
+ objPrefix := filepath.Join(params.KernelDir, "obj")
+ _, err := ctx.make(params.KernelDir, objPrefix, runtime.NumCPU(), "cleanworld")
return err
}