blob: 7c5a8fc98335e94faa4badb2cfff688b0d357562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
DESCRIPTION = "TI Local Power Manager (LPM)"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm"
require ti-paths.inc
require ti-staging.inc
PROVIDES = "ti-lpm-module"
inherit module
#This is a kernel module, don't set PR directly
MACHINE_KERNEL_PR_append = "a"
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
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 () {
# 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
}
do_stage() {
install -d ${LPM_INSTALL_DIR}
cp -pPrf ${S}/* ${LPM_INSTALL_DIR}
}
PACKAGES += " ti-lpm-module"
FILES_ti-lpm-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"
RDEPENDS_ti-lpm-module += " ti-dsplink-module"
# TODO add " ti-lpm-apps/scripts" package as appropriate
|