summaryrefslogtreecommitdiffstats
path: root/development/aflplusplus/build_qemu_support.diff
blob: ab4321ca2b9c6582243fbd17b5697d453e56f373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff -Naur AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh
--- AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh	2022-10-11 09:40:55.000000000 -0400
+++ AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh	2022-12-29 17:08:26.492717555 -0500
@@ -70,35 +70,7 @@
 
 echo "[*] Making sure qemuafl is checked out"
 
-git status 1>/dev/null 2>/dev/null
-if [ $? -eq 0 ]; then
-  echo "[*] initializing qemuafl submodule"
-  git submodule init || exit 1
-  git submodule update ./qemuafl 2>/dev/null # ignore errors
-else
-  echo "[*] cloning qemuafl"
-  test -d qemuafl/.git || {
-    CNT=1
-    while [ '!' -d qemuafl/.git -a "$CNT" -lt 4 ]; do
-      echo "Trying to clone qemuafl (attempt $CNT/3)"
-      git clone --depth 1 https://github.com/AFLplusplus/qemuafl
-      CNT=`expr "$CNT" + 1`
-    done
-  }
-fi
-
-test -e qemuafl/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
-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' 1>/dev/null 2>/dev/null
-  git pull
-  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
@@ -239,7 +211,6 @@
     --enable-debug-stack-usage \
     --enable-debug-tcg \
     --enable-qom-cast-debug \
-    --enable-werror \
     "
 
 else