examples/dpdk_qat: fix cross compile check

Signed-off-by: Intel
This commit is contained in:
Intel 2013-06-03 00:00:00 +00:00 committed by Thomas Monjalon
parent cdfd5dbb90
commit 9dca67e0c5

View File

@ -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