diff options
Diffstat (limited to 'arch/riscv/config.mk')
-rw-r--r-- | arch/riscv/config.mk | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index 219e66683d..84654eb3ed 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk | |||
@@ -10,10 +10,6 @@ | |||
10 | # Rick Chen, Andes Technology Corporation <rick@andestech.com> | 10 | # Rick Chen, Andes Technology Corporation <rick@andestech.com> |
11 | # | 11 | # |
12 | 12 | ||
13 | ifeq ($(CROSS_COMPILE),) | ||
14 | CROSS_COMPILE := riscv32-unknown-linux-gnu- | ||
15 | endif | ||
16 | |||
17 | 32bit-emul := elf32lriscv | 13 | 32bit-emul := elf32lriscv |
18 | 64bit-emul := elf64lriscv | 14 | 64bit-emul := elf64lriscv |
19 | 15 | ||
@@ -27,12 +23,12 @@ PLATFORM_LDFLAGS += -m $(64bit-emul) | |||
27 | EFI_LDS := elf_riscv64_efi.lds | 23 | EFI_LDS := elf_riscv64_efi.lds |
28 | endif | 24 | endif |
29 | 25 | ||
30 | CONFIG_STANDALONE_LOAD_ADDR = 0x00000000 \ | 26 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 |
31 | -T $(srctree)/examples/standalone/riscv.lds | ||
32 | 27 | ||
33 | PLATFORM_CPPFLAGS += -ffixed-gp -fpic | 28 | PLATFORM_CPPFLAGS += -ffixed-gp -fpic |
34 | PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -gdwarf-2 -ffunction-sections | 29 | PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections \ |
35 | LDFLAGS_u-boot += --gc-sections -static -pie | 30 | -fdata-sections |
31 | LDFLAGS_u-boot += --gc-sections -static -pie | ||
36 | 32 | ||
37 | EFI_CRT0 := crt0_riscv_efi.o | 33 | EFI_CRT0 := crt0_riscv_efi.o |
38 | EFI_RELOC := reloc_riscv_efi.o | 34 | EFI_RELOC := reloc_riscv_efi.o |