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

Carlos Santos casantos at datacom.ind.br
Sun Jul 3 16:15:08 UTC 2016


> 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.

Carlos Santos (Casantos)
DATACOM, P&D



More information about the buildroot mailing list