NO_CHECKOUT=1 ./build_qemu_support.sh
MODIFY
qemu_mode/build_qemu_support.sh
qemu_mode/build_qemu_support.sh
@@ -131,9 +131,13 @@ test -d qemuafl || { echo "[-] Not checked out, please install git or check your
echo "[+] Got qemuafl."
cd "qemuafl" || exit 1
+if [ -n "$NO_CHECKOUT" ]; then
+ echo "[*] Skipping checkout to $QEMUAFL_VERSION"
+else
echo "[*] Checking out $QEMUAFL_VERSION"
-# sh -c 'git stash && git stash drop' 1>/dev/null 2>/dev/null
+ sh -c 'git stash' 1>/dev/null 2>/dev/null
git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION
+fi
echo "[*] Making sure imported headers matches"
cp "../../include/config.h" "./qemuafl/imported/" || exit 1

NO_CHECKOUT=1 ./build_qemu_support.sh