On 19/10/2020 19:27, Suresh Nulu wrote:
Hi,
I am new to toolchains. I would like to know information on building toolchains for different architectures.
My objective is to build a cross compiling toolchain for AARCH64 BE target on the RHEL7.6 build system. It would be great if you can give me pointers on how to compile toolchains. Do we have any Wiki pages on building linaro toolchains for different architectures?
Appreciate your help.
Regards Suresh
Hi,
The glibc project [1] provides a python script that automates the creation of multiple toolchains for the glibc supported architectures [2]. Its intention is to be used for glibc development, so it uses pre-defined version/branches for linux/binutils/gcc/gmp/mpc/mpfr. It also does not support non-glibc triplets.
To build an aarch64_be-linux-gnu toolchain it should as simple as:
$ build-many-glibcs.py checkout /path/to/toolchain/ $ build-many-glibcs.py host-libraries /path/to/toolchain/ $ build-many-glibcs.py compilers aarch64_be-linux-gnu
The resulting toolchain along with its sysroot should be at /path/to/toolchain/install/compilers/aarch64_be-linux-gnu/
If you want to build using specific version you will need to change it on the /path/to/toolchain/src/<project> directly.
[1] https://www.gnu.org/software/libc/ [2] https://sourceware.org/git/?p=glibc.git%3Ba=blob%3Bf=scripts/build-many-glib...