https://github.com/ryanfb/docker_m68k_gcc
GCC Cross-Compiler for M68k in an Ubuntu Docker container
https://github.com/ryanfb/docker_m68k_gcc
Last synced: 4 months ago
JSON representation
GCC Cross-Compiler for M68k in an Ubuntu Docker container
- Host: GitHub
- URL: https://github.com/ryanfb/docker_m68k_gcc
- Owner: ryanfb
- Created: 2017-06-07T19:01:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T20:18:47.000Z (almost 8 years ago)
- Last Synced: 2025-06-18T08:07:40.402Z (12 months ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/ryanfb/m68k_gcc/
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker_m68k_gcc
Dockerized environment for building an M68k cross-compiler toolchain.
[`ryanfb/m68k_gcc` on Docker Hub](https://hub.docker.com/r/ryanfb/m68k_gcc/). Adapted from [these scripts for building a 68000 cross compiler](http://www.aaldert.com/outrun/gcc-auto.html).
## Introduction
All of the standard utilities (gcc, gas, etc) are prefixed with **m68k-elf-** to differentiate them from their native counterparts. This means that your build scripts need to call m68k-elf-gcc, m68k-elf-gas, etc.
## Usage
To build your source, simply run the appropriate commands inside the container:
docker run --rm \
-v ${PWD}:/source
-w /source
make
Alternatively, create a shell script to do all the things:
#!/bin/bash
PREFIX=m68k-elf-
# pull the latest docker image
docker pull ryanfb/m68k_gcc
# start the build
docker run --rm -v ${PWD}:/source -w /source ${PREFIX}/gcc -o mycoolapp mycoolapp.c