lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch /*

I’m using the MYD-Y6ULX-HMI series boards supports the Linux kernel version 4.1.15, and provided with rich hardware and software resource. They recommend to use Ubuntu 16.04 64bit distribution. For more details about the devkit
MYD-Y6ULX Resource

By referring their usermanual, (1) Installed virtualBox with Ubuntu 16.04 64bit distribution

(2) Installed software package and made the working directory in root.

(3) Installed Yocto toolchain:gcc version 5.3.0(GCC) - for driver(metatoolchain)

After installation sourced the env file & checked the toolchain version

qmax@qmax-VirtualBox:~$ source /opt/myir-imx6ulx-fb/4.1.15-2.0.2/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
qmax@qmax-VirtualBox:~$ arm-poky-linux-gnueabi-gcc --version
arm-poky-linux-gnueabi-gcc (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
qmax@qmax-VirtualBox:~$ $CROSS_COMPILE
bash: arm-poky-linux-gnueabi-: command not found
qmax@qmax-VirtualBox:~$ $ARCH
bash: arm: command not found

(4) Now trying to make u-boot config and compiling it with that able to generate config file but facing issue while compiling it,

(a) Sourced the metaToolChain
(b) Entered the U-bootsource file directory
(c) given sudo make distclean
(d) Exported the env variables CROSS_COMPILER and ARCH
(e) sudo make the core board of one i’m using is MYC-Y6ULY2-356N256D-50-C
(f) sudo make But cant able to compile. Can any one please help on this to solve the issue?

qmax@qmax-VirtualBox:~/MYD-Y6ULX-devel/04-Sources/MYiR-iMX-Uboot$ sudo make distclean
[sudo] password for qmax: 
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated
  CLEAN   .config include/ include/ include/config.h
qmax@qmax-VirtualBox:~/MYD-Y6ULX-devel/04-Sources/MYiR-iMX-Uboot$ export CROSS_COMPILE=arm-poky-linux-gnueabi-
qmax@qmax-VirtualBox:~/MYD-Y6ULX-devel/04-Sources/MYiR-iMX-Uboot$ export ARCH=arm
qmax@qmax-VirtualBox:~/MYD-Y6ULX-devel/04-Sources/MYiR-iMX-Uboot$ sudo make myd_y6ull_14x14_nand_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/
  HOSTLD  scripts/kconfig/conf
# configuration written to .config
qmax@qmax-VirtualBox:~/MYD-Y6ULX-devel/04-Sources/MYiR-iMX-Uboot$ sudo make
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/
  GEN     include/
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     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
Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
make[1]: *** [lib/asm-offsets.s] Error 1
Makefile:1254: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

The MYD-Y6ULX-HMI series boards is a product of MYIR Tech Limited. Please use their Support for any questions related to MUiR products