Am 28.02.2017 um 17:46 schrieb Guillaume Gardet:
> Le 28/02/2017 à 17:30, Andreas Färber a écrit :
>> Am 28.02.2017 um 16:33 schrieb Guillaume Gardet:
>>> Le 28/02/2017 à 16:18, Andreas Färber a écrit :
>>>> 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 ...
> 
> I tried:
>     make  CROSS_COMPILE=armv7hl-suse-linux-gnueabi-
> CC=armv7hl-suse-linux-gnueabi-gcc-6
> and
>     make CROSS_COMPILE=arm-suse-linux-gnueabi-
> CC=arm-suse-linux-gnueabi-gcc-6
> but both fail at AR tool call.

You need to use the prefix matching the installed files from
cross-arm-binutils!

rpm -ql cross-arm-binutils

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