[OE-core] [PATCH] u-boot.inc: properly specify CC for EXTRA_OEMAKE

Otavio Salvador otavio.salvador at ossystems.com.br
Thu Nov 5 13:14:09 UTC 2015


Hello Radek,

On Wed, Nov 4, 2015 at 2:06 PM, Radek Dostal
<radek.dostal at streamunlimited.com> wrote:
> ${TOOLCHAIN_OPTIONS} does not contain some important flags such as
> "-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8". It only
> specifies sysroot as mentioned in commit 923eb657 "u-boot.inc: update
> linker arguments to pass --sysroot arg"
>
> Fixes bug: u-boot 2014.04 build breaks with error:
> "fatal error: gnu/stubs-soft.h: No such file or directory"
> when building with hard float compiler as compiler does not receive
> flag "-mfloat-abi=hard"
>
> Before this patch only gcc compiler could be used due to CC explicitly
> being set to gcc.
>
> Signed-off-by: Radek Dostal <radek.dostal at streamunlimited.com>
> Acked-by: Carlos Rafael Giani <dv at pseudoterminal.org>

Nack!

The U-Boot is close to the Linux kernel regarding the use of the
compiler and does a huge set of handling internally to properly pass
options depending on the SoC, arch and others.

This build error has been fixed in new U-Boot releases and if the
board required an old version (and cannot be updated) the fix should
be done on the recipe and not on the common file as it can change,
behind the scenes, what is in use for several recipes without notice.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list