Unverified Commit fafd152c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Print debug info

parent 876a0c30
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -30,12 +30,14 @@ HOST_ARGS+=("-cpu_arch=${HOST_CPU}")
[ -n "$HOST_VERSION" ] && HOST_ARGS+=("-version=${HOST_VERSION}")
[ -n "$HOST_TIMESTAMP" ] && HOST_ARGS+=("-ts=${HOST_TIMESTAMP}")

[ "$DEBUG" = "Y" ] && set -x

./run/host.bin "${HOST_ARGS[@]}" > /dev/null 2>&1 &

if [ "$DEBUG" = "Y" ]; then
  set -x
  ./run/host.bin "${HOST_ARGS[@]}" &
  { set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo
  echo
else
  ./run/host.bin "${HOST_ARGS[@]}" > /dev/null 2>&1 &
fi

# Configure serial ports