[oe-commits] org.oe.dev dsplink: install and package kernel module

koen commit oe at amethyst.openembedded.net
Sun May 25 18:40:37 UTC 2008


dsplink: install and package kernel module
* the library is still unpackaged

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 8f13ca7f56d9828706eab2e11c343b21072403f7
ViewMTN: http://monotone.openembedded.org/revision/info/8f13ca7f56d9828706eab2e11c343b21072403f7
Files:
1
packages/dsplink/dsplink_1.50.bb
Diffs:

#
# mt diff -r7cf1082e052d71a57a880f9dba1db252664ba9dc -r8f13ca7f56d9828706eab2e11c343b21072403f7
#
#
#
# patch "packages/dsplink/dsplink_1.50.bb"
#  from [6fbb4ee9980de6eb717588f728cfb391f4466616]
#    to [276780bdf6762dd56e0edb7ebf75c63c4cb411c0]
#
============================================================
--- packages/dsplink/dsplink_1.50.bb	6fbb4ee9980de6eb717588f728cfb391f4466616
+++ packages/dsplink/dsplink_1.50.bb	276780bdf6762dd56e0edb7ebf75c63c4cb411c0
@@ -1,10 +1,12 @@ DEPENDS = "virtual/kernel perl-native"
 DESCRIPTION = "DSP Link for TI ARM/DSP processors"
 
 DEPENDS = "virtual/kernel perl-native"
+RDEPENDS = "update-modules"
 
 inherit module-base
 
 PR = "r0"
+PV = "1.50+kernel${KERNEL_VERSION}"
 
 # Get dsplink tarball from TI website, place in sources and calculate
 # md5sum
@@ -57,5 +59,25 @@ do_compile () {
 	oe_runmake -C ${S}/gpp/src all targets
 }
 
+do_install () {
+	install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
+	cp ${S}/gpp/BUILD/EXPORT/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
+}
+
+pkg_postinst_${PN}-module () {
+        if [ -n "$D" ]; then
+                exit 1
+        fi
+        depmod -a
+        update-modules || true
+}
+
+pkg_postrm_${PN}-module () {
+        update-modules || true
+}
+
+PACKAGES =+ "${PN}-module"
+FILES_${PN}-module  = "${sysconfdir} /lib/modules"
+
 PACKAGE_ARCH = "${MACHINE_ARCH}" 
 






More information about the Openembedded-commits mailing list