diff options
-rw-r--r-- | recipes/ti/ti-local-power-manager.inc | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/recipes/ti/ti-local-power-manager.inc b/recipes/ti/ti-local-power-manager.inc index ada50ee473..7c5a8fc983 100644 --- a/recipes/ti/ti-local-power-manager.inc +++ b/recipes/ti/ti-local-power-manager.inc @@ -1,16 +1,21 @@ -DESCRIPTION = "LPM module for TI OMAP3 processors" +DESCRIPTION = "TI Local Power Manager (LPM)" +HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm" -DEPENDS = "ti-linuxutils ti-dsplink-module" +require ti-paths.inc +require ti-staging.inc -# Set the source directory -S = "${WORKDIR}/local_power_manager_linux_${PV}" +PROVIDES = "ti-lpm-module" -require ti-paths.inc +inherit module #This is a kernel module, don't set PR directly MACHINE_KERNEL_PR_append = "a" -inherit module +S = "${WORKDIR}/local_power_manager_linux_${PV}" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm/${PV}/exports/local_power_manager_linux_${PV}.tar.gz;name=lpmtarball" + +DEPENDS = "ti-dsplink-module" do_compile () { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS @@ -23,19 +28,19 @@ do_compile () { } do_install () { - # LPM/CMEM/SDMA drivers - kernel modules +# TODO install the apps and the scripts + 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 + 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" +PACKAGES += " ti-lpm-module" +FILES_ti-lpm-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko" +RDEPENDS_ti-lpm-module += " ti-dsplink-module" -INHIBIT_PACKAGE_STRIP = "1" +# TODO add " ti-lpm-apps/scripts" package as appropriate |