How to build a toolchain for arm cortex-m and cortex-r

Crossdev can almost build a functioning toolchain for embedded arm development. The toolchain can be created with the following steps:

Big thanks to our forum user rapsure who posted this instructions here.