kcargo.sh: honor SEL4_OUT_DIR from the environment This is/may-be used building applications written in Rust. Change-Id: I0c28ab5fae0e2e3437973f0de00e4363c196ce4c
diff --git a/kcargo.sh b/kcargo.sh index 8664a72..b058374 100755 --- a/kcargo.sh +++ b/kcargo.sh
@@ -24,7 +24,7 @@ # HACK: sel4-config needs a path to the kernel build which could be # in debug or release -export SEL4_OUT_DIR="$ROOTDIR/out/kata/riscv32-unknown-elf/debug/kernel/" +export SEL4_OUT_DIR=${SEL4_OUT_DIR:-"$ROOTDIR/out/kata/riscv32-unknown-elf/debug/kernel/"} if [[ ! -d "${SEL4_OUT_DIR}/gen_config" ]]; then echo "No kernel build found at ${SEL4_OUT_DIR}; build a kernel first" exit 2