diff --git a/main.go b/main.go index 2da6173..98ef34d 100644 --- a/main.go +++ b/main.go @@ -142,7 +142,10 @@ func build(tmp string, ka artifact, ki kernelInfo) (outPath, output string, err return } - outPath = tmpSourcePath + "/" + target + ".ko" + outPath = tmpSourcePath + "/" + target + if ka.Type == KernelModule { + outPath += ".ko" + } kernel := "/lib/modules/" + ki.KernelRelease + "/build"