
Hi all,
I am trying to cross-compile the U-boot on my Ubuntu pc cloned from
git clone git://git.denx.de/u-boot.git
with gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabi compiler. But while compiling I am getting following error:
./arch/arm/include/asm/global_data.h:110:58: error: invalid register name for 'gd' #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("x18") ^ cmd/bdinfo.c:14:1: note: in expansion of macro 'DECLARE_GLOBAL_DATA_PTR' DECLARE_GLOBAL_DATA_PTR; ^~~~~~~~~~~~~~~~~~~~~~~ scripts/Makefile.build:278: recipe for target 'cmd/bdinfo.o' failed make[1]: *** [cmd/bdinfo.o] Error 1 Makefile:1408: recipe for target 'cmd' failed make: *** [cmd] Error 2
Suggest me a way to resolve this error.
Thanks & Regards, Manoj