Uboot Compile Error march=arm5v,Uboot Error Colibri IMX6

Hi, I’m trying to compile u-boot using the openembedded build like explains this article.
But I’m having an error where the -march option seems it’s wrong (I suposse I has to be armv7, but I’m not sure…

Could some one explain how to fix this error?
Thanks!

Assembler messages:
Fatal error: invalid -march= option: `armv5'
  CC      arch/arm/imx-common/iomux-v3.o
Assembler messages:
Fatal error: invalid -march= option: `armv5'
  AS      arch/arm/lib/vectors.o
Assembler messages:
Fatal error: invalid -march= option: `armv5'
scripts/Makefile.build:316: recipe for target 'arch/arm/lib/vectors.o' failed
make[1]: *** [arch/arm/lib/vectors.o] Error 2
Makefile:1233: recipe for target 'arch/arm/lib' failed
make: *** [arch/arm/lib] Error 2
make: *** Waiting for unfinished jobs....
  CC      arch/arm/imx-common/cpu.o
Assembler messages:
Fatal error: invalid -march= option: `armv5'
scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv7/cache_v7.o' failed
make[1]: *** [arch/arm/cpu/armv7/cache_v7.o] Error 2
Makefile:1233: recipe for target 'arch/arm/cpu/armv7' failed
make: *** [arch/arm/cpu/armv7] Error 2
  CC      arch/arm/imx-common/speed.o
Assembler messages:
Fatal error: invalid -march= option: `armv5'
scripts/Makefile.build:280: recipe for target 'arch/arm/imx-common/iomux-v3.o' failed
make[1]: *** [arch/arm/imx-common/iomux-v3.o] Error 2
make[1]: *** Waiting for unfinished jobs....
scripts/Makefile.build:280: recipe for target 'arch/arm/imx-common/speed.o' failed
make[1]: *** [arch/arm/imx-common/speed.o] Error 2
scripts/Makefile.build:280: recipe for target 'arch/arm/imx-common/cpu.o' failed
make[1]: *** [arch/arm/imx-common/cpu.o] Error 2
Makefile:1233: recipe for target 'arch/arm/imx-common' failed
make: *** [arch/arm/imx-common] Error 2

Hi @darkanoid

Thank you for joining the Toradex Community!
I think you missed to setup your toolchain. Please follow the instructions in the toolchain part of this article: https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#Toolchain

Thank you and best regards
Diego