klibc: klcc: consider --sysroot option and override gcc-cross encoded sysroot
authorAndrea Adami <andrea.adami@gmail.com>
Fri, 19 Sep 2014 21:09:29 +0000 (23:09 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:42:24 +0000 (08:42 -0800)
commit6348b14a0177038ae5b1e37909b339b85c01f66b
tree2dc5231d93f3a142a448a95a4226875e6118f727
parent15707c82978725cb55fd142bc0f5988199124cde
klibc: klcc: consider --sysroot option and override gcc-cross encoded sysroot

For the recipes built with klcc-cross it is necessary to
pass --sysroot otherwise we default to the one encoded in gcc-cross which
actually is the 'first one' built.
The issue was revealed when building for armv4 after having built for armv5te:
the produced binaries did contain Illegal Instruction (bx lr).

Use ${TOOLCHAIN_OPTIONS} variable to specify --sysroot=${STAGING_DIR_TARGET}

(From meta-openembedded rev: 0a67b9f3fd164b808c66286ff0435c65421e5352)

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-initramfs/classes/klibc.bbclass
meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-consider-sysroot.patch [new file with mode: 0644]
meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc.inc