diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-11-12 08:33:24 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-20 14:08:10 +0000 |
commit | 7bc2e2a3120356538bcd5c6f0e5579726d7c657d (patch) | |
tree | a98e11e00b7739431c5e99b1f1bc866923d927ab /meta/classes | |
parent | 9544db489ffd614c8733bc78f1eb31cafa59c99c (diff) | |
download | poky-7bc2e2a3120356538bcd5c6f0e5579726d7c657d.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 96fd93dbc8..d5b9675b7f 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -68,6 +68,7 @@ toolchain_shared_env_script () { | |||
68 | echo 'export CXXFLAGS="${TARGET_CXXFLAGS}"' >> $script | 68 | echo 'export CXXFLAGS="${TARGET_CXXFLAGS}"' >> $script |
69 | echo 'export LDFLAGS="${TARGET_LDFLAGS}"' >> $script | 69 | echo 'export LDFLAGS="${TARGET_LDFLAGS}"' >> $script |
70 | echo 'export CPPFLAGS="${TARGET_CPPFLAGS}"' >> $script | 70 | echo 'export CPPFLAGS="${TARGET_CPPFLAGS}"' >> $script |
71 | echo 'export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"' >> $script | ||
71 | echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 72 | echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |
72 | echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script | 73 | echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script |
73 | echo 'export ARCH=${ARCH}' >> $script | 74 | echo 'export ARCH=${ARCH}' >> $script |