summaryrefslogtreecommitdiff
path: root/recipes/ti/ti-lpm-module_2.24.01.bb
blob: 32bc02b1e5ea4c29e1d87f107493fb7c1a39ddcc (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
DESCRIPTION = "LPM module for TI OMAP3 processors"

DEPENDS = "ti-linuxutils"

# tconf breaks with '.' in PWD
PV = "2_24_01"

SRC_URI = "http://install.source.dir.local/local_power_manager_1_24.tar.gz"

# Set the source directory
S = "${WORKDIR}/local_power_manager_1_24"

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="${DSPLINK}/.." \
      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
}

RDEPENDS_${PN} += " ti-dsplink-module"

FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"

INHIBIT_PACKAGE_STRIP = "1"