diff options
author | Roger Monk <r-monk@ti.com> | 2010-01-15 12:22:32 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:11 +0200 |
commit | 078f98eecfb365a266193bf6297b80febccb492e (patch) | |
tree | a9efe5c5acca09a6506d8bc531afc67cd9f890ba /recipes/ti/ti-local-power-manager.inc | |
parent | b8ffb54736d1483133c809356a3211a11b7cf9d9 (diff) | |
download | openembedded-078f98eecfb365a266193bf6297b80febccb492e.tar.gz |
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 <k-kooi@ti.com>
Diffstat (limited to 'recipes/ti/ti-local-power-manager.inc')
-rw-r--r-- | recipes/ti/ti-local-power-manager.inc | 41 |
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" |