From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fan Zhang Subject: [PATCH] crypto/aesni_mb: fix compile Date: Wed, 16 Jan 2019 13:21:14 +0000 Message-ID: <20190116132114.65674-1-roy.fan.zhang@intel.com> Cc: akhil.goyal@nxp.com To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 272ABF72 for ; Wed, 16 Jan 2019 14:21:16 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if IPSec_MB is not installed in default location. Fixes: c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros") Signed-off-by: Fan Zhang --- drivers/crypto/aesni_mb/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/aesni_mb/Makefile b/drivers/crypto/aesni_mb/Makefile index 7ef290dc5..1aae64a3c 100644 --- a/drivers/crypto/aesni_mb/Makefile +++ b/drivers/crypto/aesni_mb/Makefile @@ -23,7 +23,9 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_cryptodev LDLIBS += -lrte_bus_vdev -IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include " | \ + $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -1 | cut -d'"' -f2) # Detect library version IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2) -- 2.13.6