[yocto] TARGET_ARCH in external toolchain

Marek Andrus marek.andrus at wp.pl
Thu Jun 5 05:06:24 PDT 2014


I've found a problem. TARGET_ARCH in fact isn't set but I can still use 
conditional syntax. The problem was I was trying with ppc architecture 
(TARGET_ARCH is later set to ppc) but here I had to use "powerpc" instead.

BR,
Marek Andrus


On 05.06.2014 13:02, Marek Andrus wrote:
> Hi,
>
> I'd like to provide one meta for a 4 external toolchains (for 4 
> different architectures). I wanted it to select appropriate toolchain 
> accroding to a TARGET_ARCH variable. Unfortunately TARGET_ARCH looks 
> like not being set at the time of parsing my tcmode-external-mytc.inc 
> file (where preffered providers are set). Of course OVERRIDES variable 
> is not set either.
>
> What do you recommend?
>
> Of course I can change the toolchain layer manually but I wanted to 
> change machine/architecture in just one place. Is there any method?
>
> BR,
> Marek Andrus




More information about the yocto mailing list