summaryrefslogtreecommitdiff
path: root/recipes/ti/meta-toolchain-dvsdk.bb
blob: 77e04aa27693ff37e962c31282fe244edabb8af4 (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
PR = "r10"

TOOLCHAIN_HOST_TASK = "task-toolchain-dvsdk-host"
TOOLCHAIN_TARGET_TASK = "task-toolchain-dvsdk-target"

require ../meta/meta-toolchain-arago.bb
require ti-paths.inc

# If we start including kernels we should change SOC_FAMILY to MACHINE_ARCH
SDK_SUFFIX = "toolchain-dvsdk-${SOC_FAMILY}-${BUILD_ARCH}"

DVSDK_TARGET_EXCLUDE_dm355 = "\
    ti-linuxutils \
    ti-dm355mm-module \
    ti-codec-combo-dm355 \
    ti-dmai-apps \
    "

DVSDK_TARGET_EXCLUDE_dm365 = "\
    ti-linuxutils \
    ti-dm365mm-module \
    ti-codec-combo-dm365 \
    ti-dmai-apps \
    "

DVSDK_TARGET_EXCLUDE_dm6446 = "\
    ti-linuxutils \
    ti-dsplink-module \
    ti-codec-combo-dm6446 \
    ti-dmai-apps \
    "

DVSDK_TARGET_EXCLUDE_dm6467 = "\
    ti-dm355mm-module \
    ti-dmai-apps \
    "


DVSDK_TARGET_EXCLUDE_omap3 = "\
    ti-linuxutils \
    ti-dsplink-module \
    ti-lpm-module \
    ti-codec-combo-omap3530 \
    ti-dmai-apps \
    "

TOOLCHAIN_TARGET_EXCLUDE += "\
    ${DVSDK_TARGET_EXCLUDE} \
    "

# Need to sed s/staging/sdksysroot/g
do_populate_sdk_append() {
       script = "${SDK_OUTPUT}/${SDKPATH}/environment-setup"
       touch $script
       echo 'export CODEC_INSTALL_DIR=${CODEC_INSTALL_DIR}' >> $script
       echo 'export CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR}' >> $script
       echo 'export XDC_INSTALL_DIR=${XDC_INSTALL_DIR}' >> $script
       echo 'export XDAIS_INSTALL_DIR=${XDAIS_INSTALL_DIR}' >> $script
       echo 'export BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR}' >> $script
       echo 'export BIOSUTILS_INSTALL_DIR=${BIOSUTILS_INSTALL_DIR}' >> $script
       echo 'export FC_INSTALL_DIR=${FC_INSTALL_DIR}' >> $script
       echo 'export CE_INSTALL_DIR=${CE_INSTALL_DIR}' >> $script
       echo 'export EDMA3_LLD_INSTALL_DIR=${EDMA3_LLD_INSTALL_DIR}' >> $script
       echo 'export LINUXUTILS_INSTALL_DIR=${LINUXUTILS_INSTALL_DIR}' >> $script
       echo 'export CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR}' >> $script
       echo 'export LINK_INSTALL_DIR=${LINK_INSTALL_DIR}' >> $script
       echo 'export LPM_INSTALL_DIR=${LPM_INSTALL_DIR}' >> $script
       echo 'export DMAI_INSTALL_DIR=${DMAI_INSTALL_DIR}' >> $script

       # Repack SDK with new environment-setup
       cd ${SDK_OUTPUT}
       fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
}