descriptionnone
repository URLhttps://github.com/rofl0r/mmix-cross.git
ownerretnyg@gmx.net
last changeWed, 13 Mar 2024 13:35:14 +0000 (13 13:35 +0000)
last refreshFri, 26 Apr 2024 21:08:23 +0000 (26 23:08 +0200)
content tags
add:
README.md

About newlib-cross

This is a small suite of scripts and patches to build a newlib gcc toolchain for a number of supported systems, or just regular newlib toolchain for baremetal systems that don't require any additional patches.

supported: mmix - cross-compiler for knuth's MMIX simulator. note: this compiler builds without custom patches, but only gcc 4.2.4 is tested (see configs/mmix). psp - cross-compiler for playstation portable, intended to be used with pspsdk ( https://github.com/pspdev/pspsdk ). supported are all versions where there exists a gcc-x.x.x-psp.diff in patches/.

./build.sh should build a cross compiler to $HOME/toolchains, no muss, no fuss. You should edit config.sh to select a config preset and eventually override paths, and component versions to your likings. you may even copy config.sh to another directory then run build.sh from there to avoid polluting the source dir, but clean.sh can always clean up after a build.

Notes on building normal cross compilers

only tested versions are the ones set by default.

Other scripts and helpers

Requirements

newlib-cross depends on:

The following are GCC dependencies, which can be installed on the host system, or installed automatically using GCC_BUILTIN_PREREQS=yes: ONLY NEEDED FOR GCC versions >= 4.3

Building GMP additionally requires m4.

shortlog
2024-03-13 rofl0rupdate psp to new newlib 4.4.0.20231231 based toolchain/sdkmaster
2024-03-05 rofl0rconfigs/psp: need to pass debug CFLAGS manually
2022-03-28 rofl0rpsp: we need to copy crt*.o, not just crt0.o
2022-03-26 rofl0rpsp: add all required inc and lib dirs for a fully...
2022-03-22 rofl0rpsp-gcc: add psp-sdk to lib path
2022-03-17 rofl0rpsp: add a patch for GCC 4.7.4
2022-03-17 rofl0rpsp: add crucial piece of info to post-build message
2022-03-17 rofl0radd psp gcc 11.2.0 patch
2022-03-17 rofl0rupdate README and rename project to newlib-cross.
2022-03-17 rofl0rpsp: strip all binaries in post-build step, rename...
2022-03-17 rofl0radd gcc 9.3.0 patch for psp
2022-03-17 rofl0rbuild.sh: add support for GCC versions > 5.4.0
2022-03-17 rofl0radd psp gcc 4.9.3 patch
2022-03-17 rofl0radd support for building psp toolchain
2022-03-17 rofl0radd newlib 1.20.0 patches for pspsdk
2022-03-17 rofl0rdefs.sh: use official upstream to fetch newlib
...
heads
6 weeks ago master