deforde / cross-compile

Defines a docker image that can be used to cross-compile C code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross Compilation Image

This defines an image that is intended to provide a simple way to cross-compile C code for several different OSs and CPU architectures.

The target platforms are as follows:

  • Linux x86_64.
  • Windows x86_64.
  • MacOS aarch64.

Building the image:

export DOCKER_BUILDKIT=1
docker build -t cross-compile:latest .

Running the image:

docker run -v /path/to/my/repo:/home/repo cross-compile:latest --makefile /home/repo/path/to/makefile.mk

About

Defines a docker image that can be used to cross-compile C code.

License:MIT License


Languages

Language:Shell 66.1%Language:Dockerfile 33.9%