File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33/mpy-cross.static
44/mpy-cross.static.exe
55/mpy-cross.static-raspbian
6+ /mpy-cross.fuzz
67/pitools
Original file line number Diff line number Diff line change 1+
2+ PROG=mpy-cross.fuzz
3+ BUILD=build-static
4+ STATIC_BUILD=1
5+ CC=afl-clang-fast
6+ include mpy-cross.mk
Original file line number Diff line number Diff line change @@ -277,6 +277,18 @@ coverage_test: coverage
277277coverage_clean :
278278 $(MAKE ) V=2 BUILD=build-coverage PROG=micropython_coverage clean
279279
280+ # build an interpreter for fuzzing
281+ fuzz :
282+ $(MAKE ) \
283+ CC=afl-clang-fast DEBUG=1 \
284+ CFLAGS_EXTRA=' $(CFLAGS_EXTRA) -ffunction-sections' \
285+ LDFLAGS_EXTRA=' $(LDFLAGS_EXTRA)' \
286+ BUILD=build-fuzz PROG=micropython_fuzz
287+
288+ fuzz_clean :
289+ $(MAKE ) V=2 BUILD=build-fuzz PROG=micropython_fuzz clean
290+
291+
280292# Value of configure's --host= option (required for cross-compilation).
281293# Deduce it from CROSS_COMPILE by default, but can be overridden.
282294ifneq ($(CROSS_COMPILE ) ,)
You can’t perform that action at this time.
0 commit comments