687
edits
Changes
no edit summary
mkdir -p src obj/{binutils-build,gcc-build,newlib-build}
== Get GCC , GDB and binutils ==
curl https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.gz | tar -C $HOME/src -xf -
curl https://ftp.gnu.org/gnu/gdb/gdb-9.1.tar.gz | tar -C $HOME/src -xf -
curl https://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz | tar -C $HOME/src -xf -
curl ftp://sourceware.org/pub/newlib/newlib-3.3.0.tar.gz | tar -C $HOME/src -xf -
cd $HOME/obj/binutils-build
../../src/binutils-2.34/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000
make -j8 && make install
== Build and install gdb ==
cd $HOME/obj/gdb-build
../../src/gdb-9.1/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000
make -j8 && make install