From 078f98eecfb365a266193bf6297b80febccb492e Mon Sep 17 00:00:00 2001 From: Roger Monk Date: Fri, 15 Jan 2010 12:22:32 +0000 Subject: ti-recipes: consistency cleanup * ti-xdctools: consistent recipe cleanup + add versions * ti-dspbios: recipe cleanup + add versions * ti-cgt6x: consistent recipe cleanup + add versions * ti-biosutils: consistent recipe cleanup * ti-xdais: consistent recipe cleanup + add versions * ti-edma3lld: consistent recipe cleanup + remove broken version * ti-framework-components: consistent recipe cleanup * ti-dspbios: remove non-public versions * ti-lpm-module/ti-local-power-manager: recipe cleanup, breakout and rename Signed-off-by: Koen Kooi --- recipes/ti/ti-local-power-manager.inc | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes/ti/ti-local-power-manager.inc (limited to 'recipes/ti/ti-local-power-manager.inc') 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" -- cgit 1.2.3-korg