[meta-intel] [PATCH 1/1] crystalforest: Fix build issues for openssl-qat-module

Tom Zanussi tom.zanussi at intel.com
Wed Apr 10 13:21:37 PDT 2013


On Tue, 2013-04-09 at 14:08 -0700, kishore.k.bodke at intel.com wrote:
> From: Kishore Bodke <kishore.k.bodke at intel.com>
> 
> This Fixes Bug 4126 - Crystal Forest build failing for openssl-qat-module
> 

Pulled into meta-intel/master, after fixing trailing whitespace issues
and fixing the bug format e.g. please use [YOCTO #xxx] format in the
future.

Build-tested with crystalforest-server and crystalforest-gladden.

Tom

> openssl-qat-module and zlib-qat-module recipes have the same
> kernel module name, which causes the build to fail.
> So remove one of them from building and update the README with the
> instructions on how to enable.
> 
> Signed-off-by: Kishore Bodke <kishore.k.bodke at intel.com>
> ---
>  .../openssl-qat-module/openssl-qat-module.bb       |   11 +---------
>  meta-crystalforest/README                          |   21 +++++++++++++++++++-
>  .../conf/machine/crystalforest-gladden.conf        |    1 -
>  .../conf/machine/crystalforest-server.conf         |    1 -
>  4 files changed, 21 insertions(+), 13 deletions(-)
> 
> diff --git a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
> index fb863b0..53dbce8 100644
> --- a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
> +++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
> @@ -45,14 +45,6 @@ do_compile() 	{
>  	oe_runmake  KERNEL_CC="${KERNEL_CC}"
>  }
>  
> -KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
> -MODULE_DIR="${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers"
> -
> -do_install()    {
> -        install -m 0755 -d ${MODULE_DIR}
> -        install -m 0755 ${S}/qat_mem.ko ${MODULE_DIR}
> -}
> -
>  do_install_append() 	{
>  	install -m 0755 -d ${D}${bindir} \
>  			   ${D}${includedir}/engines/qat_engine/qat_mem
> @@ -61,5 +53,4 @@ do_install_append() 	{
>  	install -m 0750 ${S}/*.h	   ${D}${includedir}/engines/qat_engine/qat_mem/
>  }
>  
> -FILES_${PN} += "${bindir}/qat_mem_test \
> -		${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers"
> +FILES_${PN} += "${bindir}/qat_mem_test" 
> diff --git a/meta-crystalforest/README b/meta-crystalforest/README
> index e658039..625bdbc 100644
> --- a/meta-crystalforest/README
> +++ b/meta-crystalforest/README
> @@ -74,7 +74,7 @@ Table of Contents
>    I. Building the meta-crystalforest BSP layer
>   II. Booting the images in /binary
>  III. Enabling Intel DPDK and QuickAssist Technology
> -
> +IV.  Enabling libcrypto kernel module for QuickAssist Technology
>  
>  I. Building the meta-crystalforest BSP layer
>  =======================================
> @@ -165,6 +165,25 @@ contact your Intel Field Sales Representative or visit Intel Embedded Design
>  Center (www.intel.com/p/en_US/embedded/designcenter) for instructions on how
>  to locate and use these recipes.
>  
> +IV. Enabling libcrypto kernel module for QuickAssist Technology
> +===============================================================
> +
> +Since the Kernel Module names of Libcrypto and Zlib for QuickAssist
> +Technology recipes are same, enabling both causes the build to fail.
> +
> +Please see Bug #4126 for more description.
> +
> +By default Crystal Forest builds zlib-qat-module.
> +For enabling the libcrypto kernel module recipe, do the following:
> +
> +Crystal Forest Gladden:
> +Edit meta-intel/meta-crystalforest/conf/machine/crystalforest-gladden.conf
> +and replace zlib-qat-module with openssl-qat-module in MACHINE_EXTRA_RRECOMMENDS
> +
> +Crystal Forest Server:
> +Edit meta-intel/meta-crystalforest/conf/machine/crystalforest-server.conf
> +and replace zlib-qat-module with openssl-qat-module in MACHINE_EXTRA_RRECOMMENDS
> +
>  ----
>  
>  If you find you're getting corrupt images on the USB (it doesn't show
> diff --git a/meta-crystalforest/conf/machine/crystalforest-gladden.conf b/meta-crystalforest/conf/machine/crystalforest-gladden.conf
> index 5eb3daf..2615d7a 100644
> --- a/meta-crystalforest/conf/machine/crystalforest-gladden.conf
> +++ b/meta-crystalforest/conf/machine/crystalforest-gladden.conf
> @@ -22,7 +22,6 @@ XSERVER ?= "${XSERVER_IA32_BASE} \
>  MACHINE_EXTRA_RRECOMMENDS += "calgary-corpus \
>  			      canterbury-corpus \
>  			      zlib-qat-module \
> -			      openssl-qat-module \
>  			      "
>  #This Kernel Option is required for Intel Quick Assist Technology Software.
>  APPEND += "acpi_enforce_resources=lax"
> diff --git a/meta-crystalforest/conf/machine/crystalforest-server.conf b/meta-crystalforest/conf/machine/crystalforest-server.conf
> index 2e56797..443ac05 100644
> --- a/meta-crystalforest/conf/machine/crystalforest-server.conf
> +++ b/meta-crystalforest/conf/machine/crystalforest-server.conf
> @@ -22,7 +22,6 @@ XSERVER ?= "${XSERVER_IA32_BASE} \
>  MACHINE_EXTRA_RRECOMMENDS += "calgary-corpus \
>                                canterbury-corpus \
>                                zlib-qat-module \
> -                              openssl-qat-module \
>                                "
>  #This Kernel Option is required for Intel Quick Assist Technology Software.
>  APPEND += "acpi_enforce_resources=lax"





More information about the meta-intel mailing list