[U-Boot] [PATCH] sandbox: Fix building with LLVM
Simon Glass
sjg at chromium.org
Mon Mar 7 03:38:56 CET 2016
On 5 March 2016 at 12:07, Tom Rini <trini at konsulko.com> wrote:
> - The macro __BIGGEST_ALIGNMENT__ is gcc-specific. If it is not defined
> we'll just assume 16. This is correct for at least the common cases
> and LLVM does not provide an equivalent macro.
> - When linking U-Boot we're passing -T to the linker, and while gcc will
> just pass this along with LLVM we need to be specific.
>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Tom Rini <trini at konsulko.com>
>
> ---
> I've tested this with both test/fs/fs-test.sh (and a quick kludge to
> force it to use LLVM) and test/pytest/test.py with a pre-built sandbox
> and both pass as much as with gcc does for me.
> ---
> arch/sandbox/config.mk | 2 +-
> arch/sandbox/include/asm/cache.h | 6 ++++++
> 2 files changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list