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

kishore.k.bodke at intel.com kishore.k.bodke at intel.com
Tue Mar 26 14:29:56 PDT 2013


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

openssl-qat-module and zlib-qat-module recipes have the same
kernel module name, which causes the build to fail.

This fixes Bug 4126 - Crystal Forest build failing for openssl-qat-module

ERROR: Recipe openssl-qat-module is trying to create package
kernel-module-qat-mem which was already written by recipe zlib-qat-module.
This will cause corruption, please resolve this and only provide the package
from one recipe or the other or only build one of the recipes.
ERROR: Function failed: read_subpackage_metadata
ERROR: Execution of event handler 'run_buildstats' failed

Signed-off-by: Kishore Bodke <kishore.k.bodke at intel.com>
---
 .../openssl-qat-module/openssl-qat-module.bb       |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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 fdeebbb..fb863b0 100644
--- a/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
+++ b/common/recipes-connectivity/openssl-qat-module/openssl-qat-module.bb
@@ -45,6 +45,14 @@ 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
@@ -53,4 +61,5 @@ do_install_append() 	{
 	install -m 0750 ${S}/*.h	   ${D}${includedir}/engines/qat_engine/qat_mem/
 }
 
-FILES_${PN} += "${bindir}/qat_mem_test"
+FILES_${PN} += "${bindir}/qat_mem_test \
+		${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers"
-- 
1.7.9.5




More information about the meta-intel mailing list