crypto/qat: re-organise build file content
This patch groups sources and related dependencies into common and sym sections in build files. Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
This commit is contained in:
parent
8121fce822
commit
4a147730df
@ -15,19 +15,22 @@ CFLAGS += -O3
|
||||
|
||||
# external library include paths
|
||||
CFLAGS += -I$(SRCDIR)/qat_adf
|
||||
LDLIBS += -lcrypto
|
||||
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
||||
LDLIBS += -lrte_cryptodev
|
||||
LDLIBS += -lrte_pci -lrte_bus_pci
|
||||
|
||||
# library source files
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_sym.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_device.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_qp.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_sym_session.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_common.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_logs.c
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += qat_sym_pmd.c
|
||||
# library common source files
|
||||
SRCS-y += qat_device.c
|
||||
SRCS-y += qat_common.c
|
||||
SRCS-y += qat_logs.c
|
||||
SRCS-y += qat_qp.c
|
||||
|
||||
# library symmetric crypto source files
|
||||
LDLIBS += -lrte_cryptodev
|
||||
LDLIBS += -lcrypto
|
||||
SRCS-y += qat_sym.c
|
||||
SRCS-y += qat_sym_session.c
|
||||
SRCS-y += qat_sym_pmd.c
|
||||
|
||||
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool
|
||||
LDLIBS += -lrte_pci -lrte_bus_pci
|
||||
|
||||
# export include files
|
||||
SYMLINK-y-include +=
|
||||
|
@ -2,15 +2,19 @@
|
||||
# Copyright(c) 2017-2018 Intel Corporation
|
||||
|
||||
dep = dependency('libcrypto', required: false)
|
||||
if not dep.found()
|
||||
build = false
|
||||
endif
|
||||
|
||||
build = false
|
||||
sources = files('qat_common.c',
|
||||
'qat_qp.c',
|
||||
'qat_device.c',
|
||||
'qat_logs.c',
|
||||
'qat_sym_pmd.c', 'qat_sym.c', 'qat_sym_session.c')
|
||||
'qat_logs.c')
|
||||
|
||||
if dep.found()
|
||||
sources += files('qat_sym_pmd.c', 'qat_sym.c', 'qat_sym_session.c')
|
||||
pkgconfig_extra_libs += '-lcrypto'
|
||||
build = true
|
||||
endif
|
||||
|
||||
includes += include_directories('qat_adf')
|
||||
deps += ['bus_pci']
|
||||
ext_deps += dep
|
||||
pkgconfig_extra_libs += '-lcrypto'
|
||||
|
@ -6,7 +6,6 @@
|
||||
#define _QAT_SYM_H_
|
||||
|
||||
#include <rte_cryptodev_pmd.h>
|
||||
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#include "qat_common.h"
|
||||
@ -153,4 +152,5 @@ qat_sym_process_response(void **op, uint8_t *resp)
|
||||
}
|
||||
*op = (void *)rx_op;
|
||||
}
|
||||
|
||||
#endif /* _QAT_SYM_H_ */
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "qat_sym_capabilities.h"
|
||||
#include "qat_device.h"
|
||||
|
||||
|
||||
/**< Intel(R) QAT Symmetric Crypto PMD device name */
|
||||
#define CRYPTODEV_NAME_QAT_SYM_PMD crypto_qat
|
||||
#define QAT_SYM_PMD_MAX_NB_SESSIONS 2048
|
||||
@ -31,10 +30,10 @@ struct qat_sym_dev_private {
|
||||
/* QAT device symmetric crypto capabilities */
|
||||
};
|
||||
|
||||
|
||||
int
|
||||
qat_sym_dev_create(struct qat_pci_device *qat_pci_dev);
|
||||
|
||||
int
|
||||
qat_sym_dev_destroy(struct qat_pci_device *qat_pci_dev);
|
||||
|
||||
#endif /* _QAT_SYM_PMD_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user