Fix SRCDIR for qemu build

RDIR (the initial working directory) is not necessarily the top of the
chipyard source tree.
This commit is contained in:
Albert Ou
2019-10-08 02:33:28 -07:00
parent ba8b5bb14a
commit 14d2cfc751

View File

@@ -122,7 +122,7 @@ CC= CXX= module_all riscv-pk --prefix="${RISCV}" --host=riscv64-unknown-elf
module_all riscv-tests --prefix="${RISCV}/riscv64-unknown-elf"
# Common tools (not in any particular toolchain dir)
SRCDIR="$RDIR/toolchains" module_all qemu --prefix="${RISCV}" --target-list=riscv64-softmmu
SRCDIR="$(pwd)/toolchains" module_all qemu --prefix="${RISCV}" --target-list=riscv64-softmmu
cd "$RDIR"