summaryrefslogtreecommitdiff
path: root/recipes/ti/ti-lpm-module_2.24.bb
diff options
context:
space:
mode:
authorBrijesh Singh <bksingh@ti.com>2009-08-27 02:40:39 -0500
committerKoen Kooi <koen@openembedded.org>2009-08-27 18:56:49 +0200
commit4923ae44c9e97a91deef41ecfec06227996c85fa (patch)
tree460bd2bf8aee3f5461f5fc8e1a212c6d4b042ced /recipes/ti/ti-lpm-module_2.24.bb
parent98d2f53a2b8e29c6c1cb8eda959f35b7f1f5612c (diff)
cmem, sdma, lpm: add 2.24.01 release
Diffstat (limited to 'recipes/ti/ti-lpm-module_2.24.bb')
-rw-r--r--recipes/ti/ti-lpm-module_2.24.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes/ti/ti-lpm-module_2.24.bb b/recipes/ti/ti-lpm-module_2.24.bb
new file mode 100644
index 0000000000..11a1c74b43
--- /dev/null
+++ b/recipes/ti/ti-lpm-module_2.24.bb
@@ -0,0 +1,66 @@
+DESCRIPTION = "LPM module for TI OMAP3 processors"
+
+inherit module
+# compile and run time dependencies
+DEPENDS = " virtual/kernel perl-native ti-dsplink-module"
+
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
+
+PV = "2241"
+
+# LPM seems to be missing from 2.24.01
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "http://install.source.dir.com/codec_engine_2_24_01.tar.gz "
+
+# Set the source directory
+S = "${WORKDIR}/codec_engine_2_24_01"
+
+export DSPLINK="${S}/cetools/packages/dsplink"
+
+LPMDSPPOWERSOC ?= "omap3530"
+LPMDSPPOWERSOC_omap3evm ?= "omap3530"
+LPMDSPPOWERSOC_beagleboard ?= "omap3530"
+
+do_compile () {
+ # TODO :: KERNEL_CC, etc need replacing with user CC
+ # TODO :: Need to understand why OBJDUMP is required for kernel module
+ # Unset these since LDFLAGS gets picked up and used incorrectly.... need
+ # investigation
+
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+
+ cd ${S}/cetools/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm
+ make \
+ DSPLINK_REPO="${DSPLINK}/.." \
+ LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
+ MVTOOL_PREFIX="${TARGET_PREFIX}" \
+ clean default
+}
+
+do_install () {
+
+ # LPM/CMEM/SDMA drivers - kernel modules
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
+ install -m 0755 ${S}/cetools/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm/*.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
+}
+
+
+pkg_postinst () {
+ if [ -n "$D" ]; then
+ exit 1
+ fi
+ depmod -a
+ update-modules || true
+}
+
+pkg_postrm () {
+ update-modules || true
+}
+
+INHIBIT_PACKAGE_STRIP = "1"
+
+FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"
+RDEPENDS += " ti-dsplink-module"
+