1
0

feat: introduce kernel version

This commit is contained in:
2023-05-14 22:00:29 +00:00
parent de5ebd6455
commit 1b2d636410
4 changed files with 16 additions and 5 deletions

6
pew.go
View File

@ -258,7 +258,11 @@ func build(flog zerolog.Logger, tmp string, ka config.Artifact,
outpath += ".ko"
}
kernel := "/lib/modules/" + ki.KernelRelease + "/build"
if ki.KernelVersion == "" {
ki.KernelVersion = ki.KernelRelease
}
kernel := "/lib/modules/" + ki.KernelVersion + "/build"
if ki.KernelSource != "" {
kernel = ki.KernelSource
}