diff options
Diffstat (limited to 'meta-qat/recipes-extended/openssl-qat/openssl-qat.inc')
| -rw-r--r-- | meta-qat/recipes-extended/openssl-qat/openssl-qat.inc | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/meta-qat/recipes-extended/openssl-qat/openssl-qat.inc b/meta-qat/recipes-extended/openssl-qat/openssl-qat.inc deleted file mode 100644 index ff22825..0000000 --- a/meta-qat/recipes-extended/openssl-qat/openssl-qat.inc +++ /dev/null | |||
| @@ -1,125 +0,0 @@ | |||
| 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 | LICENSE = "openssl & GPLv2 & BSD" | ||
| 10 | |||
| 11 | LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8 \ | ||
| 12 | file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \ | ||
| 13 | file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI = "https://01.org/sites/default/files/page/libcrypto_shim_${PV}_withdocumentation.zip;name=openssl_qat;subdir=openssl_qat-${PV} \ | ||
| 17 | file://openssl_qat-environment-variables-to-have-precedence.patch \ | ||
| 18 | file://openssl_qat-pass-oe_ldflags-to-linker.patch \ | ||
| 19 | file://openssl_qat-remove-redundant-rpaths.patch \ | ||
| 20 | file://openssl_qat-build-qat_mem-ko-against-yocto-kernel.patch \ | ||
| 21 | file://openssl_qat-install-engines-in-libdir-ssl.patch \ | ||
| 22 | " | ||
| 23 | |||
| 24 | DEPENDS += " qat16 zlib" | ||
| 25 | RDEPENDS_${PN} += " qat16 zlib zlib-qat" | ||
| 26 | |||
| 27 | inherit pkgconfig module | ||
| 28 | |||
| 29 | PACKAGES =+ "${PN}-misc" | ||
| 30 | PARALLEL_MAKE = "" | ||
| 31 | |||
| 32 | AR_append = " r" | ||
| 33 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
| 34 | |||
| 35 | export ICP_ROOT = "${WORKDIR}/git" | ||
| 36 | export ICP_BUILD_OUTPUT = "${STAGING_DIR_TARGET}" | ||
| 37 | export OPENSSL_ROOT = "${ICP_ROOT}" | ||
| 38 | export OPENSSL_PREFIX = "/usr/local" | ||
| 39 | export AS = "${CC} -c" | ||
| 40 | export OE_LDFLAGS="${LDFLAGS} -L${OPENSSL_PREFIX}{base_libdir}" | ||
| 41 | export ICP_API_PATH = "${STAGING_DIR_TARGET}${includedir}/lac" | ||
| 42 | export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" | ||
| 43 | export KERNEL_BUILDDIR = "${STAGING_KERNEL_BUILDDIR}" | ||
| 44 | |||
| 45 | S = "${WORKDIR}/git" | ||
| 46 | |||
| 47 | opensslqat_do_patch() { | ||
| 48 | cd ${WORKDIR}/openssl_qat-${PV} | ||
| 49 | cd libcrypto_shim_${PV}_* | ||
| 50 | tar -zxof libCrypto_Shim_${PV}.tar.gz | ||
| 51 | tar -zxof libcrypto-openssl-${OPENSSL_VERSION}-qat.L.${PV}.tar.gz | ||
| 52 | mv openssl-${OPENSSL_VERSION}-qat.patch ${WORKDIR} | ||
| 53 | |||
| 54 | cd ${S} | ||
| 55 | if [ ! -d ${S}/debian/patches ]; then | ||
| 56 | mkdir -p ${S}/debian/patches | ||
| 57 | cp -f ${WORKDIR}/openssl-${OPENSSL_VERSION}-qat.patch ${S}/debian/patches | ||
| 58 | echo "openssl-${OPENSSL_VERSION}-qat.patch -p1" > ${S}/debian/patches/series | ||
| 59 | fi | ||
| 60 | quilt pop -a || true | ||
| 61 | if [ -d ${S}/.pc-opensslqat ]; then | ||
| 62 | rm -rf ${S}/.pc | ||
| 63 | mv ${S}/.pc-opensslqat ${S}/.pc | ||
| 64 | QUILT_PATCHES=${S}/debian/patches quilt pop -a | ||
| 65 | rm -rf ${S}/.pc | ||
| 66 | fi | ||
| 67 | QUILT_PATCHES=${S}/debian/patches quilt push -a | ||
| 68 | mv ${S}/.pc ${S}/.pc-opensslqat | ||
| 69 | } | ||
| 70 | |||
| 71 | # We invoke base do_patch at end, to incorporate any local patch | ||
| 72 | python do_patch() { | ||
| 73 | bb.build.exec_func('opensslqat_do_patch', d) | ||
| 74 | bb.build.exec_func('patch_do_patch', d) | ||
| 75 | } | ||
| 76 | |||
| 77 | do_configure () { | ||
| 78 | os=linux | ||
| 79 | target=linux-x86_64 | ||
| 80 | |||
| 81 | ./Configure -no-ssl3 enable-hw-qat --prefix=$OPENSSL_PREFIX --openssldir="${OPENSSL_PREFIX}${base_libdir}/ssl" --libdir="${base_libdir}" $target | ||
| 82 | } | ||
| 83 | |||
| 84 | do_compile() { | ||
| 85 | oe_runmake | ||
| 86 | } | ||
| 87 | |||
| 88 | do_install() { | ||
| 89 | install -m 0755 -d ${D}${bindir} \ | ||
| 90 | ${D}${OPENSSL_PREFIX}/include \ | ||
| 91 | ${D}${sysconfdir}/openssl_conf | ||
| 92 | |||
| 93 | oe_runmake INSTALL_PREFIX="${D}" install | ||
| 94 | |||
| 95 | cp --dereference -R include/openssl ${D}${OPENSSL_PREFIX}/include | ||
| 96 | |||
| 97 | cp ${WORKDIR}/openssl_qat-${PV}/libcrypto_shim_${PV}_withdocumentation/qat/config/dh895xcc/multi_process_optimized/* ${D}${sysconfdir}/openssl_conf/ | ||
| 98 | } | ||
| 99 | |||
| 100 | FILES_${PN}-misc += "\ | ||
| 101 | ${OPENSSL_PREFIX}${base_libdir}/ssl/misc \ | ||
| 102 | ${bindir}/c_rehash \ | ||
| 103 | " | ||
| 104 | |||
| 105 | FILES_${PN}-dbg += "\ | ||
| 106 | ${OPENSSL_PREFIX}${base_libdir}/ssl/engines/.debug \ | ||
| 107 | ${OPENSSL_PREFIX}${base_libdir}/engines/.debug \ | ||
| 108 | ${OPENSSL_PREFIX}${base_libdir}/.debug \ | ||
| 109 | ${OPENSSL_PREFIX}/bin/.debug \ | ||
| 110 | " | ||
| 111 | |||
| 112 | FILES_${PN}-dev = "${OPENSSL_PREFIX}/include" | ||
| 113 | |||
| 114 | FILES_${PN}-staticdev += "${OPENSSL_PREFIX}${base_libdir}/*.a" | ||
| 115 | |||
| 116 | FILES_${PN} =+ "\ | ||
| 117 | ${bindir} \ | ||
| 118 | ${sysconfdir}/openssl_conf \ | ||
| 119 | ${OPENSSL_PREFIX}/bin \ | ||
| 120 | ${OPENSSL_PREFIX}${base_libdir} \ | ||
| 121 | ${OPENSSL_PREFIX}${base_libdir}/ssl \ | ||
| 122 | ${OPENSSL_PREFIX}${base_libdir}/ssl/openssl.cnf \ | ||
| 123 | " | ||
| 124 | |||
| 125 | COMPATIBLE_MACHINE = "null" | ||
