aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Elliott Childre <elliottchildre329@gmail.com>2021-03-09 16:24:59 -0500
committerR. Elliott Childre <elliottchildre329@gmail.com>2021-03-10 09:12:41 -0500
commit87eb44abe4c30c777b6d5dad890bea7cdeeffdf3 (patch)
tree3ddae290bbde716a9707b2d8fe343a370e7f420f
parenta0c30116733dd08e8d74a879c0e99be140b7eebb (diff)
downloadafl++-87eb44abe4c30c777b6d5dad890bea7cdeeffdf3.tar.gz
Remove QEMU dependency checks
Most of these packages (bison, flex, pixman (in non-system mode)) are no longer dependencies of QEMU and regardless, QEMU's build system is quite capable of finding dependencies by itself and will error out accordingly. This prevents having to further change this code as QEMU's dependencies inevitably change.
-rwxr-xr-xqemu_mode/build_qemu_support.sh43
1 files changed, 1 insertions, 42 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh
index c9674c53..38085389 100755
--- a/qemu_mode/build_qemu_support.sh
+++ b/qemu_mode/build_qemu_support.sh
@@ -59,51 +59,11 @@ if [ ! -f "../afl-showmap" ]; then
fi
-PREREQ_NOTFOUND=
-for i in git wget sha384sum bison flex iconv patch pkg-config; do
-
- T=`command -v "$i" 2>/dev/null`
-
- if [ "$T" = "" ]; then
-
- echo "[-] Error: '$i' not found, please install first."
- PREREQ_NOTFOUND=1
-
- fi
-
-done
-
-PYTHONBIN=`command -v python3 || command -v python || command -v python2`
-
-if [ "$PYTHONBIN" = "" ]; then
- echo "[-] Error: 'python' not found, please install using 'sudo apt install python3'."
- PREREQ_NOTFOUND=1
-fi
-
-
-if [ ! -d "/usr/include/glib-2.0/" -a ! -d "/usr/local/include/glib-2.0/" ]; then
-
- echo "[-] Error: devel version of 'glib2' not found, please install first."
- PREREQ_NOTFOUND=1
-
-fi
-
-if [ ! -d "/usr/include/pixman-1/" -a ! -d "/usr/local/include/pixman-1/" ]; then
-
- echo "[-] Error: devel version of 'pixman-1' not found, please install first."
- PREREQ_NOTFOUND=1
-
-fi
-
if echo "$CC" | grep -qF /afl-; then
echo "[-] Error: do not use afl-gcc or afl-clang to compile this tool."
- PREREQ_NOTFOUND=1
-
-fi
-
-if [ "$PREREQ_NOTFOUND" = "1" ]; then
exit 1
+
fi
echo "[+] All checks passed!"
@@ -237,7 +197,6 @@ QEMU_CONF_FLAGS=" \
--disable-xen \
--disable-xen-pci-passthrough \
--disable-xfsctl \
- --python=${PYTHONBIN} \
--target-list="${CPU_TARGET}-linux-user" \
--without-default-devices \
"