summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Brooks <brian.brooks@arm.com>2017-09-22 12:26:34 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-10-14 09:09:57 +0000
commit40b655c370830582d06c916efa4078d006937978 (patch)
tree75b190c5495dc759e6e55653d326bea569668f8a /Makefile
parent903651caf320dfdaabd20a0e6f3cd0ffc843e02f (diff)
Use AESNI=y only on x86_64 machines
This fixes the native build on arm64 machines. Change-Id: I89bff01beedb4c8e26ac55fab2dd1ed39754bf26 Signed-off-by: Brian Brooks <brian.brooks@arm.com> Reviewed-by: Ola Liljedahl <ola.liljedahl@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aef879c9723..c43612de234 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,13 @@ CCACHE_DIR?=$(BR)/.ccache
GDB?=gdb
PLATFORM?=vpp
SAMPLE_PLUGIN?=no
+MACHINE=$(shell uname -m)
+
+ifeq ($(MACHINE),$(filter $(MACHINE),x86_64))
export AESNI?=y
+else
+export AESNI?=N
+endif
,:=,
define disable_plugins