Skip to content

Commit

Permalink
chore(docker,pkg): added new archlinux builder image to build recent …
Browse files Browse the repository at this point in the history
…archlinux kernels (>= 6.10).

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Jan 27, 2025
1 parent b59107a commit 07fef60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docker/builders/builder-arch-x86_64_gcc14.2.1.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM archlinux:base-devel-20250119.0.299327

LABEL maintainer="[email protected]"

RUN pacman -Sy && pacman -Sy --noconfirm cmake pahole clang llvm git cpio wget openssl bc


# Properly create soft link
RUN ln -s /usr/bin/gcc /usr/bin/gcc-14.2.1
5 changes: 4 additions & 1 deletion pkg/driverbuilder/builder/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ type GCCVersionRequestor interface {
func defaultGCC(kr kernelrelease.KernelRelease) semver.Version {
switch kr.Major {
case 6:
if kr.Minor >= 10 {
return semver.Version{Major: 14, Minor: 2, Patch: 1}
}
if kr.Minor >= 5 {
return semver.Version{Major: 13}
}
Expand All @@ -239,7 +242,7 @@ func defaultGCC(kr kernelrelease.KernelRelease) semver.Version {
case 2:
return semver.Version{Major: 4, Minor: 8}
default:
return semver.Version{Major: 13}
return semver.Version{Major: 14, Minor: 2, Patch: 1}
}
}

Expand Down

0 comments on commit 07fef60

Please sign in to comment.