1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/toolchain: add support for afl

This commit is contained in:
Sören Tempel 2019-07-01 13:02:53 +02:00
parent 067b324645
commit d7104e4992
3 changed files with 8 additions and 1 deletions

View File

@ -98,6 +98,7 @@ all-gprof: LINKFLAGS += -pg
all-asan: CFLAGS += -fsanitize=address -fno-omit-frame-pointer
all-asan: CFLAGS += -DNATIVE_MEMORY
all-asan: LINKFLAGS += -fsanitize=address -fno-omit-frame-pointer
all-asan: export AFL_USE_ASAN=1
INCLUDES += $(NATIVEINCLUDES)

View File

@ -8,4 +8,4 @@ endif
USEMODULE += periph
USEMODULE += periph_uart
TOOLCHAINS_SUPPORTED = gnu llvm
TOOLCHAINS_SUPPORTED = gnu llvm afl

View File

@ -0,0 +1,6 @@
include $(RIOTMAKE)/toolchain/gnu.inc.mk
export CC = $(PREFIX)afl-gcc
export CXX = $(PREFIX)afl-g++
export LINK = $(PREFIX)afl-gcc
export LINKXX = $(PREFIX)afl-g++