bisect-linux-boot-gem5 364 B

12345678910111213
  1. #!/usr/bin/env bash
  2. # https://github.com/cirosantilli/linux-kernel-module-cheat#bisection
  3. set -eu
  4. ./build-linux --clean "$@"
  5. ./build-linux "$@"
  6. set +e
  7. ./run --quit-after-boot "$@" || status=$?
  8. # https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
  9. if [ "$status" -eq 125 ] || [ "$status" -gt 127 ]; then
  10. status=1
  11. fi
  12. exit "$status"