TARGET_ARCH in external toolchain
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
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
Quoted 10 lines · Marek Andrus
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_ARCHvariable. UnfortunatelyTARGET_ARCHlooks 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