From 2e5c6a5c1c62461b69c6f50a123885b9910fce04 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Wed, 2 Oct 2024 15:25:51 +0200 Subject: pkg/build/linux: support building with a custom make binary Certain environments might need a specific make command or wrap make calls with extra logic. This lets users provide a path to a custom make binary. --- pkg/instance/instance.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/instance') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index e4415a86e..e1e222a3f 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -42,6 +42,7 @@ type env struct { } type BuildKernelConfig struct { + MakeBin string CompilerBin string LinkerBin string CcacheBin string @@ -147,6 +148,7 @@ func (env *env) BuildKernel(buildCfg *BuildKernelConfig) ( VMType: env.cfg.Type, KernelDir: env.cfg.KernelSrc, OutputDir: imageDir, + Make: buildCfg.MakeBin, Compiler: buildCfg.CompilerBin, Linker: buildCfg.LinkerBin, Ccache: buildCfg.CcacheBin, -- cgit mrf-deployment