[llvmlinux] [PATCH] Add support for the Malta target, MIPS CodeSourcery toolchains, and switched away from EABI
mcharleb at quicinc.com
Thu Aug 7 19:04:49 UTC 2014
For clang there is also an issue in:
-mno-abicalls is not understood by clang.
I would also suggest adding
MIPS_ENDIAN := little
to the Makefile so someone trying make kernel-build would get something by default. I will apply the patch as sent for now and await further patches.
From: llvmlinux-bounces at lists.linuxfoundation.org [llvmlinux-bounces at lists.linuxfoundation.org] on behalf of Daniel Sanders [Daniel.Sanders at imgtec.com]
Sent: Thursday, August 07, 2014 2:03 AM
To: llvmlinux at lists.linuxfoundation.org
Subject: [llvmlinux] [PATCH] Add support for the Malta target, MIPS CodeSourcery toolchains, and switched away from EABI
* Add support for CodeSourcery toolchain
* Changed triple from mips-none-eabi to mips-unknown-linux.
This is because clang for MIPS does not support EABI yet.
* Added support for big and little endian
It's not currently possible to build for big and little endian at the same time since some paths conflict.
* Added partial support for MIPS64 in that the correct qemu binary will be called.
This patch is based on work by Matheus Almeida.
Signed-off-by: Daniel Sanders <daniel.sanders at imgtec.com>
After this patch, 'make kernel-gcc-build' and 'make test-gcc' will work for both big and little endian with the CodeSourcery toolchain targeting Malta. There will be follow up patches for the clang build (mostly fixing VLAIS issues) once I've tested that.
I can split this up into separate toolchain/target patches if you prefer.
More information about the LLVMLinux