Signed-off-by: Yongxin Liu <[email protected]> --- .../qatzip/files/remove-rpath.patch | 31 ++++++++++++++ recipes-extended/qatzip/qatzip_git.bb | 42 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 recipes-extended/qatzip/files/remove-rpath.patch create mode 100644 recipes-extended/qatzip/qatzip_git.bb
diff --git a/recipes-extended/qatzip/files/remove-rpath.patch b/recipes-extended/qatzip/files/remove-rpath.patch new file mode 100644 index 0000000..c6d816f --- /dev/null +++ b/recipes-extended/qatzip/files/remove-rpath.patch @@ -0,0 +1,31 @@ +From 8e24408b8b8de6b35f60a489104eb65b635d23ad Mon Sep 17 00:00:00 2001 +From: Yongxin Liu <[email protected]> +Date: Sun, 5 Jun 2022 16:05:43 +0800 +Subject: [PATCH] remove rpath + +The libraries of QAT have been installed to stardard search path, +thus there is no need to hard code the path to executable files. + +Upstream-Status: Inappropriate [Yocto specific] + +Signed-off-by: Yongxin Liu <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index e8f3922..2b2ecdb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -130,7 +130,7 @@ AS_IF([test ! -e ${ICP_ROOT}/quickassist/include/cpa.h || + -I${ICP_ROOT}/quickassist/include/dc/ \ + -I${ICP_ROOT}/quickassist/utilities/libusdm_drv/ \ + -I${ICP_ROOT}/quickassist/lookaside/access_layer/include/ " +- ICP_LDFLAGS=" -Wl,-rpath,${ICP_ROOT}/build/ -L${ICP_ROOT}/build/" ++ ICP_LDFLAGS=" -L${ICP_ROOT}/build/" + QAT_HEADER=1 + ] + ) +-- +2.34.1 + diff --git a/recipes-extended/qatzip/qatzip_git.bb b/recipes-extended/qatzip/qatzip_git.bb new file mode 100644 index 0000000..e943c82 --- /dev/null +++ b/recipes-extended/qatzip/qatzip_git.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "QATzip is a user space library built on top of the Intel QAT user space library, \ +to offload the compression and decompression requests to the Intel Chipset Series." + +HOMEPAGE = "https://github.com/intel/QATzip" + +LICENSE = "BSD-3-Clause & GPL-2.0-only" +LIC_FILES_CHKSUM = "\ + file://LICENSE;md5=e499c81a76f6663c808889cc77414866 \ + file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6 \ +" +SRC_URI = "git://github.com/intel/QATzip;protocol=https;branch=master \ + file://remove-rpath.patch \ +" + +SRCREV = "ba2eae63a4d1a165c9d303737b9e14f1ea7f3ce7" + +DEPENDS += "qat17" + +PV = "1.0.8+git${SRCPV}" + +export ICP_ROOT = "${STAGING_DIR_TARGET}/opt/intel/QAT" +export QZ_ROOT = "${S}" + +COMPATIBLE_MACHINE = "null" + +inherit autotools-brokensep + +S = "${WORKDIR}/git" + +do_configure:prepend() { + cd ${S} + ./autogen.sh +} + +do_compile() { + oe_runmake all +} + +do_install:append() { + install -d ${D}${sysconfdir}/QATzip/conf_file + cp -r ${S}/config_file/* ${D}${sysconfdir}/QATzip/conf_file +} -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#7559): https://lists.yoctoproject.org/g/meta-intel/message/7559 Mute This Topic: https://lists.yoctoproject.org/mt/91720720/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
