Files
xen/tools/fuzz/cpu-policy/Makefile
T
Andrew Cooper a08243eb4a tools/fuzz: Add a cpu-policy fuzzing harness
There is now enough complexity that a fuzzing harness is a good idea, and
enough supporting logic to implement one which AFL seems happy with.

Take the existing recalculate_synth() helper and export it as
x86_cpuid_policy_recalc_synth(), as it is needed by the fuzzing harness.

While editing the MAINTAINERS file, insert a related entry which was
accidentally missed from c/s 919ddc3c0 "tools/cpu-policy: Add unit tests", and
sort the lines.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
2019-06-06 15:28:20 +01:00

29 lines
495 B
Makefile

XEN_ROOT = $(CURDIR)/../../..
include $(XEN_ROOT)/tools/Rules.mk
.PHONY: all
all: afl-policy-fuzzer
.PHONY: clean
clean:
$(RM) -f -- *.o .*.d .*.d2 afl-policy-fuzzer
.PHONY: distclean
distclean: clean
$(RM) -f -- *~
.PHONY: install
install: all
.PHONY: uninstall
CFLAGS += -Werror $(CFLAGS_xeninclude) -D__XEN_TOOLS__
CFLAGS += $(APPEND_CFLAGS) -Og
vpath %.c ../../../xen/lib/x86
afl-policy-fuzzer: afl-policy-fuzzer.o msr.o cpuid.o
$(CC) $(CFLAGS) $^ -o $@
-include $(DEPS_INCLUDE)