[dpdk-dev] performance-thread: limit app compilation to x86_64 targets

Message ID 1460132415-39522-1-git-send-email-pablo.de.lara.guarch@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

De Lara Guarch, Pablo April 8, 2016, 4:20 p.m. UTC
  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 | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Thomas Monjalon April 8, 2016, 8:26 p.m. UTC | #1
2016-04-08 17:20, Pablo de Lara:
> 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>

Applied, thanks
  

Patch

diff --git a/examples/performance-thread/Makefile b/examples/performance-thread/Makefile
index 6278c9a..d2eec83 100644
--- a/examples/performance-thread/Makefile
+++ b/examples/performance-thread/Makefile
@@ -38,6 +38,9 @@  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