summaryrefslogtreecommitdiff
path: root/recipes/ti/ti-local-power-manager.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ti/ti-local-power-manager.inc')
-rw-r--r--recipes/ti/ti-local-power-manager.inc41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/ti/ti-local-power-manager.inc b/recipes/ti/ti-local-power-manager.inc
new file mode 100644
index 0000000000..ada50ee473
--- /dev/null
+++ b/recipes/ti/ti-local-power-manager.inc
@@ -0,0 +1,41 @@
+DESCRIPTION = "LPM module for TI OMAP3 processors"
+
+DEPENDS = "ti-linuxutils ti-dsplink-module"
+
+# Set the source directory
+S = "${WORKDIR}/local_power_manager_linux_${PV}"
+
+require ti-paths.inc
+
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
+
+inherit module
+
+do_compile () {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ cd ${S}/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm
+ make \
+ DSPLINK_REPO="${LINK_INSTALL_DIR}" \
+ 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}/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm/*.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
+}
+
+# stage tree - other packages may need this
+do_stage() {
+ install -d ${LPM_INSTALL_DIR}
+ cp -pPrf ${S}/* ${LPM_INSTALL_DIR}
+}
+
+RDEPENDS_${PN} += " ti-dsplink-module"
+
+FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"
+
+INHIBIT_PACKAGE_STRIP = "1"