riscv: Support CONFIG_REMAKE_ELF
[platform/kernel/u-boot.git] / arch / riscv / config.mk
index f74c3f3..9cf2aef 100644 (file)
 ifdef CONFIG_32BIT
 KBUILD_LDFLAGS         += -m $(32bit-emul)
 EFI_LDS                        := elf_riscv32_efi.lds
+PLATFORM_ELFFLAGS      += -B riscv -O elf32-littleriscv
 endif
 
 ifdef CONFIG_64BIT
 KBUILD_LDFLAGS         += -m $(64bit-emul)
 EFI_LDS                        := elf_riscv64_efi.lds
+PLATFORM_ELFFLAGS      += -B riscv -O elf64-littleriscv
 endif
 
 PLATFORM_CPPFLAGS      += -ffixed-gp -fpic