[U-Boot] [RFC PATCH] kbuild: use "cc-cross-prefix" to choose CROSS_COMPILE
Tom Rini
trini at ti.com
Wed Mar 5 14:37:54 CET 2014
On Wed, Mar 05, 2014 at 06:24:24PM +0900, Masahiro Yamada wrote:
> CROSS_COMPILE is generally passed from the command line
> or by the environment variable because cross tools
> vary from user to user.
>
> But, having some choices of often used CROSS_COMPILE
> seems reasonable.
>
> $(call cc-cross-prefix, ...) returns the first prefix
> where a prefix$(CC) is found in PATH.
>
> If your cross tools exist in the argument of
> $(call cc-cross-prefix, ...), you do not have to
> specify it explicitly.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> ---
>
> My question is which cross tools are popular enough
> to be added to the list.
>
> In my opition, arm-linux-gnueabi-gcc is popular
> because it is distributed in Ubuntu.
>
> On the other hand, I am not sure ppc_8xx-gcc is currently
> being used.
>
> Which one should be to added/deleted to our default list.
> Your comments are very welcome.
> (I am not familiar with compilers very much.)
>
>
> arch/arm/config.mk | 2 +-
> arch/microblaze/config.mk | 2 +-
> arch/powerpc/config.mk | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
Looking at the kernel, mips is a better example of where this becomes a
handy thing, over just a "stop passing CROSS_COMPILE". But that
includes adding tool-archpref.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140305/09ce1bd6/attachment.pgp>
More information about the U-Boot
mailing list