diff options
Diffstat (limited to 'recipes-ti/codec-engine/ti-codec-engine.inc')
-rw-r--r-- | recipes-ti/codec-engine/ti-codec-engine.inc | 199 |
1 files changed, 0 insertions, 199 deletions
diff --git a/recipes-ti/codec-engine/ti-codec-engine.inc b/recipes-ti/codec-engine/ti-codec-engine.inc deleted file mode 100644 index 15bd4642..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine.inc +++ /dev/null | |||
@@ -1,199 +0,0 @@ | |||
1 | DESCRIPTION = "Codec Engine for TI ARM/DSP processors" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | # TODO :: Add Codec Engine Library Rebuild | ||
7 | # TODO :: Add Examples APP_LOCAL build as well? | ||
8 | # TODO :: Check DEPENDS - are the DSP side packages required for ARM-only products? | ||
9 | |||
10 | require recipes-ti/includes/ti-paths.inc | ||
11 | require recipes-ti/includes/ti-staging.inc | ||
12 | |||
13 | PROVIDES += "ti-codec-engine-examples" | ||
14 | |||
15 | PR = "${MACHINE_KERNEL_PR}" | ||
16 | |||
17 | S = "${WORKDIR}/codec_engine_${PV}" | ||
18 | |||
19 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV},lite.tar.gz;name=cetarball " | ||
20 | |||
21 | DEPENDS = "ti-framework-components ti-xdais ti-xdctools ti-linuxutils" | ||
22 | DEPENDS_append_dm6446 = " ti-dspbios ti-dsplink ti-local-power-manager ti-cgt6x ti-biosutils ti-edma3lld" | ||
23 | DEPENDS_append_dm6467 = " ti-dspbios ti-dsplink ti-cgt6x ti-biosutils ti-edma3lld" | ||
24 | DEPENDS_append_omap3 = " ti-dspbios ti-dsplink ti-local-power-manager ti-cgt6x ti-biosutils ti-edma3lld" | ||
25 | DEPENDS_append_omapl137 = " ti-dspbios ti-dsplink ti-cgt6x ti-biosutils ti-edma3lld" | ||
26 | DEPENDS_append_omapl138 = " ti-dspbios ti-dsplink ti-cgt6x ti-biosutils ti-edma3lld" | ||
27 | |||
28 | # SOC_FAMILY configuration | ||
29 | |||
30 | # Define DEVICES variable | ||
31 | CEEXAMPLESDEVICES_dm6446 = "DM6446" | ||
32 | CEEXAMPLESDEVICES_dm6467 = "DM6467" | ||
33 | CEEXAMPLESDEVICES_omap3 = "OMAP3530" | ||
34 | CEEXAMPLESDEVICES_dm355 = "DM355" | ||
35 | CEEXAMPLESDEVICES_dm365 = "DM365" | ||
36 | CEEXAMPLESDEVICES_omapl137 = "OMAPL137" | ||
37 | CEEXAMPLESDEVICES_omapl138 = "OMAPL138" | ||
38 | CEEXAMPLESDEVICES ?= "<UNDEFINED_CEEXAMPLESDEVICES>" | ||
39 | |||
40 | # Define GPPOS variable | ||
41 | CEEXAMPLESGPPOS_dm6446 = "LINUX_GCC" | ||
42 | CEEXAMPLESGPPOS_dm6467 = "LINUX_GCC" | ||
43 | CEEXAMPLESGPPOS_omap3 = "LINUX_GCC" | ||
44 | CEEXAMPLESGPPOS_dm355 = "LINUX_GCC" | ||
45 | CEEXAMPLESGPPOS_dm365 = "LINUX_GCC" | ||
46 | CEEXAMPLESGPPOS_omapl137 = "LINUX_GCC" | ||
47 | CEEXAMPLESGPPOS_omapl138 = "LINUX_GCC" | ||
48 | CEEXAMPLESGPPOS ?= "<UNDEFINED_CEEXAMPLESGPPOS>" | ||
49 | |||
50 | # Define PROGRAM variable | ||
51 | CEEXAMPLESPROGRAMS_dm6446 = "APP_CLIENT DSP_SERVER" | ||
52 | CEEXAMPLESPROGRAMS_dm6467 = "APP_CLIENT DSP_SERVER" | ||
53 | CEEXAMPLESPROGRAMS_omap3 = "APP_CLIENT DSP_SERVER" | ||
54 | CEEXAMPLESPROGRAMS_dm355 = "APP_LOCAL" | ||
55 | CEEXAMPLESPROGRAMS_dm365 = "APP_LOCAL" | ||
56 | CEEXAMPLESPROGRAMS_omapl137 = "APP_CLIENT DSP_SERVER" | ||
57 | CEEXAMPLESPROGRAMS_omapl138 = "APP_CLIENT DSP_SERVER" | ||
58 | CEEXAMPLESPROGRAMS ?= "<UNDEFINED_CEEXAMPLESPROGRAMS>" | ||
59 | |||
60 | do_configure() { | ||
61 | |||
62 | # No way to pass this via ENV? | ||
63 | sed -i \ | ||
64 | -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \ | ||
65 | ${S}/examples/xdcpaths.mak | ||
66 | |||
67 | # compiler is not under ${TOOLCHAIN_PATH}/bin anymore... | ||
68 | sed -i \ | ||
69 | -e s:bin/${TARGET_PREFIX}gcc:${TARGET_PREFIX}gcc:g \ | ||
70 | ${S}/examples/xdcpaths.mak | ||
71 | |||
72 | # ... and ar is not there too | ||
73 | # sed -i \ | ||
74 | # -e s:/arm-angstrom-linux-gnueabi/bin/ar:/arm-angstrom-linux-gnueabi-ar:g \ | ||
75 | # ${S}/examples/ti/xdais/dm/examples/viddec1_copy/package.mak | ||
76 | } | ||
77 | |||
78 | do_prepsources() { | ||
79 | |||
80 | for i in codecs extensions servers apps ; do | ||
81 | cd ${S}/examples/ti/sdo/ce/examples/$i | ||
82 | make DEVICES="${CEEXAMPLESDEVICES}" \ | ||
83 | GPPOS="${CEEXAMPLESGPPOS}" \ | ||
84 | PROGRAMS="${CEEXAMPLESPROGRAMS}" \ | ||
85 | CE_INSTALL_DIR="${S}" \ | ||
86 | XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ | ||
87 | BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \ | ||
88 | BIOSUTILS_INSTALL_DIR="${BIOSUTILS_INSTALL_DIR}" \ | ||
89 | DSPLINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ | ||
90 | XDAIS_INSTALL_DIR="${XDAIS_INSTALL_DIR}" \ | ||
91 | FC_INSTALL_DIR="${FC_INSTALL_DIR}" \ | ||
92 | CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \ | ||
93 | LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \ | ||
94 | EDMA3_LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \ | ||
95 | CGTOOLS_V5T="${TOOLCHAIN_PATH}" \ | ||
96 | CGTOOLS_C64P="${CODEGEN_INSTALL_DIR}" \ | ||
97 | CGTOOLS_C674="${CODEGEN_INSTALL_DIR}" \ | ||
98 | clean | ||
99 | # '.make' target was used in CE < 2.26, but its no longer | ||
100 | # supported in CE >= 2.26. Now we are moved to >=2.26 | ||
101 | # hence commenting out the .make target. | ||
102 | # .make clean | ||
103 | done | ||
104 | } | ||
105 | |||
106 | addtask prepsources after do_configure before do_compile | ||
107 | |||
108 | do_compile () { | ||
109 | |||
110 | for i in codecs extensions servers apps ; do | ||
111 | cd ${S}/examples/ti/sdo/ce/examples/$i | ||
112 | make DEVICES="${CEEXAMPLESDEVICES}" \ | ||
113 | GPPOS="${CEEXAMPLESGPPOS}" \ | ||
114 | PROGRAMS="${CEEXAMPLESPROGRAMS}" \ | ||
115 | CE_INSTALL_DIR="${S}" \ | ||
116 | XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ | ||
117 | BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \ | ||
118 | BIOSUTILS_INSTALL_DIR="${BIOSUTILS_INSTALL_DIR}" \ | ||
119 | DSPLINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ | ||
120 | XDAIS_INSTALL_DIR="${XDAIS_INSTALL_DIR}" \ | ||
121 | FC_INSTALL_DIR="${FC_INSTALL_DIR}" \ | ||
122 | CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \ | ||
123 | LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \ | ||
124 | EDMA3_LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \ | ||
125 | CGTOOLS_V5T="${TOOLCHAIN_PATH}" \ | ||
126 | CGTOOLS_C64P="${CODEGEN_INSTALL_DIR}" \ | ||
127 | CGTOOLS_C674="${CODEGEN_INSTALL_DIR}" \ | ||
128 | all | ||
129 | done | ||
130 | } | ||
131 | |||
132 | do_install() { | ||
133 | |||
134 | install -d ${D}/${installdir}/ti-codec-engine-examples | ||
135 | if [ -e ${S}/examples/apps/system_files/${CEEXAMPLESDEVICES}/loadmodules.sh ]; then | ||
136 | cp ${S}/examples/apps/system_files/${CEEXAMPLESDEVICES}/loadmodules.sh ${D}/${installdir}/ti-codec-engine-examples | ||
137 | elif [ -e ${WORKDIR}/loadmodules.sh ]; then | ||
138 | cp ${WORKDIR}/loadmodules.sh ${D}/${installdir}/ti-codec-engine-examples | ||
139 | fi | ||
140 | |||
141 | cd ${S}/examples/ti/sdo/ce/examples | ||
142 | |||
143 | # Install the apps, servers and test data, mirroring the source directory structure | ||
144 | # - Put the servers inside the same folder as the executable | ||
145 | # - TODO - Check nested dirs (e.g. dualcpu_separateconfig) | ||
146 | |||
147 | # Put all servers in separate tree. | ||
148 | for i in $(find . -name "*.${DSPSUFFIX}"); do | ||
149 | install -d ${D}/${installdir}/ti-codec-engine-examples/servers/`dirname ${i} | cut -f3 -d /` | ||
150 | install ${i} ${D}/${installdir}/ti-codec-engine-examples/servers/`dirname ${i} | cut -f3 -d /` | ||
151 | done | ||
152 | |||
153 | for i in $(find . -name "*.xv5T"); do | ||
154 | install -d ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` | ||
155 | install ${i} ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` | ||
156 | done | ||
157 | |||
158 | for i in $(find . -name "*.dat"); do | ||
159 | install -d ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` | ||
160 | install ${i} ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` | ||
161 | done | ||
162 | |||
163 | # For each directory, softlink to the app server, except special cases | ||
164 | cd ${D}/${installdir}/ti-codec-engine-examples | ||
165 | for i in $(find . -type d | grep -v servers); do | ||
166 | { | ||
167 | pwd | ||
168 | cd ${D}/${installdir}/ti-codec-engine-examples/$i | ||
169 | if [ $(basename $i) = "audio1_ires" ] ; then | ||
170 | ln -s ../servers/audio1_ires/audio1_ires.${DSPSUFFIX} | ||
171 | elif [ $(basename $i) = "server_api_example" ] ; then | ||
172 | ln -s ../servers/server_api_example/audio_copy.${DSPSUFFIX} | ||
173 | elif [ $(basename $i) != "." ] ; then | ||
174 | ln -s ../servers/all_codecs/all.${DSPSUFFIX} | ||
175 | else | ||
176 | echo Skipping $i | ||
177 | fi | ||
178 | } | ||
179 | done | ||
180 | |||
181 | # Install/Stage the Source Tree | ||
182 | install -d ${D}${CE_INSTALL_DIR_RECIPE} | ||
183 | cp -pPrf ${S}/* ${D}${CE_INSTALL_DIR_RECIPE} | ||
184 | } | ||
185 | |||
186 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
187 | |||
188 | PACKAGES += "ti-codec-engine-examples" | ||
189 | |||
190 | RDEPENDS_ti-codec-engine-examples = " ti-cmem-module" | ||
191 | RDEPENDS_ti-codec-engine-examples_append_dm6446 = " ti-dsplink-module ti-lpm-module" | ||
192 | RDEPENDS_ti-codec-engine-examples_append_dm6467 = " ti-dsplink-module" | ||
193 | RDEPENDS_ti-codec-engine-examples_append_omap3 = " ti-dsplink-module ti-lpm-module" | ||
194 | RDEPENDS_ti-codec-engine-examples_append_omapl137 = " ti-dsplink-module" | ||
195 | RDEPENDS_ti-codec-engine-examples_append_omapl138 = " ti-dsplink-module" | ||
196 | FILES_ti-codec-engine-examples = "${installdir}/ti-codec-engine-examples/*" | ||
197 | INSANE_SKIP_ti-codec-engine-examples = "1" | ||
198 | |||
199 | FILES_${PN}-dbg += "${installdir}/ti-codec-engine-examples/*/.debug" | ||