[meta-freescale] [meta-fsl-ppc][PATCH 4/4] ceetm: install ceetm.ko into /lib/modules/

b28495 at freescale.com b28495 at freescale.com
Thu Dec 24 19:42:15 PST 2015


From: Ting Liu <ting.liu at freescale.com>

kernel-module-ceetm will be created to package ceetm.ko by default.

Signed-off-by: Ting Liu <ting.liu at freescale.com>
---
 recipes-kernel/ceetm/ceetm_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes-kernel/ceetm/ceetm_git.bb b/recipes-kernel/ceetm/ceetm_git.bb
index df1bf6a..144fe78 100644
--- a/recipes-kernel/ceetm/ceetm_git.bb
+++ b/recipes-kernel/ceetm/ceetm_git.bb
@@ -16,12 +16,12 @@ export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
 
 do_configure[depends] += "virtual/kernel:do_shared_workdir"
 do_install(){
-    mkdir -p ${D}/usr/driver/ceetm
+    install -d ${D}/lib/modules/${KERNEL_VERSION}/extra
     mkdir -p ${D}/${libdir}/tc
-    cp ${S}/bin/ceetm.ko ${D}/usr/driver/ceetm
-    cp ${S}/bin/q_ceetm.so ${D}/${libdir}/tc/.
+    install -m 644 ${S}/bin/ceetm.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/
+    cp ${S}/bin/q_ceetm.so ${D}/${libdir}/tc/
 }
 
-FILES_${PN} += "/usr/driver/ceetm ${libdir}/tc"
+FILES_${PN} += "${libdir}/tc"
 INHIBIT_PACKAGE_STRIP = "1"
 COMPATIBLE_MACHINE = "(e6500-64b|t1040|t1042)"
-- 
1.9.2



More information about the meta-freescale mailing list