Add zlib and openssl qat_mem module
cover Add zlib and openssl qat_mem module
From: Kishore Bodke <[email protected]>
Hi,
This is a revised patchset to add two new recipes for zlib and openssl based Memory Management Module implemented in the Intel Quick Assist Technology.
Please pull them into meta-intel/master.
Thanks
Kishore.
The following changes since commit 8341ed1b28a91b184547e62449ecbedabffa1ab3:
ffmpeg: set LICENSE_FLAGS (2012-10-17 16:05:08 -0500)
are available in the git repository at:
git://git.pokylinux.org/meta-intel-contrib Kishore/CRF-qat_mem
http://git.pokylinux.org/cgit.cgi/meta-intel-contrib/log/?h=Kishore/CRF-qat_mem
Kishore Bodke (3):
meta-intel/common: Add a new recipe for Zlib qat_mem Module. meta-intel/common: Add new recipe for libcrypto module.
meta-crystalforest: Add zlib-qat and openssl-qat module.
.../openssl-qat-module/openssl-qat-module.bb | 54 ++++++++++++++++++++ .../openssl-qat-module/openssl_qat_module.patch | 43 ++++++++++++++++ .../zlib-qat-module/zlib-qat-module.bb | 52 +++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43 ++++++++++++++++ .../recipes-qat-image/images/core-image-qat-sdk.bb | 2 + .../recipes-qat-image/images/core-image-qat.bb | 2 + 6 files changed, 196 insertions(+) create mode 100644 common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb create mode 100644 common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch 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
PATCH 1/3 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 | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 95 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 +52 -0
@@ -0,0 +1,52 @@ +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-${PV}-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" + +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
PATCH 2/3 meta-intel/common: Add new recipe for libcrypto module.
From: Kishore Bodke <[email protected]>
This adds a new recipe to include the Intel Quick Assist Technology libcrypto Memory Management Module.
--- .../openssl-qat-module/openssl-qat-module.bb | 54 ++++++++++++++++++++ .../openssl-qat-module/openssl_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb create mode 100644 common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb new file +54 -0
@@ -0,0 +1,54 @@ +SUMMARY = "libcrypto* (OpenSSL*) QAT_MEM Memory Management Module \ +for Intel Quick Assist Technology" +DESCRIPTION = "This software adds an engine that accelerates some of \ +the libcrypto algorithms via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series based platforms." + +HOMEPAGE = "http://www.openssl.org/" +SECTION = "libs/network" + +LICENSE = "openssl" +LIC_FILES_CHKSUM = "file://${WORKDIR}/openssl-${PV}/LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" + +PV = "1.0.1" +PR = "r0" + +OPENSSL_QAT_VERSION = "0.4.0-012" + +SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=openssl \ + http://downloadmirror.intel.com/19368/eng/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.tar.gz;name=libcrypto \ + file://openssl_qat_module.patch" + +SRC_URI[openssl.md5sum]="134f168bc2a8333f19f81d684841710b" +SRC_URI[openssl.sha256sum]="4d9f0a594a9a89b28e1a04a9504c04104f6508ee27ad1e0efdd17a7a6dbbeeee" + +SRC_URI[libcrypto.md5sum] = "e4e131fa56d3aa1a52b5bdb9f8fe5a69" +SRC_URI[libcrypto.sha256sum] = "19a80ae6e78548934295d312148e4254c18dabd25e2fd72de5796d8ac15b1cfb" + +S = "${WORKDIR}/openssl-${PV}/engines/qat_engine/qat_mem" + +export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" +inherit module + +do_patch() { + cd ${WORKDIR}/openssl-${PV} + patch -p2 < ${WORKDIR}/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.patch + + cd ${WORKDIR} + patch -p1 <${WORKDIR}/openssl_qat_module.patch +} + +do_compile() { + cd ${S} + oe_runmake KERNEL_CC="${KERNEL_CC}" +} + +do_install_append() { + install -m 0755 -d ${D}${bindir} \ + ${D}${includedir}/engines/qat_engine/qat_mem + + install -m 0755 ${S}/qat_mem_test ${D}${bindir} + install -m 0750 ${S}/*.h ${D}${includedir}/engines/qat_engine/qat_mem/ +} + +FILES_${PN} += "${bindir}/qat_mem_test"
common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Re: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
Hi Kishore,
Will this recipe is being used for multiple BSPs? If not then it can go in the BSP specific layer.
Thanks,
Nitin
Quoted 166 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.From: Kishore Bodke <[email protected]>
This adds a new recipe to include the Intel Quick Assist Technology libcrypto Memory Management Module.
Signed-off-by Kishore Bodke <[email protected]>--- .../openssl-qat-module/openssl-qat-module.bb | 54 ++++++++++++++++++++ .../openssl-qat-module/openssl_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 common/recipes-connectivity/openssl-qat- module/openssl-qat-module.bb create mode 100644 common/recipes-connectivity/openssl-qat-
module/openssl-qat-module/openssl_qat_module.patch(quoted diff) +0
-0module.bb b/common/recipes-connectivity/openssl-qat-module/openssl- qat-module.bb
new file mode 100644
index 0000000..a4fe3c5common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +0
-0module.
+++ bbcommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +1
-0@@ -0,0 +1,54 @@ +SUMMARY = "libcrypto* (OpenSSL*) QAT_MEM Memory ManagementModule \ for
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +4
-0+Intel Quick Assist Technology" +DESCRIPTION = "This software adds an engine that accelerates some of \ +the libcrypto algorithms via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +6
-0+ +HOMEPAGE = "http://www.openssl.org/" +SECTION = "libs/network" + +LICENSE = "openssl" +LIC_FILES_CHKSUM = "file://${WORKDIR}/openssl-${PV}/LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +7
-0+ +PV = "1.0.1" +PR = "r0" + +OPENSSL_QAT_VERSION = "0.4.0-012" + +SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=openssl \
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +1
-0+ http://downloadmirror.intel.com/19368/eng/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.tar.gz;name=libcrypto \
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +4
-0+ file://openssl_qat_module.patch" + +SRC_URI[openssl.md5sum]="134f168bc2a8333f19f81d684841710b" +SRC_URI[openssl.sha256sum]="4d9f0a594a9a89b28e1a04a9504c04104f6508
ee27ad1e0efdd17a7a6dbbeeee"common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +3
-0+ +SRC_URI[libcrypto.md5sum] = "e4e131fa56d3aa1a52b5bdb9f8fe5a69" +SRC_URI[libcrypto.sha256sum] ="
19a80ae6e78548934295d312148e4254c18dabd25e2fd72de5796d8ac15b1cfb"common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +10
-0+ +S = "${WORKDIR}/openssl-${PV}/engines/qat_engine/qat_mem" + +export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" +inherit module + +do_patch() { + cd ${WORKDIR}/openssl-${PV} + patch -p2 < +${WORKDIR}/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.patch
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +16
-0+ + cd ${WORKDIR} + patch -p1 <${WORKDIR}/openssl_qat_module.patch +} + +do_compile() { + cd ${S} + oe_runmake KERNEL_CC="${KERNEL_CC}" +} + +do_install_append() { + install -m 0755 -d ${D}${bindir} \ + ${D}${includedir}/engines/qat_engine/qat_mem + + install -m 0755 ${S}/qat_mem_test ${D}${bindir} + install -m 0750 ${S}/*.h${D}${includedir}/engines/qat_engine/qat_mem/
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +3
-0+} + +FILES_${PN} += "${bindir}/qat_mem_test"(quoted diff) +0
-0
module/openssl_qat_module.patchb/common/recipes-
connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
new file mode 100644
index 0000000..dfed3c0common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +0
-0module/
+++ openssl_qat_module.patchcommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +2
-0@@ -0,0 +1,43 @@ +Index: +openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/Ma
+kefile
+=========================================================
==========
+--- openssl-qat-module-1.0.1-r0.orig/openssl-
1.0.1/engines/qat_engine/qat_mem/Makefile 2012-10-17
13:31:27.932376960 -0700
++++ openssl-qat-module-1.0.1-r0/openssl-
1.0.1/engines/qat_engine/qat_mem/Makefile 2012-10-17
13:35:40.396389410 -0700
+@@ -9,13 +9,9 @@
+ MODULENAME :=qat_mem
+ ### should not need to change stuff below ###################### ++- +-KDIR := /lib/modules/$(shell uname -r)/build +-#KDIR := /exports/linux-2.6.12.2/ ++KDIR := $(KERNEL_SOURCE_ROOT) + PWD := $(shell pwd) +- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -23,20 +19,15 @@
+ elsecommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +20
-0+ obj-m := $(MODULENAME).o + endif +- + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test.sh +- + clean: + rm -f *.o *.ko Modules.symvers *.mod.c .*.cmd$(MODULENAME)_test
+-
--
1.7.9.5
Re: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
Quoted 9 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:25 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
Quoted 4 lines
Hi Kishore,
Will this recipe is being used for multiple BSPs? If not then it can go in the
BSP specific layer.
Hi Nitin,
Yes, these will be used by both Crystal Forest and Rangely. So I put them in common.
Thanks
Kishore.
Quoted 171 lines
Thanks,
NitinQuoted 60 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.From: Kishore Bodke <[email protected]>
This adds a new recipe to include the Intel Quick Assist Technology libcrypto Memory Management Module.
Signed-off-by Kishore Bodke <[email protected]>--- .../openssl-qat-module/openssl-qat-module.bb | 54 ++++++++++++++++++++ .../openssl-qat-module/openssl_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 common/recipes-connectivity/openssl-qat- module/openssl-qat-module.bb create mode 100644 common/recipes-connectivity/openssl-qat-
module/openssl-qat-module/openssl_qat_module.patch(quoted diff) +0
-0module.bb b/common/recipes-connectivity/openssl-qat-module/openssl- qat-module.bb
new file mode 100644
index 0000000..a4fe3c5common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +0
-0module.
+++ bbcommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +1
-0@@ -0,0 +1,54 @@ +SUMMARY = "libcrypto* (OpenSSL*) QAT_MEM Memory ManagementModule \ for
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +4
-0+Intel Quick Assist Technology" +DESCRIPTION = "This software adds an engine that accelerates some of \ +the libcrypto algorithms via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +6
-0+ +HOMEPAGE = "http://www.openssl.org/" +SECTION = "libs/network" + +LICENSE = "openssl" +LIC_FILES_CHKSUM = "file://${WORKDIR}/openssl-${PV}/LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +7
-0+ +PV = "1.0.1" +PR = "r0" + +OPENSSL_QAT_VERSION = "0.4.0-012" + +SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=openssl \
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +1
-0+ http://downloadmirror.intel.com/19368/eng/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.tar.gz;name=libcrypto \
common/recipes-connectivity/openssl-qat-module/openssl-qat-
Quoted 3 lines
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +3
-0+ file://openssl_qat_module.patch" + +SRC_URI[openssl.md5sum]="134f168bc2a8333f19f81d684841710b"+SRC_URI[openssl.sha256sum]="4d9f0a594a9a89b28e1a04a9504c04104f6508
common/recipes-connectivity/openssl-qat-module/openssl-qat-
Quoted 5 lines
ee27ad1e0efdd17a7a6dbbeeee"common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +3
-0+ +SRC_URI[libcrypto.md5sum] = "e4e131fa56d3aa1a52b5bdb9f8fe5a69" +SRC_URI[libcrypto.sha256sum] ="
19a80ae6e78548934295d312148e4254c18dabd25e2fd72de5796d8ac15b1cfb"Quoted 98 lines
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +10
-0+ +S = "${WORKDIR}/openssl-${PV}/engines/qat_engine/qat_mem" + +export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" +inherit module + +do_patch() { + cd ${WORKDIR}/openssl-${PV} + patch -p2 < +${WORKDIR}/libcrypto-openssl-${PV}-qat.L.${OPENSSL_QAT_VERSION}.patch
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +16
-0+ + cd ${WORKDIR} + patch -p1 <${WORKDIR}/openssl_qat_module.patch +} + +do_compile() { + cd ${S} + oe_runmake KERNEL_CC="${KERNEL_CC}" +} + +do_install_append() { + install -m 0755 -d ${D}${bindir} \ + ${D}${includedir}/engines/qat_engine/qat_mem + + install -m 0755 ${S}/qat_mem_test ${D}${bindir} + install -m 0750 ${S}/*.h${D}${includedir}/engines/qat_engine/qat_mem/
common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +3
-0+} + +FILES_${PN} += "${bindir}/qat_mem_test"(quoted diff) +0
-0
module/openssl_qat_module.patchb/common/recipes-
connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
new file mode 100644
index 0000000..dfed3c0common/recipes-connectivity/openssl-qat-module/openssl-qat- new file +0
-0module/
+++ openssl_qat_module.patchcommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +2
-0@@ -0,0 +1,43 @@ +Index: +openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/Ma
+kefile
+=========================================================
==========
+--- openssl-qat-module-1.0.1-r0.orig/openssl-
1.0.1/engines/qat_engine/qat_mem/Makefile 2012-10-17
13:31:27.932376960 -0700
++++ openssl-qat-module-1.0.1-r0/openssl-
1.0.1/engines/qat_engine/qat_mem/Makefile 2012-10-17
13:35:40.396389410 -0700
+@@ -9,13 +9,9 @@
+ MODULENAME :=qat_mem
+ ### should not need to change stuff below ###################### ++- +-KDIR := /lib/modules/$(shell uname -r)/build +-#KDIR := /exports/linux-2.6.12.2/ ++KDIR := $(KERNEL_SOURCE_ROOT) + PWD := $(shell pwd) +- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -23,20 +19,15 @@
+ elsecommon/recipes-connectivity/openssl-qat-module/openssl-qat- new file +20
-0+ obj-m := $(MODULENAME).o + endif +- + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test.sh +- + clean: + rm -f *.o *.ko Modules.symvers *.mod.c .*.cmd$(MODULENAME)_test
+-
--
1.7.9.5
PATCH 3/3 meta-crystalforest: Add zlib-qat and openssl-qat module.
In reply to [email protected]From: Kishore Bodke <[email protected]>
This adds the two new modules zlib-qat-mem and openssl-qat-mem modules to build with the custom Image.
--- .../recipes-qat-image/images/core-image-qat-sdk.bb | 2 ++ .../recipes-qat-image/images/core-image-qat.bb | 2 ++ 2 files changed, 4 insertions(+)
meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb +2 -0
@@ -9,6 +9,8 @@ IMAGE_INSTALL += " \ calgary-corpus \ canterbury-corpus \ silesia-corpus \ + zlib-qat-module \ + openssl-qat-module \ " LICENSE = "MIT"
meta-crystalforest/recipes-qat-image/images/core-image-qat.bb +2 -0
@@ -9,6 +9,8 @@ IMAGE_INSTALL += " \ calgary-corpus \ canterbury-corpus \ silesia-corpus \ + zlib-qat-module \ + openssl-qat-module \ " LICENSE = "MIT"
Signature · 1 line
1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
In reply to [email protected]Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go in the BSP specific layer.
Thanks,
Nitin
Quoted 158 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 95 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.patchcommon/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for Intel QuickAssist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+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 basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6 6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +7
-0+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-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85" +SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4" +SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644
index 0000000..a30f8b0common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile +===================================================================
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile2012-10-16 13:53:10.258938722 -0700 ++++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #common/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0+ +#######################################################################
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +22
-1+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd +$(MODULENAME)_test +- --1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 9 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.
Quoted 4 lines
Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go in the BSP
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.
Quoted 163 lines
Thanks,
NitinQuoted 65 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 95 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.patchcommon/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for Intel QuickAssist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+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 basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6 6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +7
-0+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-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85" +SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 2 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
Quoted 91 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644
index 0000000..a30f8b0common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile +===================================================================
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile2012-10-16 13:53:10.258938722 -0700 ++++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #common/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0+ +#######################################################################
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +22
-1+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd +$(MODULENAME)_test +- --1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Hi Kishore,
I've built these and they look ok as far as that goes.
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Tom
Quoted 181 lines · Kishore K
Quoted 8 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.Quoted 4 lines
Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go in the BSP
specific layer.Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 163 lines
Thanks,
NitinQuoted 65 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43 ++++++++++++++++ 2 files changed, 95 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.patchcommon/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for Intel QuickAssist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+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 basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6 6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +7
-0+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-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85" +SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 2 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
Quoted 91 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644
index 0000000..a30f8b0common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile +===================================================================
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile2012-10-16 13:53:10.258938722 -0700 ++++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #common/recipes-core/zlib-qat-module/zlib-qat- new file +2
-0+ +#######################################################################
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +22
-1+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd +$(MODULENAME)_test +- --1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 10 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:35 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.
Quoted 7 lines
Hi Kishore,
I've built these and they look ok as far as that goes.
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Hi Tom,
I have tested them for 3.4 Kernel for Yocto, since for Crystal Forest we only have 3.4 for now. Apart from that, it should work with all the kernel versions.
I have tested 3.0 and 3.5 on Fedora.
Thanks
Kishore.
Quoted 199 lines
Tom
Quoted 6 lines · Kishore K
Quoted 6 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 4 lines
Quoted 4 lines
for Zlib
qat_memModule.Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go in theBSP
Quoted 17 lines
Quoted 2 lines
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 10 lines
Thanks,
NitinQuoted 6 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipefor
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Zlib
qat_memModule.From: Kishore Bodke <[email protected]>
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43++++++++++++++++
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2 files changed, 95 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.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 1
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for IntelQuick
Quoted 3 lines
Quoted 3 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 3 lines
Assist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+Technology" +DESCRIPTION="This software acelerates the data compressionalgorithm \
Quoted 10 lines
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+in the zlib software library via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+PV = "1.2.7" +ZLIB_QAT_VERSION = "0.4.0-011" + +PR="r0"Quoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 23
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ +SRC_URI = "http://www.zlib.net/zlib-${PV}.tar.gz;name=zlib \ + http://downloadmirror.intel.com/20294/eng/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
Quoted 36 lines
Quoted 4 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 4 lines
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
Quoted 30 lines
Quoted 30 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat- line 1
Quoted 8 lines
new file mode 100644
index 0000000..a30f8b0common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +1
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 1 line
Quoted 1 line
Quoted 1 line
+=========================================================
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
==========
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
2012-10-16 13:53:10.258938722 -0700 ++++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #
++#########################################################
Quoted 43 lines
Quoted 42 lines
Quoted 42 lines
##############
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +22
-1+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd +$(MODULENAME)_test +- --1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 17 lines · Kishore K
Quoted 9 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:35 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.Quoted 7 lines
Hi Kishore,
I've built these and they look ok as far as that goes.
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Quoted 6 lines
Hi Tom,
I have tested them for 3.4 Kernel for Yocto, since for Crystal Forest we only have 3.4 for now. Apart from that, it should work with all the kernel versions.
I have tested 3.0 and 3.5 on Fedora.
OK, for something in common, we have to think about someone using them with any yocto kernel, not just 3.4. Since you're saying they work with 3.0, 3.4 and 3.5, I guess there's not too much risk that they'll break with 3.2. If that's not the case, you should probably restrict them to your BSP (but we don't want multiple copies) either.
The best thing would be to move them into the linux-yocto kernel(s) they have been tested with - that way users know those features work and are safe to use in their BSPs.
Tom
Quoted 203 lines
Thanks
Kishore.Quoted 199 lines
Tom
Quoted 6 lines · Kishore K
Quoted 6 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 4 lines
Quoted 4 lines
for Zlib
qat_memModule.Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go in theBSP
Quoted 17 lines
Quoted 2 lines
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 10 lines
Thanks,
NitinQuoted 6 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipefor
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Zlib
qat_memModule.From: Kishore Bodke <[email protected]>
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
This adds a new recipe to build the Intel Quick Assist Technology Memory Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43++++++++++++++++
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2 files changed, 95 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.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 1
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for IntelQuick
Quoted 3 lines
Quoted 3 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 3 lines
Assist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+Technology" +DESCRIPTION="This software acelerates the data compressionalgorithm \
Quoted 10 lines
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+in the zlib software library via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +4
-0+PV = "1.2.7" +ZLIB_QAT_VERSION = "0.4.0-011" + +PR="r0"Quoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 23
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ +SRC_URI = "http://www.zlib.net/zlib-${PV}.tar.gz;name=zlib \ + http://downloadmirror.intel.com/20294/eng/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
Quoted 36 lines
Quoted 4 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 4 lines
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
Quoted 30 lines
Quoted 30 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat- line 1
Quoted 8 lines
new file mode 100644
index 0000000..a30f8b0common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +1
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 1 line
Quoted 1 line
Quoted 1 line
+=========================================================
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
==========
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
2012-10-16 13:53:10.258938722 -0700 ++++ zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile 2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #
++#########################################################
Quoted 43 lines
Quoted 42 lines
Quoted 42 lines
##############
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +22
-1+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c .*.cmd +$(MODULENAME)_test +- --1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 43 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:49 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.Quoted 7 lines · Kishore K
Quoted 7 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:35 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for Zlib
qat_memModule.Hi Kishore,
I've built these and they look ok as far as that goes.
Quoted 7 lines
Quoted 3 lines
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Hi Tom,
I have tested them for 3.4 Kernel for Yocto, since for Crystal Forest we only
have 3.4 for now.
Quoted 3 lines
Apart from that, it should work with all the kernel versions. I have tested 3.0 and 3.5 on Fedora.
OK, for something in common, we have to think about someone using them with any yocto kernel, not just 3.4. Since you're saying they work with 3.0, 3.4 and 3.5, I guess there's not too much risk that they'll break with 3.2. If that's not the case, you should probably restrict them to your BSP (but we don't want multiple copies) either.
Quoted 4 lines
The best thing would be to move them into the linux-yocto kernel(s) they have been tested with - that way users know those features work and are safe to use in their BSPs.
These modules just need the configured kernel for them to build with. It is not specific to particular kernel version.
Also, every time the Kernel version moves, this whole set needs to be moved too. Instead have it in the BSP and we do not have to run around moving around with the different kernels. Instead it is nice to have one copy in common.
Thanks
Kishore.
Quoted 218 lines
Tom
Quoted 18 lines
Thanks
Kishore.Quoted 15 lines
Tom
Quoted 6 lines · Kishore K
Quoted 6 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 4 lines
Quoted 4 lines
for Zlib
qat_memModule.Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go inthe
Quoted 12 lines
Quoted 12 lines
BSP
Quoted 11 lines
Quoted 2 lines
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 4 lines
Thanks,
NitinQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Zlib
qat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology
Memory
Quoted 39 lines
Quoted 27 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43++++++++++++++++
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2 files changed, 95 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.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 1
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for IntelQuick
Quoted 3 lines
Quoted 3 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 3 lines
Assist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+Technology" +DESCRIPTION="This software acelerates the data compressionalgorithm \
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+in the zlib software library via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+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 \Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 23
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ http://downloadmirror.intel.com/20294/eng/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 4 lines
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
59
Quoted 41 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
common/recipes-core/zlib-qat-module/zlib-qat- line 1
Quoted 7 lines
index 0000000..a30f8b0
common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +1
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 6 lines
+=========================================================
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
==========
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2012-10-16 13:53:10.258938722 -0700++++ zlib-qat-module-1.2.7-r0/zlib-
1.2.7/contrib/qat/qat_mem/Makefile
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #
+Quoted 39 lines
+#########################################################
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
##############
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +20
-0+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c.*.cmd
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
+$(MODULENAME)_test
+-
--
1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 47 lines · Kishore K
Quoted 42 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:49 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.Quoted 7 lines · Kishore K
Quoted 7 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:35 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for Zlib
qat_memModule.Hi Kishore,
I've built these and they look ok as far as that goes.
Quoted 7 lines
Quoted 3 lines
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Hi Tom,
I have tested them for 3.4 Kernel for Yocto, since for Crystal Forest we only
have 3.4 for now.
Quoted 3 lines
Apart from that, it should work with all the kernel versions. I have tested 3.0 and 3.5 on Fedora.
OK, for something in common, we have to think about someone using them with any yocto kernel, not just 3.4. Since you're saying they work with 3.0, 3.4 and 3.5, I guess there's not too much risk that they'll break with 3.2. If that's not the case, you should probably restrict them to your BSP (but we don't want multiple copies) either.
Quoted 4 lines
The best thing would be to move them into the linux-yocto kernel(s) they have been tested with - that way users know those features work and are safe to use in their BSPs.
Quoted 7 lines
These modules just need the configured kernel for them to build with. It is not specific to particular kernel version.
Also, every time the Kernel version moves, this whole set needs to be moved too. Instead have it in the BSP and we do not have to run around moving around with the different kernels. Instead it is nice to have one copy in common.
Hmm, I'm not able to build them with linux-yocto-3.2:
[trz@empanada build]$ bitbake core-image-qat
Loading cache: 100% |######################################################################################| ETA: 00:00:00 Loaded 1156 entries from dependency cache.
Build Configuration:
BB_VERSION = "1.16.0" TARGET_ARCH = "x86_64" TARGET_OS = "linux" MACHINE = "crystalforest-shumway" DISTRO = "poky" DISTRO_VERSION = "1.3" TUNE_FEATURES = "m64" TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp = "danny0:4cce3e4abab65116ca968174e59a049438ec7385"
meta-intel
meta-crystalforest = "master0:c94e89507fbab050efa2e326ec92e63fb9dc07a6"
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel configuration
WARNING: Can't find any BSP hardware or required configuration fragments.
WARNING: Looked at meta/cfg/standard/crystalforest/hdw_frags.txt and meta/cfg/standard/crystalforest/required_frags.txt in directory: meta/cfg/standard/crystalforest
WARNING: QA Issue: Architecture did not match (62 to 2) on /work/x86_64-poky-linux/canterbury-corpus-1.0-r0/packages-split/canterbury-corpus/lib/firmware/sum
ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389 for further information)
ERROR: Logfile of failure stored in: /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389 Log data follows:
| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -e MAKEFLAGS= KERNEL_CC=x86_64-poky-linux-gcc | x86_64-poky-linux-gcc -m64 --sysroot=/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway -g -o qat_mem_test qat_mem_test.c | make -C /home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel SUBDIRS=/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem modules | make[1]: Entering directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | CC [M] /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.o | Building modules, stage 2. | MODPOST 1 modules | CC /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.o | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: error: unknown field 'name' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: error: unknown field 'init' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: error: unknown field 'arch' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default] | make[2]: *** [/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.o] Error 1 | make[1]: *** [modules] Error 2 | make[1]: Leaving directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389 for further information)
ERROR: Task 393 (/home/trz/yocto/isg-test/meta-intel/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb, do_compile) failed with exit code '1'
ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691 for further information)
ERROR: Logfile of failure stored in: /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691 Log data follows:
| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -e MAKEFLAGS= KERNEL_CC=x86_64-poky-linux-gcc | x86_64-poky-linux-gcc -m64 --sysroot=/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway -g -o qat_mem_test qat_mem_test.c | make -C /home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel SUBDIRS=/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem modules | make[1]: Entering directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | CC [M] /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.o | Building modules, stage 2. | MODPOST 1 modules | CC /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.o | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: error: unknown field 'name' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: error: unknown field 'init' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: error: unknown field 'arch' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default] | make[2]: *** [/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.o] Error 1 | make[1]: *** [modules] Error 2 | make[1]: Leaving directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691 for further information)
ERROR: Task 380 (/home/trz/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb, do_compile) failed with exit code '1'
ERROR: QA Issue: Architecture did not match (62 to 3) on /work/crystalforest_shumway-poky-linux/linux-yocto-3.2.18+git1+486f7aec824b4127e91ef53228823e996b3696f0_1+34e3cd8b7a1d18594a63b7b299fce46e32a6c80c-r4.1/packages-split/kernel-vmlinux/boot/vmlinux-3.2.18-yocto-standard
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/linux-yocto-3.2.18+git1+486f7aec824b4127e91ef53228823e996b3696f0_1+34e3cd8b7a1d18594a63b7b299fce46e32a6c80c-r4.1/temp/log.do_package.8684
ERROR: Task 1019 (/home/trz/yocto/isg-test/meta/recipes-kernel/linux/linux-yocto_3.2.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3903 tasks of which 346 didn't need to be rerun and 3 failed.
Waiting for 0 running tasks to finish:
Summary: 3 tasks failed:
/home/trz/yocto/isg-test/meta-intel/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb, do_compile /home/trz/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb, do_compile /home/trz/yocto/isg-test/meta/recipes-kernel/linux/linux-yocto_3.2.bb, do_package
Summary: There was 1 WARNING message shown.
Summary: There were 5 ERROR messages shown, returning a non-zero exit code.
Can you please verify that these recipes will work with linux-yocto-3.2? So far I'm not seeing that they will.
Tom
Quoted 222 lines
Thanks
Kishore.Quoted 218 lines
Tom
Quoted 18 lines
Thanks
Kishore.Quoted 15 lines
Tom
Quoted 6 lines · Kishore K
Quoted 6 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 4 lines
Quoted 4 lines
for Zlib
qat_memModule.Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go inthe
Quoted 12 lines
Quoted 12 lines
BSP
Quoted 11 lines
Quoted 2 lines
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 4 lines
Thanks,
NitinQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Zlib
qat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology
Memory
Quoted 39 lines
Quoted 27 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43++++++++++++++++
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2 files changed, 95 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.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 1
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for IntelQuick
Quoted 3 lines
Quoted 3 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 3 lines
Assist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+Technology" +DESCRIPTION="This software acelerates the data compressionalgorithm \
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+in the zlib software library via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+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 \Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ http://downloadmirror.intel.com/20294/eng/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 4 lines
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
59
Quoted 41 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
common/recipes-core/zlib-qat-module/zlib-qat- line 1
Quoted 7 lines
index 0000000..a30f8b0
common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +1
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 6 lines
+=========================================================
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
==========
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2012-10-16 13:53:10.258938722 -0700++++ zlib-qat-module-1.2.7-r0/zlib-
1.2.7/contrib/qat/qat_mem/Makefile
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #
+Quoted 39 lines
+#########################################################
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
##############
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +20
-0+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c.*.cmd
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
+$(MODULENAME)_test
+-
--
1.7.9.5
Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
Quoted 51 lines · Tom Zanussi
Quoted 50 lines · Kishore K
Quoted 42 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:49 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlibqat_memModule.Quoted 7 lines · Kishore K
Quoted 7 lines
-----Original Message-----
From: Zanussi, Tom
Sent: Friday, October 19, 2012 11:35 AM
To: Bodke, Kishore K
Cc: Kamble, Nitin A; [email protected]
Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for Zlib
qat_memModule.Hi Kishore,
I've built these and they look ok as far as that goes.
Quoted 7 lines
Quoted 3 lines
But I'm wondering, which kernel did you test with and which kernel(s) are these modules designed for i.e. will they work with all the kernels supported for 1.3?
Hi Tom,
I have tested them for 3.4 Kernel for Yocto, since for Crystal Forest we only
have 3.4 for now.
Quoted 3 lines
Apart from that, it should work with all the kernel versions. I have tested 3.0 and 3.5 on Fedora.
OK, for something in common, we have to think about someone using them with any yocto kernel, not just 3.4. Since you're saying they work with 3.0, 3.4 and 3.5, I guess there's not too much risk that they'll break with 3.2. If that's not the case, you should probably restrict them to your BSP (but we don't want multiple copies) either.
Quoted 4 lines
The best thing would be to move them into the linux-yocto kernel(s) they have been tested with - that way users know those features work and are safe to use in their BSPs.
These modules just need the configured kernel for them to build with. It is not specific to particular kernel version.
Quoted 7 lines
Quoted 4 lines
Also, every time the Kernel version moves, this whole set needs to be moved too. Instead have it in the BSP and we do not have to run around moving around with the different kernels. Instead it is nice to have one copy in common.
Hmm, I'm not able to build them with linux-yocto-3.2:
OK, not sure what happened here, but as a test I tried building them for jasperforest using a 3.2 kernel and the modules built without problem.
So, pulled into meta-intel/master.
Tom
Quoted 330 lines
[trz@empanada build]$ bitbake core-image-qat
Loading cache: 100% |######################################################################################| ETA: 00:00:00 Loaded 1156 entries from dependency cache.Build Configuration:
BB_VERSION = "1.16.0" TARGET_ARCH = "x86_64" TARGET_OS = "linux" MACHINE = "crystalforest-shumway" DISTRO = "poky" DISTRO_VERSION = "1.3" TUNE_FEATURES = "m64" TARGET_FPU = ""meta
meta-yocto
meta-yocto-bsp = "danny0:4cce3e4abab65116ca968174e59a049438ec7385"
meta-intel
meta-crystalforest = "master0:c94e89507fbab050efa2e326ec92e63fb9dc07a6"NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel configuration
WARNING: Can't find any BSP hardware or required configuration fragments.
WARNING: Looked atmeta/cfg/standard/crystalforest/hdw_frags.txtandmeta/cfg/standard/crystalforest/required_frags.txtin directory: meta/cfg/standard/crystalforest
WARNING: QA Issue: Architecture did not match (62 to 2) on /work/x86_64-poky-linux/canterbury-corpus-1.0-r0/packages-split/canterbury-corpus/lib/firmware/sum
ERROR: Function failed:do_compile(see/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389for further information)
ERROR: Logfile of failure stored in:/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389Log data follows:| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -e MAKEFLAGS= KERNEL_CC=x86_64-poky-linux-gcc | x86_64-poky-linux-gcc -m64 --sysroot=/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway -g -o qat_mem_test qat_mem_test.c | make -C /home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel SUBDIRS=/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem modules | make[1]: Entering directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | CC [M] /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.o | Building modules, stage 2. | MODPOST 1 modules | CC /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.o | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: error: unknown field 'name' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: error: unknown field 'init' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: error: unknown field 'arch' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default] | make[2]: *** [/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/qat_mem.mod.o] Error 1 | make[1]: *** [modules] Error 2 | make[1]: Leaving directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/openssl-qat-module-1.0.1-r0/temp/log.do_compile.19389 for further information)ERROR: Task 393 (
/home/trz/yocto/isg-test/meta-intel/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb,do_compile) failed with exit code '1'
ERROR: Function failed:do_compile(see/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691for further information)
ERROR: Logfile of failure stored in:/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691Log data follows:| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -e MAKEFLAGS= KERNEL_CC=x86_64-poky-linux-gcc | x86_64-poky-linux-gcc -m64 --sysroot=/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway -g -o qat_mem_test qat_mem_test.c | make -C /home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel SUBDIRS=/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem modules | make[1]: Entering directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | CC [M] /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.o | Building modules, stage 2. | MODPOST 1 modules | CC /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.o | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: error: unknown field 'name' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: error: unknown field 'init' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: error: unknown field 'arch' specified in initializer | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: warning: excess elements in struct initializer [enabled by default] | /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default] | make[2]: *** [/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/qat_mem.mod.o] Error 1 | make[1]: *** [modules] Error 2 | make[1]: Leaving directory `/home/trz/yocto/isg-test/build/tmp/sysroots/crystalforest-shumway/usr/src/kernel' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/zlib-qat-module-1.2.7-r0/temp/log.do_compile.20691 for further information)ERROR: Task 380 (
/home/trz/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb,do_compile) failed with exit code '1'
ERROR: QA Issue: Architecture did not match (62 to 3) on /work/crystalforest_shumway-poky-linux/linux-yocto-3.2.18+git1+486f7aec824b4127e91ef53228823e996b3696f0_1+34e3cd8b7a1d18594a63b7b299fce46e32a6c80c-r4.1/packages-split/kernel-vmlinux/boot/vmlinux-3.2.18-yocto-standard
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed:do_package_qa
ERROR: Logfile of failure stored in:/home/trz/yocto/isg-test/build/tmp/work/crystalforest_shumway-poky-linux/linux-yocto-3.2.18+git1+486f7aec824b4127e91ef53228823e996b3696f0_1+34e3cd8b7a1d18594a63b7b299fce46e32a6c80c-r4.1/temp/log.do_package.8684
ERROR: Task 1019 (/home/trz/yocto/isg-test/meta/recipes-kernel/linux/linux-yocto_3.2.bb,do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3903 tasks of which 346 didn't need to be rerun and 3 failed.
Waiting for 0 running tasks to finish:Summary: 3 tasks failed:
/home/trz/yocto/isg-test/meta-intel/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb,do_compile/home/trz/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb,do_compile/home/trz/yocto/isg-test/meta/recipes-kernel/linux/linux-yocto_3.2.bb,do_package
Summary: There was 1 WARNING message shown.
Summary: There were 5 ERROR messages shown, returning a non-zero exit code.Can you please verify that these recipes will work with linux-yocto-3.2? So far I'm not seeing that they will.
Tom
Quoted 222 lines
Thanks
Kishore.Quoted 218 lines
Tom
Quoted 18 lines
Thanks
Kishore.Quoted 15 lines
Tom
Quoted 6 lines · Kishore K
Quoted 6 lines
-----Original Message-----
From: Kamble, Nitin A
Sent: Friday, October 19, 2012 11:28 AM
To: Bodke, Kishore K; Zanussi, Tom; [email protected]
Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 4 lines
Quoted 4 lines
for Zlib
qat_memModule.Hi Kishore,
Same here, if it is not used by multiple BSPs yet, then it should go inthe
Quoted 12 lines
Quoted 12 lines
BSP
Quoted 11 lines
Quoted 2 lines
specific layer.
Yes, these too will be used by both Crystal Forest and Rangely.
Thanks
Kishore.Quoted 4 lines
Thanks,
NitinQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Bodke, Kishore K
Sent: Thursday, October 18, 2012 11:19 AM
To: Zanussi, Tom; Kamble, Nitin A; [email protected]
Cc: Bodke, Kishore K
Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a newrecipe
Quoted 6 lines
Quoted 6 lines
for
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Zlib
qat_memModule.From: Kishore Bodke <[email protected]>
This adds a new recipe to build the Intel Quick Assist Technology
Memory
Quoted 39 lines
Quoted 27 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Management Module for Zlib.
Signed-off-by Kishore Bodke <[email protected]>--- .../zlib-qat-module/zlib-qat-module.bb | 52 ++++++++++++++++++++ .../zlib-qat-module/zlib_qat_module.patch | 43++++++++++++++++
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2 files changed, 95 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.patchQuoted 8 lines
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb line 1
Quoted 8 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0@@ -0,0 +1,52 @@ +SUMMARY="Zlib QAT_MEM Memory Management Module for IntelQuick
Quoted 3 lines
Quoted 3 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 3 lines
Assist \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+Technology" +DESCRIPTION="This software acelerates the data compressionalgorithm \
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 10 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+in the zlib software library via the Intel QuickAssist Technology \ +implemented on Intel Communications Chipset 89xx Series basedplatforms."
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+ +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib & GPLv2 & BSD" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/zlib-${PV}/zlib.h;beginline=4;endline=23;md5=94d1b5a40dadd127f3351471727e6
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
6a9 \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
78acb234cb"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +6
-0+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 \Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 6 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +1
-0+ http://downloadmirror.intel.com/20294/eng/zlib-${PV}-qat.L.${ZLIB_QAT_VERSION}.tar.gz;name=zlib_qat \
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +3
-0+ file://zlib_qat_module.patch" + +SRC_URI[zlib.md5sum]="60df6a37c56e7c1366cca812414f7b85"+SRC_URI[zlib.sha256sum]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
common/recipes-core/zlib-qat-module/zlib-qat-module.bb
Quoted 4 lines
b1595eed466e1be9b7e26c5"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +2
-0+ +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
59
Quoted 41 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
143326bb4c396645ae37b704a6"common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +9
-0+ +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
common/recipes-core/zlib-qat-module/zlib-qat-module.bb new file +16
-0+ + 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"(quoted diff) +0
-0
module/zlib_qat_module.patchb/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
common/recipes-core/zlib-qat-module/zlib-qat- line 1
Quoted 7 lines
index 0000000..a30f8b0
common/recipes-core/zlib-qat-module/zlib-qat- new file +0
-0module/zlib_qat_modul
+++ e.patchcommon/recipes-core/zlib-qat-module/zlib-qat- new file +1
-0@@ -0,0 +1,43 @@ +Index: zlib-qat-module-1.2.7-r0/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 6 lines
+=========================================================
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
==========
+--- zlib-qat-module-1.2.7-r0.orig/zlib-1.2.7/contrib/qat/qat_mem/Makefile
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2012-10-16 13:53:10.258938722 -0700++++ zlib-qat-module-1.2.7-r0/zlib-
1.2.7/contrib/qat/qat_mem/Makefile
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2012-10-16 13:59:18.174944864 -0700+@@ -59,13 +59,10 @@
+ #
+ #
+Quoted 39 lines
+#########################################################
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
##############
+##
+-
+ MODULENAME :=qat_mem
+-KDIR := /lib/modules/$(shell uname -r)/build
++KDIR := $(KERNEL_SOURCE_ROOT)
+ PWD := $(shell pwd)+- +-CC := gcc -Wall -imacros /usr/src/kernels/$(shell uname -r)/include/linux/autoconf.h
+-
++CC := $(KERNEL_CC) -Wall -imacros
$(KERNEL_SOURCE_ROOT)/include/generated/autoconf.h
+ ifeq ($(KERNELRELEASE),)
+ all: $(MODULENAME)_test
+ all:
+@@ -73,20 +70,15 @@
+ elsecommon/recipes-core/zlib-qat-module/zlib-qat- new file +20
-0+ obj-m := $(MODULENAME).o + endif +- ++modules_install: ++ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MODULENAME)_test: $(MODULENAME)_test.c + $(CC) -g -o $(MODULENAME)_test $(MODULENAME)_test.c +- +- + load: + insmod ./$(MODULENAME).ko +- + unload: + rmmod $(MODULENAME) +- + test: all + ./$(MODULENAME)_test +- + clean: + rm -f *.o *.ko Module.symvers modules.order *.mod.c.*.cmd
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
+$(MODULENAME)_test
+-
--
1.7.9.5