https://github.com/wesleych3n/pi-cross
raspberry pi cross compiler toolchain in docker
https://github.com/wesleych3n/pi-cross
docker gcc-cross-compiler raspberry-pi
Last synced: 2 months ago
JSON representation
raspberry pi cross compiler toolchain in docker
- Host: GitHub
- URL: https://github.com/wesleych3n/pi-cross
- Owner: WesleyCh3n
- Created: 2021-09-14T13:24:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T07:38:56.000Z (almost 4 years ago)
- Last Synced: 2025-03-23T10:16:54.667Z (over 1 year ago)
- Topics: docker, gcc-cross-compiler, raspberry-pi
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/wesleych3n/pi-cross
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pi-cross


This is raspberry pi compiling toolchains (rpi compatible GCC version) in docker images based on [dockcross base image](https://github.com/dockcross/dockcross) and [rpi toolchains](https://github.com/abhiTronix/raspberry-pi-cross-compilers).
## 📦️ Usage
Usage is same as [dockcross](https://github.com/dockcross/dockcross#usage). Use `armv7-8.3.0` as example:
```bash
# create helper scripts
docker run --rm wesleych3n/pi-cross:armv7-buster-8.3.0 > ./armv7-8.3.0
# grant execution mode
chmod +x ./armv7-8.3.0
# (Optional) put scripts into $PATH. Such as:
mv ./armv7-8.3.0 ~/.local/bin/
# into container shell
./armv7-8.3.0 bash
# (in container) verify compiler
$CC --version
# stdout:
# arm-linux-gnueabihf-gcc (GCC) 8.3.0
# Copyright (C) 2018 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
## 🔧 Configuration
Same as [dockcross](https://github.com/dockcross/dockcross#dockcross-configuration)
Most of the use case is docker run args (`--args|-a`).
*If args contain space, **quote** are required.*
For example, mount host path:
```bash
./armv7-8.3.0 -a "-v /path/to/mount:/container/path" bash
```
## 📎 Available Version
| Toolchains | GCC versions |
| :-: | :-: |
| armv7(Buster 32-bit) | 8.3.0, 9.4.0, 10.3.0 |
| arm64(Buster 64-bit) | 8.3.0, 9.4.0, 10.3.0 |