examples/performance-thread: restrict to x86_64
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 8 Apr 2016 16:20:15 +0000 (17:20 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Apr 2016 20:28:39 +0000 (22:28 +0200)
Performance-thread sample app is only supported for x86_64 targets,
so this commit adds a check to avoid compilation on other targets.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/performance-thread/Makefile

index 6278c9a..d19f848 100644 (file)
@@ -38,6 +38,10 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
+ifneq ($(CONFIG_RTE_ARCH),"x86_64")
+$(error This application is only supported for x86_64 targets)
+endif
+
 DIRS-y += l3fwd-thread
 DIRS-y += pthread_shim