Skip to content

WesleyCh3n/Pi-cross

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi-cross

armv7-buster arm64-buster

This is raspberry pi compiling toolchains (rpi compatible GCC version) in docker images based on dockcross base image and rpi toolchains.

📦️ Usage

Usage is same as dockcross. Use armv7-8.3.0 as example:

# 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

Most of the use case is docker run args (--args|-a). If args contain space, quote are required.

For example, mount host path:

./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