Repository navigation
build: add loong64 (LoongArch) build support - #2585
Merged
Merged
Conversation
Extend the build tooling so flanneld can also be built for loong64, both natively and as a cross build. loong64 is a GOARCH supported by the Go toolchain (linux/loong64, added in Go 1.19). Add the qemu asset name and pinned SHA256 for qemu-loongarch64-static so that the per-arch binary target resolves for loong64 too, and list loong64 among the valid ARCH values. The binary can then be built with either of ARCH=loong64 make dist/flanneld # native build on loong64 ARCH=loong64 make dist/flanneld-loong64 # cross build Container image targets are not covered for loong64 yet: the golang:alpine3.24 and alpine:3.24 base images used by images/Dockerfile are not published for loong64. Signed-off-by: qiangxuhui <qiangxuhui@loongson.cn>
thomasferrandiz
approved these changes
Oct 20, 2026
There was a problem hiding this comment.
🟢 Approval recommended
The small, additive changes follow existing build patterns, with no unresolved findings.
No open issues 🎉
What changed in this PR
Adds loong64 (LoongArch) binary build support using the existing Makefile architecture mappings.
Changes:
- Adds the QEMU asset mapping and pinned SHA256 for loong64.
- Updates the valid architecture comment; container image and release support remain out of scope.
| File | Description |
|---|---|
| Makefile | Adds loong64 QEMU mappings and documents the architecture option. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type: build/tooling addition. No Go source change and no runtime behaviour change; only the Makefile is touched.
Extend the build tooling so flanneld can be built for loong64 (LoongArch), both natively and as a cross build. loong64 is a GOARCH supported by the Go toolchain (linux/loong64, added in Go 1.19).
Makefile changes:
The binary can be built with either of:
Components affected: Makefile only (build tooling for the flanneld binary). The existing arch paths are unchanged - the diff only adds variables and updates a comment.
Testing:
ARCH=loong64 make dist/flanneld(native) andARCH=loong64 make dist/flanneld-loong64(containerised per-arch target) both build successfully.Known limitation: container image targets (image, release, build-multi-arch) are not covered for loong64, because the golang:alpine3.24 and alpine:3.24 base images used by images/Dockerfile have no loong64 variant. GitHub Actions workflows and the release artifact (tar.gz) path are intentionally not touched by this PR.
Todos
Release Note