Skip to content

Commit

Permalink
fix(pkg/driverbuilder): fixed support for ubuntu-lts.
Browse files Browse the repository at this point in the history
Moreover, properly use newer gcc image from kernel 6.5+.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Feb 29, 2024
1 parent 31c7e6a commit 7945abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/driverbuilder/builder/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type GCCVersionRequestor interface {
func defaultGCC(kr kernelrelease.KernelRelease) semver.Version {
switch kr.Major {
case 6:
if kr.Minor >= 6 {
if kr.Minor >= 5 {
return semver.Version{Major: 13}
}
return semver.Version{Major: 12}
Expand Down
2 changes: 1 addition & 1 deletion pkg/driverbuilder/builder/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (v *ubuntu) TemplateData(c Config, kr kernelrelease.KernelRelease, urls []s
// handle hwe kernels, which resolve to "generic" urls under /linux-hwe
// Example: http://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-hwe/linux-headers-4.18.0-24-generic_4.18.0-24.25~18.04.1_amd64.deb
headersPattern := ""
if flavor == "hwe" {
if flavor == "hwe" || flavor == "lts" {
headersPattern = "linux-headers*generic"
} else {
// some flavors (ex: lowlatency-hwe) only contain the first part of the flavor in the directory extracted from the .deb
Expand Down

0 comments on commit 7945abd

Please sign in to comment.