https://github.com/msrd0/docker-abuild-arm
Docker image to cross-build aarch64/armv7/armhf packages from x86_64
https://github.com/msrd0/docker-abuild-arm
Last synced: about 1 month ago
JSON representation
Docker image to cross-build aarch64/armv7/armhf packages from x86_64
- Host: GitHub
- URL: https://github.com/msrd0/docker-abuild-arm
- Owner: msrd0
- Created: 2020-12-16T16:00:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-28T10:42:09.000Z (6 months ago)
- Last Synced: 2025-05-07T08:03:07.767Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 165 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# abuild-aarch64 Docker Image [](https://github.com/msrd0/docker-abuild-aarch64/actions?query=workflow%3ADocker)
**Docker Images:**
- [`ghcr.io/msrd0/abuild-aarch64`](https://github.com/users/msrd0/packages/container/package/abuild-aarch64) (Pi 2 v1.2, Pi 3, Pi 4)
- [`ghcr.io/msrd0/abuild-armv7`](https://github.com/users/msrd0/packages/container/package/abuild-armv7) (Pi 2)
- [`ghcr.io/msrd0/abuild-armhf`](https://github.com/users/msrd0/packages/container/package/abuild-armhf) (Pi 1, Pi Zero)This image can be used to cross-compile Alpine Linux packages for an arm-based system like a Raspberry Pi on an x86_64 host.
## Cross-Compiling Alpine Linux Packages
At the time of writing, there is no good documentation available on how to cross compile packages for Alpine Linux. The
best I could find are some posts and questions that point to
[this bootstrapping script](https://github.com/alpinelinux/aports/blob/master/scripts/bootstrap.sh)
which I then converted into a docker image - except I'm using as much precompiled stuff as possible.This docker image has the environment variables `CHOST`, `CTARGET`, `CBUILDROOT` and `EXTRADEPENDS_TARGET` are set for
you. That means your cross-enabled package should be able to compile just fine, if you are using one of the languages
supported by GCC. Also, a custom built Rust compiler is available, but will need some adjustment to the `APKBUILD` files
on your end. If you need any other compilers, feel free to create a PR that adds support for your programming language.