aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ti/ti-audio-soc-example.inc
blob: 5e37113c441c0b2fa6bb4595c8f376246f17e6c9 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
DESCRIPTION = "TI Audio Soc devices example"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/apps_processors/Audio_soc_example/1_00/index_FDS.html"
SECTION = "devel"
LICENSE = "TI BSD"

require ti-paths.inc
require ti-staging.inc

COMPATIBLE_MACHINE = "(omapl137|omapl138)"

PR = "r5"

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

SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/apps_processors/Audio_soc_example/1_00/exports/audio_soc_example_${PV}.tar.gz;name=audiosoctarball"

DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-biospsp ti-edma3lld ti-dsplink"
DEPENDS += "virtual/kernel"

PLATFORM_omapl137 = "omapl137" 
PLATFORM_omapl138= "omapl138" 
 
BOARD_omapl137 =  "evmOMAPL137"
BOARD_omapl138 =  "evmOMAPL138"
 
do_compile() {
    # Build gpp sample application
    cd ${S}
    make \
    PLATFORM="${PLATFORM}" \
    CSTOOL_DIR="${TOOLCHAIN_PATH}" \
    CSTOOLS_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" \
    LINUXKERNEL_INSTALL_DIR="{STAGING_KERNEL_DIR}" \
    BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \
    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
    CODEGEN_INSTALL_DIR="${CODEGEN_INSTALL_DIR}" \
    LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \
    BIOSPSP_INSTALL_DIR="${BIOSPSP_INSTALL_DIR}" \
    EDMA3LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \
    gpp

    # Build dsp sample application
    make \
    PLATFORM="${PLATFORM}" \
    CSTOOL_DIR="${TOOLCHAIN_PATH}" \
    CSTOOLS_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" \
    LINUXKERNEL_INSTALL_DIR="{STAGING_KERNEL_DIR}" \
    BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \
    XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
    CODEGEN_INSTALL_DIR="${CODEGEN_INSTALL_DIR}" \
    LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \
    BIOSPSP_INSTALL_DIR="${BIOSPSP_INSTALL_DIR}" \
    EDMA3LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \
    dsp 
}


do_install() {
    install -d ${D}${AUDIO_SOC_INSTALL_DIR_RECIPE}
    cp -pPrf ${S}/* ${D}${AUDIO_SOC_INSTALL_DIR_RECIPE}

    install -d ${D}/${installdir}/ti-audio-soc-example
    cp -Rf ${S}/gpp/${BOARD} ${D}/${installdir}/ti-audio-soc-example
    cp -Rf ${S}/data/* ${D}/${installdir}/ti-audio-soc-example

    cp -Rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Debug
    cp -Rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Release

}

FILES_${PN} = "${installdir}/ti-audio-soc-example/*"
INSANE_SKIP_${PN} = "True"

RRECOMMENDS_ti_audio-soc-example += "ti-dsplink-module"