mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 20:34:38 +00:00
riscv: Support CONFIG_REMAKE_ELF
Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
9a6569a043
commit
04d16be554
1 changed files with 2 additions and 0 deletions
|
@ -16,11 +16,13 @@
|
||||||
ifdef CONFIG_32BIT
|
ifdef CONFIG_32BIT
|
||||||
KBUILD_LDFLAGS += -m $(32bit-emul)
|
KBUILD_LDFLAGS += -m $(32bit-emul)
|
||||||
EFI_LDS := elf_riscv32_efi.lds
|
EFI_LDS := elf_riscv32_efi.lds
|
||||||
|
PLATFORM_ELFFLAGS += -B riscv -O elf32-littleriscv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_64BIT
|
ifdef CONFIG_64BIT
|
||||||
KBUILD_LDFLAGS += -m $(64bit-emul)
|
KBUILD_LDFLAGS += -m $(64bit-emul)
|
||||||
EFI_LDS := elf_riscv64_efi.lds
|
EFI_LDS := elf_riscv64_efi.lds
|
||||||
|
PLATFORM_ELFFLAGS += -B riscv -O elf64-littleriscv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -ffixed-gp -fpic
|
PLATFORM_CPPFLAGS += -ffixed-gp -fpic
|
||||||
|
|
Loading…
Add table
Reference in a new issue