All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3][meta-intel] Add zlib and openssl qat_mem module
@ 2012-10-18 18:19 kishore.k.bodke
  2012-10-18 18:19 ` [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module kishore.k.bodke
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: kishore.k.bodke @ 2012-10-18 18:19 UTC (permalink / raw)
  To: tom.zanussi, nitin.a.kamble, yocto

From: Kishore Bodke <kishore.k.bodke@intel.com>

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

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-18 18:19 [PATCH 0/3][meta-intel] Add zlib and openssl qat_mem module kishore.k.bodke
@ 2012-10-18 18:19 ` kishore.k.bodke
  2012-10-19 18:27   ` Kamble, Nitin A
  2012-10-18 18:19 ` [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module kishore.k.bodke
  2012-10-18 18:19 ` [PATCH 3/3] [meta-intel]meta-crystalforest: Add zlib-qat and openssl-qat module kishore.k.bodke
  2 siblings, 1 reply; 14+ messages in thread
From: kishore.k.bodke @ 2012-10-18 18:19 UTC (permalink / raw)
  To: tom.zanussi, nitin.a.kamble, yocto

From: Kishore Bodke <kishore.k.bodke@intel.com>

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

Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
---
 .../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

diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
new file mode 100644
index 0000000..5ade06e
--- /dev/null
+++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
@@ -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"
diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
new file mode 100644
index 0000000..a30f8b0
--- /dev/null
+++ b/common/recipes-core/zlib-qat-module/zlib-qat-module/zlib_qat_module.patch
@@ -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/Makefile	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 @@
+ #
+ #
+ #########################################################################
+-
+ 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 @@
+ else
+   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



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
  2012-10-18 18:19 [PATCH 0/3][meta-intel] Add zlib and openssl qat_mem module kishore.k.bodke
  2012-10-18 18:19 ` [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module kishore.k.bodke
@ 2012-10-18 18:19 ` kishore.k.bodke
  2012-10-19 18:24   ` Kamble, Nitin A
  2012-10-18 18:19 ` [PATCH 3/3] [meta-intel]meta-crystalforest: Add zlib-qat and openssl-qat module kishore.k.bodke
  2 siblings, 1 reply; 14+ messages in thread
From: kishore.k.bodke @ 2012-10-18 18:19 UTC (permalink / raw)
  To: tom.zanussi, nitin.a.kamble, yocto

From: Kishore Bodke <kishore.k.bodke@intel.com>

This adds a new recipe to include the Intel Quick Assist
Technology libcrypto Memory Management Module.

Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
---
 .../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

diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
new file mode 100644
index 0000000..a4fe3c5
--- /dev/null
+++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
@@ -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"
diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
new file mode 100644
index 0000000..dfed3c0
--- /dev/null
+++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module/openssl_qat_module.patch
@@ -0,0 +1,43 @@
+Index: openssl-qat-module-1.0.1-r0/openssl-1.0.1/engines/qat_engine/qat_mem/Makefile
+===================================================================
+--- 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 @@
+ else
+   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



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 3/3] [meta-intel]meta-crystalforest: Add zlib-qat and openssl-qat module.
  2012-10-18 18:19 [PATCH 0/3][meta-intel] Add zlib and openssl qat_mem module kishore.k.bodke
  2012-10-18 18:19 ` [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module kishore.k.bodke
  2012-10-18 18:19 ` [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module kishore.k.bodke
@ 2012-10-18 18:19 ` kishore.k.bodke
  2 siblings, 0 replies; 14+ messages in thread
From: kishore.k.bodke @ 2012-10-18 18:19 UTC (permalink / raw)
  To: tom.zanussi, nitin.a.kamble, yocto

From: Kishore Bodke <kishore.k.bodke@intel.com>

This adds the two new modules zlib-qat-mem and openssl-qat-mem
modules to build with the custom Image.

Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
---
 .../recipes-qat-image/images/core-image-qat-sdk.bb |    2 ++
 .../recipes-qat-image/images/core-image-qat.bb     |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb b/meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb
index 27feb0d..a4d6309 100644
--- a/meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb
+++ b/meta-crystalforest/recipes-qat-image/images/core-image-qat-sdk.bb
@@ -9,6 +9,8 @@ IMAGE_INSTALL += " \
 		calgary-corpus \
 		canterbury-corpus \
 		silesia-corpus \
+		zlib-qat-module \
+		openssl-qat-module \
 		"
 
 LICENSE = "MIT"
diff --git a/meta-crystalforest/recipes-qat-image/images/core-image-qat.bb b/meta-crystalforest/recipes-qat-image/images/core-image-qat.bb
index 7c61ec6..d445381 100644
--- a/meta-crystalforest/recipes-qat-image/images/core-image-qat.bb
+++ b/meta-crystalforest/recipes-qat-image/images/core-image-qat.bb
@@ -9,6 +9,8 @@ IMAGE_INSTALL += " \
 		calgary-corpus \
 		canterbury-corpus \
 		silesia-corpus \
+		zlib-qat-module \
+		openssl-qat-module \
 		"
 
 LICENSE = "MIT"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
  2012-10-18 18:19 ` [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module kishore.k.bodke
@ 2012-10-19 18:24   ` Kamble, Nitin A
  2012-10-19 18:25     ` Bodke, Kishore K
  0 siblings, 1 reply; 14+ messages in thread
From: Kamble, Nitin A @ 2012-10-19 18:24 UTC (permalink / raw)
  To: Bodke, Kishore K, Zanussi, Tom, yocto

Hi Kishore,
   Will this recipe is being used for multiple BSPs? If not then it can go in the BSP specific layer.

Thanks,
Nitin

> -----Original Message-----
> From: Bodke, Kishore K
> Sent: Thursday, October 18, 2012 11:19 AM
> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> Cc: Bodke, Kishore K
> Subject: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for
> libcrypto module.
> 
> From: Kishore Bodke <kishore.k.bodke@intel.com>
> 
> This adds a new recipe to include the Intel Quick Assist Technology libcrypto
> Memory Management Module.
> 
> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> ---
>  .../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
> 
> diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-
> module.bb b/common/recipes-connectivity/openssl-qat-module/openssl-
> qat-module.bb
> new file mode 100644
> index 0000000..a4fe3c5
> --- /dev/null
> +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-
> module.
> +++ bb
> @@ -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]="4d9f0a594a9a89b28e1a04a9504c04104f6508
> ee27ad1e0efdd17a7a6dbbeeee"
> +
> +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"
> diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-
> module/openssl_qat_module.patch b/common/recipes-
> connectivity/openssl-qat-module/openssl-qat-
> module/openssl_qat_module.patch
> new file mode 100644
> index 0000000..dfed3c0
> --- /dev/null
> +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-
> module/
> +++ openssl_qat_module.patch
> @@ -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 @@
> + else
> +   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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module.
  2012-10-19 18:24   ` Kamble, Nitin A
@ 2012-10-19 18:25     ` Bodke, Kishore K
  0 siblings, 0 replies; 14+ messages in thread
From: Bodke, Kishore K @ 2012-10-19 18:25 UTC (permalink / raw)
  To: Kamble, Nitin A, Zanussi, Tom, yocto



>-----Original Message-----
>From: Kamble, Nitin A
>Sent: Friday, October 19, 2012 11:25 AM
>To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
>Subject: 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.
>

Hi Nitin,

Yes, these will be used by both Crystal Forest and Rangely.  So I put them in common.

Thanks
Kishore.

>Thanks,
>Nitin
>
>> -----Original Message-----
>> From: Bodke, Kishore K
>> Sent: Thursday, October 18, 2012 11:19 AM
>> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
>> Cc: Bodke, Kishore K
>> Subject: [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for
>> libcrypto module.
>>
>> From: Kishore Bodke <kishore.k.bodke@intel.com>
>>
>> This adds a new recipe to include the Intel Quick Assist Technology libcrypto
>> Memory Management Module.
>>
>> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
>> ---
>>  .../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
>>
>> diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-
>> module.bb b/common/recipes-connectivity/openssl-qat-module/openssl-
>> qat-module.bb
>> new file mode 100644
>> index 0000000..a4fe3c5
>> --- /dev/null
>> +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-
>> module.
>> +++ bb
>> @@ -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]="4d9f0a594a9a89b28e1a04a9504c04104f6508
>> ee27ad1e0efdd17a7a6dbbeeee"
>> +
>> +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"
>> diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-
>> module/openssl_qat_module.patch b/common/recipes-
>> connectivity/openssl-qat-module/openssl-qat-
>> module/openssl_qat_module.patch
>> new file mode 100644
>> index 0000000..dfed3c0
>> --- /dev/null
>> +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-
>> module/
>> +++ openssl_qat_module.patch
>> @@ -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 @@
>> + else
>> +   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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-18 18:19 ` [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module kishore.k.bodke
@ 2012-10-19 18:27   ` Kamble, Nitin A
  2012-10-19 18:28     ` Bodke, Kishore K
  0 siblings, 1 reply; 14+ messages in thread
From: Kamble, Nitin A @ 2012-10-19 18:27 UTC (permalink / raw)
  To: Bodke, Kishore K, Zanussi, Tom, yocto

Hi Kishore,
  Same here, if it is not used by multiple BSPs yet, then it should go in the BSP specific layer.

Thanks,
Nitin


> -----Original Message-----
> From: Bodke, Kishore K
> Sent: Thursday, October 18, 2012 11:19 AM
> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> Cc: Bodke, Kishore K
> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for
> Zlib qat_mem Module.
> 
> From: Kishore Bodke <kishore.k.bodke@intel.com>
> 
> This adds a new recipe to build the Intel Quick Assist Technology Memory
> Management Module for Zlib.
> 
> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> ---
>  .../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
> 
> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> new file mode 100644
> index 0000000..5ade06e
> --- /dev/null
> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> @@ -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=94d1b5a40dadd127f3351471727e6
> 6a9 \
> +			file://${COMMON_LICENSE_DIR}/GPL-
> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
> +
> 	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
> 78acb234cb"
> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
> b1595eed466e1be9b7e26c5"
> +
> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
> +SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
> 143326bb4c396645ae37b704a6"
> +
> +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"
> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
> module/zlib-qat-module/zlib_qat_module.patch
> new file mode 100644
> index 0000000..a30f8b0
> --- /dev/null
> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
> module/zlib_qat_modul
> +++ e.patch
> @@ -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/Makefile
> 	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 @@
> + #
> + #
> +
> +#########################################################
> ##############
> +##
> +-
> + 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 @@
> + else
> +   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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-19 18:27   ` Kamble, Nitin A
@ 2012-10-19 18:28     ` Bodke, Kishore K
  2012-10-19 18:34       ` Tom Zanussi
  0 siblings, 1 reply; 14+ messages in thread
From: Bodke, Kishore K @ 2012-10-19 18:28 UTC (permalink / raw)
  To: Kamble, Nitin A, Zanussi, Tom, yocto



>-----Original Message-----
>From: Kamble, Nitin A
>Sent: Friday, October 19, 2012 11:28 AM
>To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
>Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
>for Zlib qat_mem Module.
>
>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.

>Thanks,
>Nitin
>
>
>> -----Original Message-----
>> From: Bodke, Kishore K
>> Sent: Thursday, October 18, 2012 11:19 AM
>> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
>> Cc: Bodke, Kishore K
>> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for
>> Zlib qat_mem Module.
>>
>> From: Kishore Bodke <kishore.k.bodke@intel.com>
>>
>> This adds a new recipe to build the Intel Quick Assist Technology Memory
>> Management Module for Zlib.
>>
>> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
>> ---
>>  .../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
>>
>> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> new file mode 100644
>> index 0000000..5ade06e
>> --- /dev/null
>> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> @@ -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=94d1b5a40dadd127f3351471727e6
>> 6a9 \
>> +			file://${COMMON_LICENSE_DIR}/GPL-
>> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
>> +
>> 	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
>> 78acb234cb"
>> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
>> b1595eed466e1be9b7e26c5"
>> +
>> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
>>
>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
>> 143326bb4c396645ae37b704a6"
>> +
>> +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"
>> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
>> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
>> module/zlib-qat-module/zlib_qat_module.patch
>> new file mode 100644
>> index 0000000..a30f8b0
>> --- /dev/null
>> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
>> module/zlib_qat_modul
>> +++ e.patch
>> @@ -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/Makefile
>> 	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 @@
>> + #
>> + #
>> +
>> +#########################################################
>> ##############
>> +##
>> +-
>> + 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 @@
>> + else
>> +   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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-19 18:28     ` Bodke, Kishore K
@ 2012-10-19 18:34       ` Tom Zanussi
  2012-10-19 18:40         ` Bodke, Kishore K
  0 siblings, 1 reply; 14+ messages in thread
From: Tom Zanussi @ 2012-10-19 18:34 UTC (permalink / raw)
  To: Bodke, Kishore K; +Cc: yocto

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

On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
> 
> >-----Original Message-----
> >From: Kamble, Nitin A
> >Sent: Friday, October 19, 2012 11:28 AM
> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
> >for Zlib qat_mem Module.
> >
> >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.
> 
> >Thanks,
> >Nitin
> >
> >
> >> -----Original Message-----
> >> From: Bodke, Kishore K
> >> Sent: Thursday, October 18, 2012 11:19 AM
> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> >> Cc: Bodke, Kishore K
> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for
> >> Zlib qat_mem Module.
> >>
> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
> >>
> >> This adds a new recipe to build the Intel Quick Assist Technology Memory
> >> Management Module for Zlib.
> >>
> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> >> ---
> >>  .../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
> >>
> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> new file mode 100644
> >> index 0000000..5ade06e
> >> --- /dev/null
> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> @@ -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=94d1b5a40dadd127f3351471727e6
> >> 6a9 \
> >> +			file://${COMMON_LICENSE_DIR}/GPL-
> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
> >> +
> >> 	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
> >> 78acb234cb"
> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
> >> b1595eed466e1be9b7e26c5"
> >> +
> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
> >>
> >+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
> >> 143326bb4c396645ae37b704a6"
> >> +
> >> +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"
> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
> >> module/zlib-qat-module/zlib_qat_module.patch
> >> new file mode 100644
> >> index 0000000..a30f8b0
> >> --- /dev/null
> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
> >> module/zlib_qat_modul
> >> +++ e.patch
> >> @@ -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/Makefile
> >> 	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 @@
> >> + #
> >> + #
> >> +
> >> +#########################################################
> >> ##############
> >> +##
> >> +-
> >> + 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 @@
> >> + else
> >> +   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
> 




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-19 18:34       ` Tom Zanussi
@ 2012-10-19 18:40         ` Bodke, Kishore K
  2012-10-19 18:48           ` Tom Zanussi
  0 siblings, 1 reply; 14+ messages in thread
From: Bodke, Kishore K @ 2012-10-19 18:40 UTC (permalink / raw)
  To: Zanussi, Tom; +Cc: yocto



>-----Original Message-----
>From: Zanussi, Tom
>Sent: Friday, October 19, 2012 11:35 AM
>To: Bodke, Kishore K
>Cc: Kamble, Nitin A; yocto@yoctoproject.org
>Subject: 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?

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.

>
>Tom
>
>On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
>>
>> >-----Original Message-----
>> >From: Kamble, Nitin A
>> >Sent: Friday, October 19, 2012 11:28 AM
>> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
>> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
>recipe
>> >for Zlib qat_mem Module.
>> >
>> >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.
>>
>> >Thanks,
>> >Nitin
>> >
>> >
>> >> -----Original Message-----
>> >> From: Bodke, Kishore K
>> >> Sent: Thursday, October 18, 2012 11:19 AM
>> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
>> >> Cc: Bodke, Kishore K
>> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
>for
>> >> Zlib qat_mem Module.
>> >>
>> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
>> >>
>> >> This adds a new recipe to build the Intel Quick Assist Technology Memory
>> >> Management Module for Zlib.
>> >>
>> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
>> >> ---
>> >>  .../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
>> >>
>> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> new file mode 100644
>> >> index 0000000..5ade06e
>> >> --- /dev/null
>> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> @@ -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=94d1b5a40dadd127f3351471727e6
>> >> 6a9 \
>> >> +			file://${COMMON_LICENSE_DIR}/GPL-
>> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
>> >> +
>> >> 	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
>> >> 78acb234cb"
>> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
>> >> b1595eed466e1be9b7e26c5"
>> >> +
>> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
>> >>
>>
>>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
>> >> 143326bb4c396645ae37b704a6"
>> >> +
>> >> +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"
>> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
>> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
>> >> module/zlib-qat-module/zlib_qat_module.patch
>> >> new file mode 100644
>> >> index 0000000..a30f8b0
>> >> --- /dev/null
>> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
>> >> module/zlib_qat_modul
>> >> +++ e.patch
>> >> @@ -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/Makefile
>> >> 	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 @@
>> >> + #
>> >> + #
>> >> +
>> >>
>+#########################################################
>> >> ##############
>> >> +##
>> >> +-
>> >> + 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 @@
>> >> + else
>> >> +   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
>>
>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-19 18:40         ` Bodke, Kishore K
@ 2012-10-19 18:48           ` Tom Zanussi
  2012-10-22  3:15             ` Bodke, Kishore K
  0 siblings, 1 reply; 14+ messages in thread
From: Tom Zanussi @ 2012-10-19 18:48 UTC (permalink / raw)
  To: Bodke, Kishore K; +Cc: yocto

On Fri, 2012-10-19 at 13:40 -0500, Bodke, Kishore K wrote:
> 
> >-----Original Message-----
> >From: Zanussi, Tom
> >Sent: Friday, October 19, 2012 11:35 AM
> >To: Bodke, Kishore K
> >Cc: Kamble, Nitin A; yocto@yoctoproject.org
> >Subject: 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?
> 
> 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

> Thanks
> Kishore.
> 
> >
> >Tom
> >
> >On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
> >>
> >> >-----Original Message-----
> >> >From: Kamble, Nitin A
> >> >Sent: Friday, October 19, 2012 11:28 AM
> >> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
> >> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
> >recipe
> >> >for Zlib qat_mem Module.
> >> >
> >> >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.
> >>
> >> >Thanks,
> >> >Nitin
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: Bodke, Kishore K
> >> >> Sent: Thursday, October 18, 2012 11:19 AM
> >> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> >> >> Cc: Bodke, Kishore K
> >> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
> >for
> >> >> Zlib qat_mem Module.
> >> >>
> >> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
> >> >>
> >> >> This adds a new recipe to build the Intel Quick Assist Technology Memory
> >> >> Management Module for Zlib.
> >> >>
> >> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> >> >> ---
> >> >>  .../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
> >> >>
> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> new file mode 100644
> >> >> index 0000000..5ade06e
> >> >> --- /dev/null
> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> @@ -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=94d1b5a40dadd127f3351471727e6
> >> >> 6a9 \
> >> >> +			file://${COMMON_LICENSE_DIR}/GPL-
> >> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
> >> >> +
> >> >> 	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
> >> >> 78acb234cb"
> >> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
> >> >> b1595eed466e1be9b7e26c5"
> >> >> +
> >> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
> >> >>
> >>
> >>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a5059
> >> >> 143326bb4c396645ae37b704a6"
> >> >> +
> >> >> +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"
> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
> >> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
> >> >> module/zlib-qat-module/zlib_qat_module.patch
> >> >> new file mode 100644
> >> >> index 0000000..a30f8b0
> >> >> --- /dev/null
> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
> >> >> module/zlib_qat_modul
> >> >> +++ e.patch
> >> >> @@ -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/Makefile
> >> >> 	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 @@
> >> >> + #
> >> >> + #
> >> >> +
> >> >>
> >+#########################################################
> >> >> ##############
> >> >> +##
> >> >> +-
> >> >> + 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 @@
> >> >> + else
> >> >> +   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
> >>
> >
> 




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-19 18:48           ` Tom Zanussi
@ 2012-10-22  3:15             ` Bodke, Kishore K
  2012-10-22  4:03               ` Tom Zanussi
  0 siblings, 1 reply; 14+ messages in thread
From: Bodke, Kishore K @ 2012-10-22  3:15 UTC (permalink / raw)
  To: Zanussi, Tom; +Cc: yocto



>-----Original Message-----
>From: Zanussi, Tom
>Sent: Friday, October 19, 2012 11:49 AM
>To: Bodke, Kishore K
>Cc: Kamble, Nitin A; yocto@yoctoproject.org
>Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
>for Zlib qat_mem Module.
>
>On Fri, 2012-10-19 at 13:40 -0500, Bodke, Kishore K wrote:
>>
>> >-----Original Message-----
>> >From: Zanussi, Tom
>> >Sent: Friday, October 19, 2012 11:35 AM
>> >To: Bodke, Kishore K
>> >Cc: Kamble, Nitin A; yocto@yoctoproject.org
>> >Subject: 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?
>>
>> 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.
>

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.

>Tom
>
>> Thanks
>> Kishore.
>>
>> >
>> >Tom
>> >
>> >On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
>> >>
>> >> >-----Original Message-----
>> >> >From: Kamble, Nitin A
>> >> >Sent: Friday, October 19, 2012 11:28 AM
>> >> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
>> >> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
>> >recipe
>> >> >for Zlib qat_mem Module.
>> >> >
>> >> >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.
>> >>
>> >> >Thanks,
>> >> >Nitin
>> >> >
>> >> >
>> >> >> -----Original Message-----
>> >> >> From: Bodke, Kishore K
>> >> >> Sent: Thursday, October 18, 2012 11:19 AM
>> >> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
>> >> >> Cc: Bodke, Kishore K
>> >> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
>recipe
>> >for
>> >> >> Zlib qat_mem Module.
>> >> >>
>> >> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
>> >> >>
>> >> >> This adds a new recipe to build the Intel Quick Assist Technology
>Memory
>> >> >> Management Module for Zlib.
>> >> >>
>> >> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
>> >> >> ---
>> >> >>  .../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
>> >> >>
>> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> >> new file mode 100644
>> >> >> index 0000000..5ade06e
>> >> >> --- /dev/null
>> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
>> >> >> @@ -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=94d1b5a40dadd127f3351471727e6
>> >> >> 6a9 \
>> >> >> +			file://${COMMON_LICENSE_DIR}/GPL-
>> >> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
>> >> >> +
>> >> >>
>	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
>> >> >> 78acb234cb"
>> >> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
>> >> >> b1595eed466e1be9b7e26c5"
>> >> >> +
>> >> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
>> >> >>
>> >>
>>
>>>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
>59
>> >> >> 143326bb4c396645ae37b704a6"
>> >> >> +
>> >> >> +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"
>> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
>> >> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
>> >> >> module/zlib-qat-module/zlib_qat_module.patch
>> >> >> new file mode 100644
>> >> >> index 0000000..a30f8b0
>> >> >> --- /dev/null
>> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
>> >> >> module/zlib_qat_modul
>> >> >> +++ e.patch
>> >> >> @@ -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/Makefile
>> >> >> 	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 @@
>> >> >> + #
>> >> >> + #
>> >> >> +
>> >> >>
>>
>>+#########################################################
>> >> >> ##############
>> >> >> +##
>> >> >> +-
>> >> >> + 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 @@
>> >> >> + else
>> >> >> +   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
>> >>
>> >
>>
>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-22  3:15             ` Bodke, Kishore K
@ 2012-10-22  4:03               ` Tom Zanussi
  2012-10-22 13:24                 ` Tom Zanussi
  0 siblings, 1 reply; 14+ messages in thread
From: Tom Zanussi @ 2012-10-22  4:03 UTC (permalink / raw)
  To: Bodke, Kishore K; +Cc: yocto

On Sun, 2012-10-21 at 22:15 -0500, Bodke, Kishore K wrote:
> 
> >-----Original Message-----
> >From: Zanussi, Tom
> >Sent: Friday, October 19, 2012 11:49 AM
> >To: Bodke, Kishore K
> >Cc: Kamble, Nitin A; yocto@yoctoproject.org
> >Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
> >for Zlib qat_mem Module.
> >
> >On Fri, 2012-10-19 at 13:40 -0500, Bodke, Kishore K wrote:
> >>
> >> >-----Original Message-----
> >> >From: Zanussi, Tom
> >> >Sent: Friday, October 19, 2012 11:35 AM
> >> >To: Bodke, Kishore K
> >> >Cc: Kamble, Nitin A; yocto@yoctoproject.org
> >> >Subject: 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?
> >>
> >> 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.
> >
> 
> 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

> Thanks
> Kishore.
> 
> >Tom
> >
> >> Thanks
> >> Kishore.
> >>
> >> >
> >> >Tom
> >> >
> >> >On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
> >> >>
> >> >> >-----Original Message-----
> >> >> >From: Kamble, Nitin A
> >> >> >Sent: Friday, October 19, 2012 11:28 AM
> >> >> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
> >> >> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
> >> >recipe
> >> >> >for Zlib qat_mem Module.
> >> >> >
> >> >> >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.
> >> >>
> >> >> >Thanks,
> >> >> >Nitin
> >> >> >
> >> >> >
> >> >> >> -----Original Message-----
> >> >> >> From: Bodke, Kishore K
> >> >> >> Sent: Thursday, October 18, 2012 11:19 AM
> >> >> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> >> >> >> Cc: Bodke, Kishore K
> >> >> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
> >recipe
> >> >for
> >> >> >> Zlib qat_mem Module.
> >> >> >>
> >> >> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
> >> >> >>
> >> >> >> This adds a new recipe to build the Intel Quick Assist Technology
> >Memory
> >> >> >> Management Module for Zlib.
> >> >> >>
> >> >> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> >> >> >> ---
> >> >> >>  .../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
> >> >> >>
> >> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> >> new file mode 100644
> >> >> >> index 0000000..5ade06e
> >> >> >> --- /dev/null
> >> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> >> >> >> @@ -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=94d1b5a40dadd127f3351471727e6
> >> >> >> 6a9 \
> >> >> >> +			file://${COMMON_LICENSE_DIR}/GPL-
> >> >> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
> >> >> >> +
> >> >> >>
> >	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
> >> >> >> 78acb234cb"
> >> >> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
> >> >> >> b1595eed466e1be9b7e26c5"
> >> >> >> +
> >> >> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
> >> >> >>
> >> >>
> >>
> >>>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
> >59
> >> >> >> 143326bb4c396645ae37b704a6"
> >> >> >> +
> >> >> >> +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"
> >> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
> >> >> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
> >> >> >> module/zlib-qat-module/zlib_qat_module.patch
> >> >> >> new file mode 100644
> >> >> >> index 0000000..a30f8b0
> >> >> >> --- /dev/null
> >> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
> >> >> >> module/zlib_qat_modul
> >> >> >> +++ e.patch
> >> >> >> @@ -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/Makefile
> >> >> >> 	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 @@
> >> >> >> + #
> >> >> >> + #
> >> >> >> +
> >> >> >>
> >>
> >>+#########################################################
> >> >> >> ##############
> >> >> >> +##
> >> >> >> +-
> >> >> >> + 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 @@
> >> >> >> + else
> >> >> >> +   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
> >> >>
> >> >
> >>
> >
> 




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module.
  2012-10-22  4:03               ` Tom Zanussi
@ 2012-10-22 13:24                 ` Tom Zanussi
  0 siblings, 0 replies; 14+ messages in thread
From: Tom Zanussi @ 2012-10-22 13:24 UTC (permalink / raw)
  To: Bodke, Kishore K; +Cc: yocto

On Sun, 2012-10-21 at 23:03 -0500, Tom Zanussi wrote:
> On Sun, 2012-10-21 at 22:15 -0500, Bodke, Kishore K wrote:
> > 
> > >-----Original Message-----
> > >From: Zanussi, Tom
> > >Sent: Friday, October 19, 2012 11:49 AM
> > >To: Bodke, Kishore K
> > >Cc: Kamble, Nitin A; yocto@yoctoproject.org
> > >Subject: Re: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe
> > >for Zlib qat_mem Module.
> > >
> > >On Fri, 2012-10-19 at 13:40 -0500, Bodke, Kishore K wrote:
> > >>
> > >> >-----Original Message-----
> > >> >From: Zanussi, Tom
> > >> >Sent: Friday, October 19, 2012 11:35 AM
> > >> >To: Bodke, Kishore K
> > >> >Cc: Kamble, Nitin A; yocto@yoctoproject.org
> > >> >Subject: 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?
> > >>
> > >> 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.
> > >
> > 
> > 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:
> 

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

> [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
> 
> > Thanks
> > Kishore.
> > 
> > >Tom
> > >
> > >> Thanks
> > >> Kishore.
> > >>
> > >> >
> > >> >Tom
> > >> >
> > >> >On Fri, 2012-10-19 at 13:28 -0500, Bodke, Kishore K wrote:
> > >> >>
> > >> >> >-----Original Message-----
> > >> >> >From: Kamble, Nitin A
> > >> >> >Sent: Friday, October 19, 2012 11:28 AM
> > >> >> >To: Bodke, Kishore K; Zanussi, Tom; yocto@yoctoproject.org
> > >> >> >Subject: RE: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
> > >> >recipe
> > >> >> >for Zlib qat_mem Module.
> > >> >> >
> > >> >> >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.
> > >> >>
> > >> >> >Thanks,
> > >> >> >Nitin
> > >> >> >
> > >> >> >
> > >> >> >> -----Original Message-----
> > >> >> >> From: Bodke, Kishore K
> > >> >> >> Sent: Thursday, October 18, 2012 11:19 AM
> > >> >> >> To: Zanussi, Tom; Kamble, Nitin A; yocto@yoctoproject.org
> > >> >> >> Cc: Bodke, Kishore K
> > >> >> >> Subject: [PATCH 1/3] [meta-intel] meta-intel/common:Add a new
> > >recipe
> > >> >for
> > >> >> >> Zlib qat_mem Module.
> > >> >> >>
> > >> >> >> From: Kishore Bodke <kishore.k.bodke@intel.com>
> > >> >> >>
> > >> >> >> This adds a new recipe to build the Intel Quick Assist Technology
> > >Memory
> > >> >> >> Management Module for Zlib.
> > >> >> >>
> > >> >> >> Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com>
> > >> >> >> ---
> > >> >> >>  .../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
> > >> >> >>
> > >> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> > >> >> >> b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> > >> >> >> new file mode 100644
> > >> >> >> index 0000000..5ade06e
> > >> >> >> --- /dev/null
> > >> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-module.bb
> > >> >> >> @@ -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=94d1b5a40dadd127f3351471727e6
> > >> >> >> 6a9 \
> > >> >> >> +			file://${COMMON_LICENSE_DIR}/GPL-
> > >> >> >> 2.0;md5=801f80980d171dd6425610833a22dbe6 \
> > >> >> >> +
> > >> >> >>
> > >	file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a696476
> > >> >> >> 78acb234cb"
> > >> >> >> +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]="fa9c9c8638efb8cb8ef5e4dd5453e455751e1c530
> > >> >> >> b1595eed466e1be9b7e26c5"
> > >> >> >> +
> > >> >> >> +SRC_URI[zlib_qat.md5sum]="88e4140f98d2f9e170bf473f20e1a8d4"
> > >> >> >>
> > >> >>
> > >>
> > >>>+SRC_URI[zlib_qat.sha256sum]="3c360878127f3930e64640ef5a5822719a50
> > >59
> > >> >> >> 143326bb4c396645ae37b704a6"
> > >> >> >> +
> > >> >> >> +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"
> > >> >> >> diff --git a/common/recipes-core/zlib-qat-module/zlib-qat-
> > >> >> >> module/zlib_qat_module.patch b/common/recipes-core/zlib-qat-
> > >> >> >> module/zlib-qat-module/zlib_qat_module.patch
> > >> >> >> new file mode 100644
> > >> >> >> index 0000000..a30f8b0
> > >> >> >> --- /dev/null
> > >> >> >> +++ b/common/recipes-core/zlib-qat-module/zlib-qat-
> > >> >> >> module/zlib_qat_modul
> > >> >> >> +++ e.patch
> > >> >> >> @@ -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/Makefile
> > >> >> >> 	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 @@
> > >> >> >> + #
> > >> >> >> + #
> > >> >> >> +
> > >> >> >>
> > >>
> > >>+#########################################################
> > >> >> >> ##############
> > >> >> >> +##
> > >> >> >> +-
> > >> >> >> + 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 @@
> > >> >> >> + else
> > >> >> >> +   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
> > >> >>
> > >> >
> > >>
> > >
> > 
> 




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-10-22 13:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-18 18:19 [PATCH 0/3][meta-intel] Add zlib and openssl qat_mem module kishore.k.bodke
2012-10-18 18:19 ` [PATCH 1/3] [meta-intel] meta-intel/common:Add a new recipe for Zlib qat_mem Module kishore.k.bodke
2012-10-19 18:27   ` Kamble, Nitin A
2012-10-19 18:28     ` Bodke, Kishore K
2012-10-19 18:34       ` Tom Zanussi
2012-10-19 18:40         ` Bodke, Kishore K
2012-10-19 18:48           ` Tom Zanussi
2012-10-22  3:15             ` Bodke, Kishore K
2012-10-22  4:03               ` Tom Zanussi
2012-10-22 13:24                 ` Tom Zanussi
2012-10-18 18:19 ` [PATCH 2/3][meta-intel] meta-intel/common: Add new recipe for libcrypto module kishore.k.bodke
2012-10-19 18:24   ` Kamble, Nitin A
2012-10-19 18:25     ` Bodke, Kishore K
2012-10-18 18:19 ` [PATCH 3/3] [meta-intel]meta-crystalforest: Add zlib-qat and openssl-qat module kishore.k.bodke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.