riscv: allow native compilation
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 6 Aug 2018 17:15:38 +0000 (19:15 +0200)
committerAndes <uboot@andestech.com>
Wed, 3 Oct 2018 09:49:44 +0000 (17:49 +0800)
If environment variable CROSS_COMPILE is not set, this indicates native
compilation. In this case we should not set an arbitrary value which is
not applicable for 64bit anyway.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/riscv/config.mk

index b235ae1413d17d3baba31e42535ef0836345e7af..ed9eb0c24cddc86f0d459c64edcb3f277f641604 100644 (file)
 # Rick Chen, Andes Technology Corporation <rick@andestech.com>
 #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu-
-endif
-
 32bit-emul             := elf32lriscv
 64bit-emul             := elf64lriscv