From 923e18a8d41682c05a31a45a1bc302483f077116 Mon Sep 17 00:00:00 2001 From: Roger Monk Date: Mon, 8 Feb 2010 15:41:58 +0000 Subject: ti-local-power-manager : Build and Install Utilities, Remove Module.bbclass * rebuild and install the utility modules (lpmOn/Off) * these are needed for non-codec-engine dsplink users * remove module.bbclass * this recipe builds kernel and userspace and doesn't currently utilise * replace with relevant module specific pieces (KERNEL_PR/DEPENDS/pre/postinst) * preparing scene for building complete lpm library * temporary generate config.bld for xdc build * may move this to separate recipe/package later * move SOC_FAMILY defines for LPM inside recipe Signed-off-by: Roger Monk --- recipes/ti/ti-local-power-manager.inc | 104 +++++++++++++++++++++++++++++----- recipes/ti/ti-multimedia-common.inc | 4 -- 2 files changed, 91 insertions(+), 17 deletions(-) (limited to 'recipes') diff --git a/recipes/ti/ti-local-power-manager.inc b/recipes/ti/ti-local-power-manager.inc index 5cb304a12a..ece42ffdba 100644 --- a/recipes/ti/ti-local-power-manager.inc +++ b/recipes/ti/ti-local-power-manager.inc @@ -1,23 +1,73 @@ DESCRIPTION = "TI Local Power Manager (LPM)" HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm" +# TODO : Hardcoded path to evm3530 - need to fix when adding omap24xx/dm6446 (other lpm targets) + require ti-paths.inc require ti-staging.inc PROVIDES = "ti-lpm-module" +PROVIDES += "ti-lpm-utils" -inherit module - -#This is a kernel module, don't set PR directly -MACHINE_KERNEL_PR_append = "b" +# This package builds a kernel module, use kernel PR as base and append a local version +PR = "${MACHINE_KERNEL_PR}" +PR_append = "c" 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" +DEPENDS = "ti-dsplink-module ti-xdctools" +DEPENDS += "virtual/kernel" + +# SOC_FAMILY configuration + +LPMDSPPOWERSOC_omap3 = "omap3530" +LPMDSPPOWERSOC_dm6446 = "dm6446" +LPMDSPPOWERSOC ?= "" + +do_configure () { + + # Generate a config.bld for XDC + + cat > ${S}/config.bld <