[meta-freescale] [meta-fsl-arm][PATCH] kernel-module-imx-gpu-viv: Fix Makefile.symvers installation

Carlos Rafael Giani dv at pseudoterminal.org
Sun Sep 11 02:41:15 PDT 2016


This fixes the following build error during the install task:

"cp: cannot stat '.../git/Module.symvers': No such file or directory"

Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
---
 .../kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.4+fslc.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.4+fslc.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.4+fslc.bb
index fa1fe2b..ebad628 100644
--- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.4+fslc.bb
+++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.4+fslc.bb
@@ -18,3 +18,12 @@ S = "${WORKDIR}/git"
 inherit module
 
 KERNEL_MODULE_AUTOLOAD = "galcore"
+
+copy_module_symvers () {
+        # The module bbclass tries to copy the
+        # Module.symvers from ${B}, so make
+        # sure it actually is there
+        cp -a --no-preserve=ownership ${B}/kernel-module-imx-gpu-viv-src/Module.symvers ${B}
+}
+
+do_install[prefuncs] += "copy_module_symvers"
-- 
2.7.4



More information about the meta-freescale mailing list