Hi,

Am 28.02.2017 um 16:33 schrieb Guillaume Gardet:
> Le 28/02/2017 à 16:18, Andreas Färber a écrit :
>> Hi Guillaume,
>>
>> Am 28.02.2017 um 14:55 schrieb Guillaume Gardet:
>>> in cross-armv7hl-gcc6 package, we get all the cross build tools, but
>>> with the gcc version appended. So, we have
>>> armv7hl-suse-linux-gnueabi-gcc-6 instead of
>>> armv7hl-suse-linux-gnueabi-gcc.
>>>
>>> This is a problem to build things such as u-boot or Linux kernel which
>>> just use a CROSS_COMPILE prefix for the GCC tools in their Makefiles.
>>>
>>> Is there any update-alternatives mechanism or something?
>> The solution is to specify CROSS_COMPILE= for binutils and CC= for gcc.
> 
> It will not work. Here is an extract of the U-Boot Makefile:
>     AS              = $(CROSS_COMPILE)as
>     # Always use GNU ld
>     ifneq ($(shell $(CROSS_COMPILE)ld.bfd -v 2> /dev/null),)
>     LD              = $(CROSS_COMPILE)ld.bfd
>     else
>     LD              = $(CROSS_COMPILE)ld
>     endif
>     CC              = $(CROSS_COMPILE)gcc
>     CPP             = $(CC) -E
>     AR              = $(CROSS_COMPILE)ar
>     NM              = $(CROSS_COMPILE)nm
>     LDR             = $(CROSS_COMPILE)ldr
>     STRIP           = $(CROSS_COMPILE)strip
>     OBJCOPY         = $(CROSS_COMPILE)objcopy
>     OBJDUMP         = $(CROSS_COMPILE)objdump
> 
> You can note that a number of tools are missing from the openSUSE package.

I don't understand your point. I have successfully used
cross-aarch64-gcc{6,7} with mainline U-Boot!

As I said, you need both variables:
make CROSS_COMPILE=aarch64-suse-linux- CC=aarch64-suse-linux-gcc-7 ...

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to