[coreboot] What's the purpose of xcompile?
hamo.by at gmail.com
Mon May 9 05:00:49 CEST 2011
On Mon, May 9, 2011 at 2:09 AM, Patrick Georgi <patrick at georgi-clan.de> wrote:
> Am 08.05.2011 07:04, schrieb Hamo:
>> for ARM easily. If not, How could I add cross-compiler support to
>> xcompile? I just read the code when we supported PPC and alpha, but It
>> has changed a lot since then.
> - Rename CC, AS, ... to I386_CC, I386_AS, ...
> - Add support to check for other architectures (there's already a
> comment "This should be a loop over all supported architectures",
> storing that in ARM_CC, ARM_AS, ...
> - Change Makefile to set:
> CC:=$($(CONFIG_SOME_CONFIG_VARIABLE_WITH_ARCHITECTURE))_CC ...
> depending on the chosen target hardware
There are a few gcc toolchain prefixes such as arm-elf, armel-elf,
arm-none-eabi, etc. It is a little difficult hard coding all the
prefixes in this script. And Such as U-boot and Kernel, both allow
their users set their own toolchain prefix.
More information about the coreboot