[Buildroot] Unable to compile uboot v2012.10 on Buildroot 2016.05

Arnout Vandecappelle arnout at mind.be
Tue Jul 5 09:10:58 UTC 2016



On 04-07-16 13:15, Carlos Santos wrote:
>> From: "Arnout Vandecappelle" <arnout at mind.be>
>> To: "Carlos Santos" <casantos at datacom.ind.br>, "Thomas Petazzoni" <thomas.petazzoni at free-electrons.com>
>> Cc: "Julien Boibessot" <julien.boibessot at armadeus.com>, "buildroot" <buildroot at buildroot.org>
>> Sent: Monday, July 4, 2016 6:26:09 AM
>> Subject: Re: [Buildroot] Unable to compile uboot v2012.10 on Buildroot 2016.05
> 
>> Hi Carlos,
>>
>> On 03-07-16 18:15, Carlos Santos wrote:
>>>> From: "Thomas Petazzoni" <thomas.petazzoni at free-electrons.com>
>>>> To: "Arnout Vandecappelle" <arnout at mind.be>
>>>> Cc: "Carlos Santos" <casantos at datacom.ind.br>, "Julien Boibessot"
>>>> <julien.boibessot at armadeus.com>, "buildroot"
>>>> <buildroot at buildroot.org>
>>>> Sent: Saturday, July 2, 2016 7:56:25 AM
>>>> Subject: Re: [Buildroot] Unable to compile uboot v2012.10 on Buildroot 2016.05
>>>
>>>> Hello,
>>>>
>>>> On Sat, 2 Jul 2016 12:47:14 +0200, Arnout Vandecappelle wrote:
>>>>
>>>>>> Because the value of HOSTCFLAGS set in U-Boot's config.mk is overwritten.
>>>>>
>>>>>  How about leaving HOSTCFLAGS alone, and instead setting
>>>>> HOSTCC="$(HOSTCC) $(HOST_CFLAGS)". HOSTLDFLAGS can probably be overridden.
>>>>
>>>> Good point, that's possibly an alternate solution. I sent a patch
>>>> implementing a different solution, but Carlos, if you can try Arnout's
>>>> suggestion, it would be good.
>>>
>>> Yes, it works, but this reminds me that HOSTCC is not passed when building
>>> buildroot, so the command line for version 2015.01 becomes
>>>
>>> cc -Wp,-MD,tools/.img2srec.d -O2 -I/work/freescale_imx28evk/host/usr/include
>>> -include ./include/libfdt_env.h -idirafterinclude
>>> -idirafter./arch/arm/include -I./lib/libfdt -I./tools
>>> -DCONFIG_SYS_TEXT_BASE=0x40002000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES
>>> -D_GNU_SOURCE -pedantic -o tools/img2srec tools/img2srec.c
>>>
>>> This may not be a problem now but I believe that HOSTCC should always be
>>> provided.
>>
>> Care to prepare a patch then that replaces HOSTCFLAGS by HOSTCC?
>>
> 
> Thomas already submitted a patch: http://patchwork.ozlabs.org/patch/643426/

 Yes, but Thomas's patch still sets HOSTCFLAGS. My question was: do you care to
submit an alternative (better) patch that sets HOSTCC (unconditionally) rather
than changing HOSTCFLAGS?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list