[coreboot-gerrit] Patch set updated for coreboot: RISCV: change make-spike-elf to use the coreboot toolchain.

Jonathan Neuschäfer (j.neuschaefer@gmx.net) gerrit at coreboot.org
Wed Oct 12 11:34:01 CEST 2016


Jonathan Neuschäfer (j.neuschaefer at gmx.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16955

-gerrit

commit 26fa44fbff58cbdcf0894a336cd1785d5ef59a2a
Author: Ronald G. Minnich <rminnich at gmail.com>
Date:   Wed Oct 12 00:18:01 2016 +0200

    RISCV: change make-spike-elf to use the coreboot toolchain.
    
    Change-Id: I81ced8c6e02b00a3835e3b42c9cf2669b1b2bd3e
    Signed-off-by: Ronald G. Minnich <rminnich at gmail.com>
    [jn: Added XGCC_BIN variable to avoid requiring the tools in $PATH]
    Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
---
 util/riscvtools/make-spike-elf.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/util/riscvtools/make-spike-elf.sh b/util/riscvtools/make-spike-elf.sh
index 20ae23c..9632436 100755
--- a/util/riscvtools/make-spike-elf.sh
+++ b/util/riscvtools/make-spike-elf.sh
@@ -21,9 +21,10 @@ FLAT_FILE="$1"
 OBJECT_FILE=$(mktemp /tmp/coreboot-spike.XXXXXX.o)
 ELF_FILE="$2"
 TOOL_PATH="$(dirname "$0")"
+XGCC_BIN="$TOOL_PATH/../crossgcc/xgcc/bin"
 
-riscv64-unknown-linux-gnu-objcopy -I binary -O elf64-littleriscv \
+"$XGCC_BIN/riscv64-elf-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" \
+"$XGCC_BIN/riscv64-elf-ld" "$OBJECT_FILE" -T "$TOOL_PATH/spike-elf.ld" \
 	 -o "$ELF_FILE"
 rm "$OBJECT_FILE"



More information about the coreboot-gerrit mailing list