File tree 3 files changed +19
-0
lines changed 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 3
3
/mpy-cross.static
4
4
/mpy-cross.static.exe
5
5
/mpy-cross.static-raspbian
6
+ /mpy-cross.fuzz
6
7
/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
277
277
coverage_clean :
278
278
$(MAKE ) V=2 BUILD=build-coverage PROG=micropython_coverage clean
279
279
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
+
280
292
# Value of configure's --host= option (required for cross-compilation).
281
293
# Deduce it from CROSS_COMPILE by default, but can be overridden.
282
294
ifneq ($(CROSS_COMPILE ) ,)
You can’t perform that action at this time.
0 commit comments