mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
a11078a78c
This adds support for `afl-fuzz -Q`, which can be used to instrument arbitrary black-box binary code for fuzz testing using American Fuzzy Lop through QEMU emulation. This requires a custom QEMU 2.2.0 build of the Linux userspace emulators (system emulators aren't required) with some custom patches. Furthermore we have to patch the patches a little to make the build more sane (there are some notes in the README about this). Overall, the addition of this feature by default doesn't significantly impact build times (since building QEMU for only one target builds only a fraction of the source code, and many features are disabled), so it's enabled by default. Signed-off-by: Austin Seipp <aseipp@pobox.com>
15 lines
524 B
Diff
15 lines
524 B
Diff
diff --git a/Makefile b/Makefile
|
|
index d6b9dc1..ce7c493 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -384,8 +384,7 @@ install-confdir:
|
|
install-sysconfig: install-datadir install-confdir
|
|
$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(qemu_confdir)"
|
|
|
|
-install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig \
|
|
-install-datadir install-localstatedir
|
|
+install: all $(if $(BUILD_DOCS),install-doc) install-datadir
|
|
ifneq ($(TOOLS),)
|
|
$(call install-prog,$(TOOLS),$(DESTDIR)$(bindir))
|
|
endif
|