From 14d2cfc751c8357bbcffa40e3c3ead4436f998f5 Mon Sep 17 00:00:00 2001 From: Albert Ou Date: Tue, 8 Oct 2019 02:33:28 -0700 Subject: [PATCH] Fix SRCDIR for qemu build RDIR (the initial working directory) is not necessarily the top of the chipyard source tree. --- scripts/build-toolchains.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-toolchains.sh b/scripts/build-toolchains.sh index 767f8387..b3195add 100755 --- a/scripts/build-toolchains.sh +++ b/scripts/build-toolchains.sh @@ -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"