]> 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>
Wed, 31 Dec 2014 10:17:22 +0000 (10:17 +0000)
commit68954e7e62b8b494168bf83fec517e751c679b21
treedc05d33480082fb1f3ec0aeff57bb66bc3bc0a95
parent4a4665b2ee1dfd2d8cdb48fc4e994522bbcd748e
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>
(From OE-Core rev: 50437f9c187f1a884825a8d1ec12da47a5e58670)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/toolchain-scripts.bbclass