Compiling my own U-Boot errors

I am using the following cross-compile tools:

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/

I followed these instructions:

Set the build environment:
export ARCH=arm export CROSS_COMPILE=<your_toolchain_location>
export DTC=<dtc_binary_location> Build U-Boot by executing: cd <uboot_src_dir>/u-boot
make distclean make jetson-tk1_defconfig
$ make

However I receive the following errors:

scripts/kconfig/conf --silentoldconfig Kconfig
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk
cc1: error: bad value (armv5) for -march= switch
make[2]: *** [include/autoconf.mk] Error 1
make[1]: *** [silentoldconfig] Error 1
make: *** No rule to make target include/config/auto.conf', needed by include/config/uboot.release’. Stop.

Does anyone have a recommended cross-compile tool or can tell me when armv5 is not a valid march option to gcc? Thanks.

Hi quantumlight

The build environment your provided is not clear to check where the problem is, but some other people also met similar issue before, you could refer to https://devtalk.nvidia.com/default/topic/780181/?comment=4330893

Thanks