diff options
Diffstat (limited to 'common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb')
-rw-r--r-- | common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb new file mode 100644 index 00000000..a4fe3c57 --- /dev/null +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb | |||
@@ -0,0 +1,54 @@ | |||
1 | SUMMARY = "libcrypto* (OpenSSL*) QAT_MEM Memory Management Module \ | ||
2 | for Intel Quick Assist Technology" | ||
3 | DESCRIPTION = "This software adds an engine that accelerates some of \ | ||
4 | the libcrypto algorithms via the Intel QuickAssist Technology \ | ||
5 | implemented on Intel Communications Chipset 89xx Series based platforms." | ||
6 | |||
7 | HOMEPAGE = "http://www.openssl.org/" | ||
8 | SECTION = "libs/network" | ||
9 | |||
10 | LICENSE = "openssl" | ||
11 | LIC_FILES_CHKSUM = "file://${WORKDIR}/openssl-${PV}/LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" | ||
12 | |||
13 | PV = "1.0.1" | ||
14 | PR = "r0" | ||
15 | |||
16 | OPENSSL_QAT_VERSION = "0.4.0-012" | ||
17 | |||
18 | SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=openssl \ | ||
19 | http://downloadmirror.intel.com/19368/eng/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.tar.gz;name=libcrypto \ | ||
20 | file://openssl_qat_module.patch" | ||
21 | |||
22 | SRC_URI[openssl.md5sum]="134f168bc2a8333f19f81d684841710b" | ||
23 | SRC_URI[openssl.sha256sum]="4d9f0a594a9a89b28e1a04a9504c04104f6508ee27ad1e0efdd17a7a6dbbeeee" | ||
24 | |||
25 | SRC_URI[libcrypto.md5sum] = "e4e131fa56d3aa1a52b5bdb9f8fe5a69" | ||
26 | SRC_URI[libcrypto.sha256sum] = "19a80ae6e78548934295d312148e4254c18dabd25e2fd72de5796d8ac15b1cfb" | ||
27 | |||
28 | S = "${WORKDIR}/openssl-${PV}/engines/qat_engine/qat_mem" | ||
29 | |||
30 | export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" | ||
31 | inherit module | ||
32 | |||
33 | do_patch() { | ||
34 | cd ${WORKDIR}/openssl-${PV} | ||
35 | patch -p2 < ${WORKDIR}/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.patch | ||
36 | |||
37 | cd ${WORKDIR} | ||
38 | patch -p1 <${WORKDIR}/openssl_qat_module.patch | ||
39 | } | ||
40 | |||
41 | do_compile() { | ||
42 | cd ${S} | ||
43 | oe_runmake KERNEL_CC="${KERNEL_CC}" | ||
44 | } | ||
45 | |||
46 | do_install_append() { | ||
47 | install -m 0755 -d ${D}${bindir} \ | ||
48 | ${D}${includedir}/engines/qat_engine/qat_mem | ||
49 | |||
50 | install -m 0755 ${S}/qat_mem_test ${D}${bindir} | ||
51 | install -m 0750 ${S}/*.h ${D}${includedir}/engines/qat_engine/qat_mem/ | ||
52 | } | ||
53 | |||
54 | FILES_${PN} += "${bindir}/qat_mem_test" | ||