]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-scripts.bbclass: Export KCFLAGS to ensure sysroot is provided
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 12 Nov 2014 10:33:24 +0000 (08:33 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Nov 2014 14:06:28 +0000 (14:06 +0000)
commit50437f9c187f1a884825a8d1ec12da47a5e58670
tree11c22aaab185200c6871b2bbbf435abca6766afd
parent23d8a4d64e9ff126d6460a69e6d086b1c86e87a9
toolchain-scripts.bbclass: Export KCFLAGS to ensure sysroot is provided

When building the U-Boot the lack of a proper sysroot can trigger
following error:

,----
| arm-poky-linux-gnueabi-ld.bfd: cannot find -lgcc
| make[2]: *** [examples/standalone/hello_world] Error 1
| make[1]: *** [examples/standalone] Error 2
| make: *** [examples] Error 2
`----

Guillaume Fournier has posted a very complete analysis of the
problem[1].

1. https://lists.yoctoproject.org/pipermail/meta-freescale/2014-November/011270.html

The use of KCFLAGS makes the build of U-Boot work out of box, now that
it uses the Linux kernel build system.

Reported-by: Guillaume Fournier <gfournier@brioconcept.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/toolchain-scripts.bbclass