2022-01-09 17:47:56 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(dirname "$0")"
|
|
|
|
BR_BASEDIR="$(readlink -e "${SCRIPT_DIR}/../../..")"
|
|
|
|
|
2022-01-12 21:26:40 +01:00
|
|
|
# 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"
|
|
|
|
|
2022-01-09 17:47:56 +01:00
|
|
|
# Use Buildroot host spike by default, but allow the caller to
|
|
|
|
# redefine another spike binary
|
2022-01-12 21:26:40 +01:00
|
|
|
: "${SPIKE:=spike}"
|
2022-01-09 17:47:56 +01:00
|
|
|
|
|
|
|
exec "${SPIKE}" \
|
|
|
|
--initrd "${BR_BASEDIR}"/output/images/rootfs.cpio \
|
|
|
|
"${@}" \
|
|
|
|
"${BR_BASEDIR}"/output/images/fw_payload.elf
|