crypto/aesni_mb: fix build with custom dependency path
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 <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Tested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
This commit is contained in:
parent
727663e88b
commit
3067c8ce77
@ -23,7 +23,9 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|||||||
LDLIBS += -lrte_cryptodev
|
LDLIBS += -lrte_cryptodev
|
||||||
LDLIBS += -lrte_bus_vdev
|
LDLIBS += -lrte_bus_vdev
|
||||||
|
|
||||||
IMB_HDR = /usr/include/intel-ipsec-mb.h
|
IMB_HDR = $(shell echo '\#include <intel-ipsec-mb.h>' | \
|
||||||
|
$(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \
|
||||||
|
head -n1 | cut -d'"' -f2)
|
||||||
|
|
||||||
# Detect library version
|
# Detect library version
|
||||||
IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
|
IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user