summaryrefslogtreecommitdiff
path: root/recipes/ti/ti-dm365mm-module.inc
blob: caf0441a997a33915089fb5e22bffbcfee0cf5cd (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
DESCRIPTION = "User space DMA module for DM365"
SECTION = "devel"
LICENSE = "GPLv2"

BASE_SRC_URI = "http://install.source.dir.local"

SRC_URI = "${BASE_SRC_URI}/dm365mm_${PV}.tar.gz;name=dm365mmtarball"

S = "${WORKDIR}/dm365mm_${PV}"

inherit module

do_compile() {
    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS

    find ${S} -name "*.ko" -exec rm {} \; || true
    cd ${S}/module
    make \
      LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
      MVTOOL_PREFIX="${TARGET_PREFIX}";
}

do_install () {
    install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
    install -m 0755 ${S}/module/dm365mmap.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
}

PACKAGE_STRIP = "no"
INSANE_SKIP_${PN} = True