dc819438f6
commit 0d0f84d200
added the missing host-dtc dependency to riscv-isa-sim.
The spike simulator calls the dtc binary at its startup. The host dtc
command needs to be in the PATH at that time.
This commit add the buildroot host binary directory into the PATH of the
start.sh helper script. It make sure spike will use the buildroot dtc
version. This commit fixes this start.sh script on host not providing
the dtc command. Since the "spike" binary is now in the PATH, the
binary name is also simplified.
Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
18 lines
495 B
Bash
Executable File
18 lines
495 B
Bash
Executable File
#! /bin/sh
|
|
|
|
SCRIPT_DIR="$(dirname "$0")"
|
|
BR_BASEDIR="$(readlink -e "${SCRIPT_DIR}/../../..")"
|
|
|
|
# spike uses dtc at runtime startup, so make sure buildroot host
|
|
# directory is in the PATH
|
|
export PATH="${BR_BASEDIR}/output/host/usr/bin:$PATH"
|
|
|
|
# Use Buildroot host spike by default, but allow the caller to
|
|
# redefine another spike binary
|
|
: "${SPIKE:=spike}"
|
|
|
|
exec "${SPIKE}" \
|
|
--initrd "${BR_BASEDIR}"/output/images/rootfs.cpio \
|
|
"${@}" \
|
|
"${BR_BASEDIR}"/output/images/fw_payload.elf
|