From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 (+0000) Subject: examples/dpdk_qat: fix cross compile check X-Git-Tag: spdx-start~11191 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9dca67e0c5165392c50cd999ad5a90e2fe8b9de2;p=dpdk.git examples/dpdk_qat: fix cross compile check Signed-off-by: Intel --- 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