about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-21 22:11:07 +0100
committerhexcoder- <heiko@hexco.de>2020-03-21 22:11:07 +0100
commit96736309a701b54ed74bde6ea6e7ad88a5f608c5 (patch)
tree7d966b2cfef09fc416c1c195dbf9ab9f8ec79ba1
parent42ece199c8e20b14b93e83a83aebb13920395a8f (diff)
downloadafl++-96736309a701b54ed74bde6ea6e7ad88a5f608c5.tar.gz
support for arm platform when building qemu
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9913c603..a24092fc 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,11 @@ ifneq "$(shell uname -m)" "x86_64"
  endif
 endif
 
+#support for qemu on arm
+ifneq "$(findstring arm, $(shell uname -m))" ""
+	export CPU_TARGET=arm
+endif
+
 CFLAGS     ?= -O3 -funroll-loops $(CFLAGS_OPT)
 override CFLAGS     += -Wall -g -Wno-pointer-sign -I include/ \
               -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \