From 9dca67e0c5165392c50cd999ad5a90e2fe8b9de2 Mon Sep 17 00:00:00 2001 From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 Subject: [PATCH] examples/dpdk_qat: fix cross compile check Signed-off-by: Intel --- examples/dpdk_qat/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/dpdk_qat/Makefile b/examples/dpdk_qat/Makefile index ed4c592afa..99f3b8b185 100644 --- a/examples/dpdk_qat/Makefile +++ b/examples/dpdk_qat/Makefile @@ -49,12 +49,14 @@ please change the definition of the RTE_TARGET environment variable) endif LBITS := $(shell uname -p) -ifneq ($(CONFIG_RTE_ARCH),"x86_64") +ifeq ($(CROSS_COMPILE),) + ifneq ($(CONFIG_RTE_ARCH),"x86_64") ifneq ($(LBITS),i686) $(error The RTE_TARGET chosen is not compatible with this environment \ (x86_64), for this application. Please change the definition of the \ RTE_TARGET environment variable, or run the application on a 32-bit OS) endif + endif endif # binary name -- 2.20.1