Skip to contentSkip to conversation

meta-crystalforest: Add zlib qat mem module.

PATCH New [email protected] 1 participant 3 messages Oct 16, 2012

lore
Share & tools
lore
#0 lore raw

cover meta-crystalforest: Add zlib qat mem module.

From: Kishore Bodke <[email protected]>

Hi,

This patch set adds a new recipe for Intel Quick Assist Technology Memory Management Module based on Zlib and include it to the custom build Image recipe to build them.

Please pull into meta-intel/master.

Thanks
Kishore.

The following changes since commit 5164713bfbef16e1a49bc599ec0d738df52ab254:

meta-crystalforest: Update SRCREV for meta. (2012-10-15 14:38:40 -0500)

are available in the git repository at:

git://git.pokylinux.org/meta-intel-contrib Kishore/Zlib-qat_mem
http://git.pokylinux.org/cgit.cgi/meta-intel-contrib/log/?h=Kishore/Zlib-qat_mem

Kishore Bodke (2):
meta-intel/common: Add a new recipe for Zlib qat_mem Module.
meta-crystalforest: Add zlib-qat-module to the Image.

 .../zlib-qat-module/zlib-qat-module.bb             |   65 ++++++++++++++++++++
 .../zlib-qat-module/zlib_qat_module.patch          |   43 +++++++++++++
 .../recipes-qat-image/images/core-image-qat-sdk.bb |    1 +
 .../recipes-qat-image/images/core-image-qat.bb     |    1 +
 4 files changed, 110 insertions(+)
 create mode 100644 common/recipes-core/zlib-qat-module/zlib-qat-module.bb
 create mode 100644 common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 meta-intel/common: Add a new recipe for Zlib qat_mem Module.

From: Kishore Bodke <[email protected]>

This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.

---
 .../zlib-qat-module/zlib-qat-module.bb             |   65 ++++++++++++++++++++
 .../zlib-qat-module/zlib_qat_module.patch          |   43 +++++++++++++
 2 files changed, 108 insertions(+)
 create mode 100644 common/recipes-core/zlib-qat-module/zlib-qat-module.bb
 create mode 100644 common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +65 -0
new file mode 100644
index 0000000..63eff03
@@ -0,0 +1,65 @@
+SUMMARY = "Zlib QAT_MEM Memory Management Module for Intel Quick Assist Technology"
+DESCRIPTION = "This software acelerates the data compression algorithm in the zlib \
+		software library via the Intel QuickAssist Technology implemented on \
+		Intel Communications Chipset 89xx Series based platforms."
+
+HOMEPAGE = "http://zlib.net/"
+SECTION = "libs"
+LICENSE = "Zlib & GPLv2 & BSD"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e66a9 \
+			file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+			file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb \
+			"
+
+PV = "1.2.7"
+ZLIB_QAT_VERSION = "0.4.0-011"
+
+PR="r0"
+
+SRC_URI = " \
+		http://www.zlib.net/zlib-${PV}.tar.gz;name=zlib \
+		http://downloadmirror.intel.com/20294/eng/zlib-1.2.7-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
+		file://zlib_qat_module.patch \
+		"
+
+SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"
+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530b1595eed466e1be9b7e26c5"
+
+SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059143326bb4c396645ae37b704a6"
+
+TARGET_CFLAGS += "-I ${S}/contrib/qat/ -I ${S}"
+
+S = "${WORKDIR}/zlib-${PV}/contrib/qat/qat_mem"
+
+inherit module
+
+export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}"
+
+do_patch() 	{
+
+	cd ${WORKDIR}/zlib-${PV}
+	patch -p0  < ${WORKDIR}/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.patch
+
+	cd ${WORKDIR}
+	patch -p1   < ${WORKDIR}/zlib_qat_module.patch
+}
+
+do_compile()    {
+
+	cd ${S}
+	oe_runmake KERNEL_CC="${KERNEL_CC}"
+
+}
+
+do_install_append()     {
+
+	install -m 0755 -d      ${D}${bindir}
+	install -m 0755 ${S}/qat_mem_test       ${D}${bindir}
+
+}
+
+FILES_${PN} += " \
+                ${bindir}/qat_mem_test \
+                "
common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 meta-crystalforest: Add zlib-qat-module to the Image.

From: Kishore Bodke <[email protected]>

This adds the zlib-qat-module to build with the custom Image.

---
 .../recipes-qat-image/images/core-image-qat-sdk.bb |    1 +
 .../recipes-qat-image/images/core-image-qat.bb     |    1 +
 2 files changed, 2 insertions(+)
meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb +1 -0
index 27feb0d..689377f 100644
@@ -9,6 +9,7 @@ IMAGE_INSTALL += " \
 		calgary-corpus \
 		canterbury-corpus \
 		silesia-corpus \
+		zlib-qat-module \
 		"
 
 LICENSE = "MIT"
meta-crystalforest/recipes-qat-image/images/core-image-qat.bb +1 -0
index 7c61ec6..8b5e0f6 100644
@@ -9,6 +9,7 @@ IMAGE_INSTALL += " \
 		calgary-corpus \
 		canterbury-corpus \
 		silesia-corpus \
+		zlib-qat-module \
 		"
 
 LICENSE = "MIT"
Signature · 1 line
1.7.9.5