$ cd PATH_YOUR_PROJECT
$ cd uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-
chase@giga:~/projects/khadas-vims-nougat/uboot$ make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
GEN ./Makefile
configuration written to .config
chase@giga:~/projects/khadas-vims-nougat/uboot$ make CROSS_COMPILE=aarch64-linux-gnu-
make[1]: aarch64-linux-gnu-gcc: Command not found
/bin/sh: aarch64-linux-gnu-gcc: command not found
dirname: missing operand
Try ‘dirname --help’ for more information.
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk
/bin/sh: aarch64-linux-gnu-gcc: command not found
…/scripts/Makefile.autoconf:64: recipe for target ‘include/autoconf.mk’ failed
make[3]: *** [include/autoconf.mk] Error 1
…/Makefile:475: recipe for target ‘silentoldconfig’ failed
make[2]: *** [silentoldconfig] Error 1
make[1]: *** No rule to make target ‘include/config/auto.conf’, needed by ‘include/config/uboot.release’. Stop.
Makefile:147: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2