[U-Boot] [U-Boot,1/2] kbuild: Add clang detection
Tom Rini
trini at konsulko.com
Mon Jan 25 22:28:35 CET 2016
On Tue, Jan 19, 2016 at 08:39:01PM -0500, Tom Rini wrote:
> Adapted from:
>
> >From 5631d9c429857194bd55d7bcd8fa5bdd1a9899a3 Mon Sep 17 00:00:00 2001
> From: Michal Marek <mmarek at suse.com>
> Date: Wed, 19 Aug 2015 17:36:41 +0200
> Subject: [PATCH 1/1] kbuild: Fix clang detection
>
> We cannot detect clang before including the arch Makefile, because that
> can set the default cross compiler. We also cannot detect clang after
> including the arch Makefile, because powerpc wants to know about clang.
> Solve this by using an deferred variable. This costs us a few shell
> invocations, but this is only a constant number.
>
> Reported-by: Behan Webster <behanw at converseincode.com>
> Reported-by: Anton Blanchard <anton at samba.org>
> Signed-off-by: Michal Marek <mmarek at suse.com>
>
> in the Linux kernel.
>
> This will allow us to make better decisions about when to run tests
> later on for gcc features.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/85fcbc57/attachment.sig>
More information about the U-Boot
mailing list