[coreboot-gerrit] Patch set updated for coreboot: RISCV: have the make-spike-elf.sh script use the riscv tools
Ronald G. Minnich (rminnich@gmail.com)
gerrit at coreboot.org
Fri Oct 7 17:44:00 CEST 2016
Ronald G. Minnich (rminnich at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16918
-gerrit
commit 60e30c903ce30be49f89351af3ea1ad4b227b36c
Author: Ronald G. Minnich <rminnich at gmail.com>
Date: Fri Oct 7 06:57:03 2016 -0700
RISCV: have the make-spike-elf.sh script use the riscv tools
We do this so that the riscv objdump can be used on the coreboot.elf file.
Change-Id: Ib8bf85a3299dd75b779e7fa3757f5b62c9c7170b
Signed-off-by: Ronald G. Minnich <rminnich at gmail.com>
---
util/riscvtools/make-spike-elf.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/util/riscvtools/make-spike-elf.sh b/util/riscvtools/make-spike-elf.sh
index 4241c54..20ae23c 100755
--- a/util/riscvtools/make-spike-elf.sh
+++ b/util/riscvtools/make-spike-elf.sh
@@ -22,6 +22,8 @@ OBJECT_FILE=$(mktemp /tmp/coreboot-spike.XXXXXX.o)
ELF_FILE="$2"
TOOL_PATH="$(dirname "$0")"
-objcopy -I binary -O elf32-i386 --binary-architecture i386 "$FLAT_FILE" "$OBJECT_FILE"
-ld -m elf_i386 "$OBJECT_FILE" -T "$TOOL_PATH/spike-elf.ld" -o "$ELF_FILE"
+riscv64-unknown-linux-gnu-objcopy -I binary -O elf64-littleriscv \
+ -B riscv "$FLAT_FILE" "$OBJECT_FILE"
+riscv64-unknown-linux-gnu-ld "$OBJECT_FILE" -T "$TOOL_PATH/spike-elf.ld" \
+ -o "$ELF_FILE"
rm "$OBJECT_FILE"
More information about the coreboot-gerrit
mailing list