[U-Boot] Building u-boot for IMX6

Hello
I am trying to build an u-boot for a sabrelite with an IMX6Q, so i downloaded the last package (u-boot-2014.07.tar.bz2) on this link => ftp://ftp.denx.de/../../../pub/u-boot/. When i launched make mx6qsabrelite_config, everything was fine (Configuring for mx6qsabrelite - Board: nitrogen6x, Options: IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024,SABRELITE) but then, when i launch "make all" they are some problems:
GEN include/autoconf.mk.dep cc1: error: bad value (armv5) for -march= switch GEN include/autoconf.mk cc1: error: bad value (armv5) for -march= switch CHK include/config/uboot.release CHK include/generated/version_autogenerated.h CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h CC lib/asm-offsets.s lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch /* ^ make[1]: *** [lib/asm-offsets.s] Erreur 1 make: *** [prepare0] Erreur 2
Does anybody knows what can i do in order to fix this?
Thanks
Alexandre Delove

On Tue, Aug 5, 2014 at 12:06 PM, Alexandre Delove alexandre.delove@telecom-paristech.fr wrote:
Hello
I am trying to build an u-boot for a sabrelite with an IMX6Q, so i downloaded the last package (u-boot-2014.07.tar.bz2) on this link => ftp://ftp.denx.de/../../../pub/u-boot/. When i launched make mx6qsabrelite_config, everything was fine (Configuring for mx6qsabrelite - Board: nitrogen6x, Options: IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024,SABRELITE) but then, when i launch "make all" they are some problems:
GEN include/autoconf.mk.dep cc1: error: bad value (armv5) for -march= switch GEN include/autoconf.mk cc1: error: bad value (armv5) for -march= switch CHK include/config/uboot.release CHK include/generated/version_autogenerated.h CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h CC lib/asm-offsets.s lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch /* ^ make[1]: *** [lib/asm-offsets.s] Erreur 1 make: *** [prepare0] Erreur 2
Does anybody knows what can i do in order to fix this?
It seems you are missing to use and export your crosscompiler:
export ARCH=arm export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi

On Tue, Aug 5, 2014 at 12:31 PM, Fabio Estevam festevam@gmail.com wrote:
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi
I meant export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- ("with a minus in the end)
participants (2)
-
Alexandre Delove
-
Fabio Estevam