summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-09-18 12:00:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-10-09 16:16:16 +0200
commit78a94f74581965602d1e4645d52119c06d319998 (patch)
tree47a0908156fa7d70c6507665d96e7b2bc37f8927
parent2a6ce1afd9ce5e5b6f8e374a751cf215743f36ac (diff)
downloaddpdk-78a94f74581965602d1e4645d52119c06d319998.zip
dpdk-78a94f74581965602d1e4645d52119c06d319998.tar.gz
dpdk-78a94f74581965602d1e4645d52119c06d319998.tar.xz
examples/qat: upgrade to CRF 1.2
Signed-off-by: Intel
-rw-r--r--examples/dpdk_qat/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/examples/dpdk_qat/Makefile b/examples/dpdk_qat/Makefile
index a481c36..d94b41a 100644
--- a/examples/dpdk_qat/Makefile
+++ b/examples/dpdk_qat/Makefile
@@ -70,12 +70,19 @@ CFLAGS += -I$(ICP_ROOT)/quickassist/include \
-I$(ICP_ROOT)/quickassist/include/lac \
-I$(ICP_ROOT)/quickassist/lookaside/access_layer/include
+# From CRF 1.2 driver, library was renamed to libicp_qa_al.a
+ifneq ($(wildcard $(ICP_ROOT)/build/icp_qa_al.a),)
+ICP_LIBRARY_PATH = $(ICP_ROOT)/build/icp_qa_al.a
+else
+ICP_LIBRARY_PATH = $(ICP_ROOT)/build/libicp_qa_al.a
+endif
+
LDLIBS += -L$(ICP_ROOT)/build
-LDLIBS += $(ICP_ROOT)/build/icp_qa_al.a \
- -lz \
- -losal \
- -ladf_proxy \
- -lcrypto
+LDLIBS += $(ICP_LIBRARY_PATH) \
+ -lz \
+ -losal \
+ -ladf_proxy \
+ -lcrypto
# workaround for a gcc bug with noreturn attribute
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603