From: Samuel Holland Date: Mon, 20 Feb 2023 06:02:39 +0000 (-0600) Subject: riscv: Support CONFIG_REMAKE_ELF X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=04d16be55404ee07134b4171dea37eff9ad8fa5a;p=u-boot.git riscv: Support CONFIG_REMAKE_ELF Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland --- diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index f74c3f37e6..9cf2aef0a4 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -16,11 +16,13 @@ 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