[OE-core] [PATCH 2/8] [cross] export CC family from BUILD_* for cross compilers

Jérémy Rosen jeremy.rosen at smile.fr
Tue Aug 23 14:49:44 UTC 2016



On 23/08/2016 16:46, Burton, Ross wrote:
> FYI, git am strips anything inside [square brackets] when applying, so 
> your [cross] etc doesn't make it into the series.  If you submit a v2 
> please change [cross] to cross:.
>
I didn't know that... will fix

> Ross
>
> On 23 August 2016 at 08:25, Jérémy Rosen <jeremy.rosen at smile.fr 
> <mailto:jeremy.rosen at smile.fr>> wrote:
>
>     cross-compilers are native recipes that need to be compiled by the
>     host's
>     compiler. However then do not use native.bbclass
>
>     As a consequence, the various CC, CXX etc environment variables
>     are not
>     correctly set and they will not honor the host compiler name provided
>     by the BUILD_* variables.
>
>     Signed-off-by: Jérémy Rosen <jeremy.rosen at smile.fr
>     <mailto:jeremy.rosen at smile.fr>>
>     ---
>      meta/classes/cross.bbclass | 12 ++++++++++++
>      1 file changed, 12 insertions(+), 0 deletions(-)
>
>     diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
>     index 81d1c9d..8d1e779 100644
>     --- a/meta/classes/cross.bbclass
>     +++ b/meta/classes/cross.bbclass
>     @@ -68,4 +68,16 @@ do_install () {
>
>      USE_NLS = "no"
>
>     +export CC = "${BUILD_CC}"
>     +export CXX = "${BUILD_CXX}"
>     +export FC = "${BUILD_FC}"
>     +export CPP = "${BUILD_CPP}"
>     +export LD = "${BUILD_LD}"
>     +export CCLD = "${BUILD_CCLD}"
>     +export AR = "${BUILD_AR}"
>     +export AS = "${BUILD_AS}"
>     +export RANLIB = "${BUILD_RANLIB}"
>     +export STRIP = "${BUILD_STRIP}"
>     +export NM = "${BUILD_NM}"
>     +
>      inherit nopackages
>     --
>     git-series 0.8.9
>     --
>     _______________________________________________
>     Openembedded-core mailing list
>     Openembedded-core at lists.openembedded.org
>     <mailto:Openembedded-core at lists.openembedded.org>
>     http://lists.openembedded.org/mailman/listinfo/openembedded-core
>     <http://lists.openembedded.org/mailman/listinfo/openembedded-core>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160823/644200c0/attachment-0002.html>


More information about the Openembedded-core mailing list