Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 979 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 979 Bytes

Fetch submodules

git submodule init
git submodule update

Create unified source directory

sh linkem.sh

Make a build directory

mkdir build-all
cd build-all

Configure

../srcw/configure --target=m68k-elf-rosco --enable-languages=c,c++ --with-newlib --with-arch=m68k --with-cpu=m68000 --prefix="$HOME/opt/cross-newlib" --disable-debug --disable-dependency-tracking --disable-silent-rules --disable-nls

Build (takes a while)

make -j9 all-build all-binutils all-gas all-ld all-gcc all-target-libgcc all-target-newlib all-target-libgloss

Install

make install-binutils install-gas install-ld install-gcc install-target-libgcc install-target-newlib install-target-libgloss

Test

cd ..
PATH="$HOME/opt/cross-newlib/bin:$PATH" m68k-elf-rosco-gcc -o test.elf test.c
m68k-elf-objcopy -O binary test.elf test.bin