diff options
author | Denys Dmytriyenko <denys@ti.com> | 2017-06-24 00:14:17 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-06-27 11:58:29 -0400 |
commit | dcde4c2dbadcf01828314446c5c72e873043e3cf (patch) | |
tree | 86f7c7ad2a807f98fc54784cb1037be22ed8f3ee /recipes-ti/codec-engine | |
parent | 8dad379b25308c108c2a79fcca08088ca4d909d6 (diff) | |
download | meta-ti-dcde4c2dbadcf01828314446c5c72e873043e3cf.tar.gz |
codec-engine: remove outdated components
Remove the old 2.x version of Codec Engine, that hasn't been updated in years
and the corresponding codecs-omap3530 package.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti/codec-engine')
10 files changed, 0 insertions, 687 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" | ||
diff --git a/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch b/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch deleted file mode 100644 index b93161f4..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | do_compile produces: | ||
2 | |||
3 | js: "/prj/oe/bb/build/tmp-eglibc/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-2_26_02_11-r114a/codec_engine_2_26_02_11/packages/ti/sdo/ce/osal/linux/package.xs", line 50: XDC runtime error: gnu.targets.arm.GCArmv5T: '$used' is sealed | ||
4 | |||
5 | Fix per suggestion in http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/110920.aspx | ||
6 | |||
7 | --- ./packages/ti/sdo/ce/osal/linux/package.xs.orig 2010-12-01 23:24:48.000000000 -0600 | ||
8 | +++ ./packages/ti/sdo/ce/osal/linux/package.xs 2011-12-27 14:59:39.382423341 -0600 | ||
9 | @@ -47,10 +47,10 @@ | ||
10 | } | ||
11 | |||
12 | /* Conditionally load CMEM here */ | ||
13 | - var targetMod = xdc.useModule(prog.build.target.$name); | ||
14 | - if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) { | ||
15 | + //var targetMod = xdc.useModule(prog.build.target.$name); | ||
16 | + //if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) { | ||
17 | xdc.useModule('ti.sdo.linuxutils.cmem.CMEM'); | ||
18 | - } | ||
19 | + //} | ||
20 | |||
21 | var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global'); | ||
22 | |||
diff --git a/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch b/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch deleted file mode 100644 index 1eb81086..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine/ce-2-26-00-08-Examples-Add-LPM_INSTALL_DIR-packages.patch +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | diff --git a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile | ||
2 | index 2bbfb72..2a00d0d 100644 | ||
3 | --- a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile | ||
4 | +++ b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile | ||
5 | @@ -80,6 +80,7 @@ REPO_PATH = \ | ||
6 | $(FC_INSTALL_DIR)/packages \ | ||
7 | $(FC_INSTALL_DIR)/examples \ | ||
8 | $(CMEM_INSTALL_DIR)/packages \ | ||
9 | + $(LPM_INSTALL_DIR)/packages \ | ||
10 | $(BIOSUTILS_INSTALL_DIR)/packages \ | ||
11 | $(EXAMPLES_ROOTDIR) | ||
12 | |||
13 | diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile | ||
14 | index f2b187a..827f6bc 100644 | ||
15 | --- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile | ||
16 | +++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile | ||
17 | @@ -74,6 +74,7 @@ REPO_PATH = \ | ||
18 | $(XDAIS_INSTALL_DIR)/packages \ | ||
19 | $(FC_INSTALL_DIR)/packages \ | ||
20 | $(CMEM_INSTALL_DIR)/packages \ | ||
21 | + $(LPM_INSTALL_DIR)/packages \ | ||
22 | $(BIOSUTILS_INSTALL_DIR)/packages \ | ||
23 | $(EXAMPLES_ROOTDIR) | ||
24 | |||
25 | diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile | ||
26 | index a4fe4dc..a23f991 100644 | ||
27 | --- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile | ||
28 | +++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile | ||
29 | @@ -76,6 +76,7 @@ REPO_PATH = \ | ||
30 | $(XDAIS_INSTALL_DIR)/packages \ | ||
31 | $(FC_INSTALL_DIR)/packages \ | ||
32 | $(CMEM_INSTALL_DIR)/packages \ | ||
33 | + $(LPM_INSTALL_DIR)/packages \ | ||
34 | $(BIOSUTILS_INSTALL_DIR)/packages \ | ||
35 | $(EXAMPLES_ROOTDIR) | ||
36 | |||
37 | diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile | ||
38 | index 8baa9dd..3c01c04 100644 | ||
39 | --- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile | ||
40 | +++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile | ||
41 | @@ -74,6 +74,7 @@ REPO_PATH = \ | ||
42 | $(XDAIS_INSTALL_DIR)/packages \ | ||
43 | $(FC_INSTALL_DIR)/packages \ | ||
44 | $(CMEM_INSTALL_DIR)/packages \ | ||
45 | + $(LPM_INSTALL_DIR)/packages \ | ||
46 | $(BIOSUTILS_INSTALL_DIR)/packages \ | ||
47 | $(EXAMPLES_ROOTDIR) | ||
48 | |||
49 | diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile | ||
50 | index 3319c06..09a6357 100644 | ||
51 | --- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile | ||
52 | +++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile | ||
53 | @@ -75,6 +75,7 @@ REPO_PATH = \ | ||
54 | $(XDAIS_INSTALL_DIR)/packages \ | ||
55 | $(FC_INSTALL_DIR)/packages \ | ||
56 | $(CMEM_INSTALL_DIR)/packages \ | ||
57 | + $(LPM_INSTALL_DIR)/packages \ | ||
58 | $(BIOSUTILS_INSTALL_DIR)/packages \ | ||
59 | $(EXAMPLES_ROOTDIR) | ||
60 | |||
diff --git a/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh b/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh deleted file mode 100644 index 60a40f0c..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine/dm365-evm/loadmodules.sh +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (c) 2008, Texas Instruments Incorporated | ||
3 | # All rights reserved. | ||
4 | # | ||
5 | # Redistribution and use in source and binary forms, with or without | ||
6 | # modification, are permitted provided that the following conditions | ||
7 | # are met: | ||
8 | # | ||
9 | # * Redistributions of source code must retain the above copyright | ||
10 | # notice, this list of conditions and the following disclaimer. | ||
11 | # | ||
12 | # * Redistributions in binary form must reproduce the above copyright | ||
13 | # notice, this list of conditions and the following disclaimer in the | ||
14 | # documentation and/or other materials provided with the distribution. | ||
15 | # | ||
16 | # * Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | # its contributors may be used to endorse or promote products derived | ||
18 | # from this software without specific prior written permission. | ||
19 | # | ||
20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
21 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
22 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
23 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
24 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
25 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
26 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
27 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
28 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
29 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
30 | # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | # | ||
32 | |||
33 | # insert cmemk, tell it to occupy physical 120MB-128MB, create | ||
34 | # 20 4K buffers, 10 128K buffers and two 1MB buffers | ||
35 | CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=20x4096,10x131072,2x1048576" | ||
36 | |||
37 | if [ -e cmemk.ko ] | ||
38 | then | ||
39 | insmod cmemk.ko $CMEM_MODPARAMS | ||
40 | else | ||
41 | modprobe cmemk $CMEM_MODPARAMS | ||
42 | fi | ||
43 | |||
44 | # Allow cmem driver to be used by all users | ||
45 | if [ -e /dev/cmem ] | ||
46 | then | ||
47 | chmod 666 /dev/cmem | ||
48 | fi | ||
49 | |||
diff --git a/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh b/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh deleted file mode 100644 index 9f9233d1..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # | ||
2 | # Default Memory Map - for OMAP3530 CE 2.21 examples | ||
3 | # | ||
4 | # Start Addr Size Description | ||
5 | # ------------------------------------------- | ||
6 | # 0x80000000 80 MB Linux | ||
7 | # 0x85000000 08 MB CMEM | ||
8 | # 0x86000000 24 MB DDRALGHEAP | ||
9 | # 0x87800000 6 MB DDR2 (BIOS, Codecs, Applications) | ||
10 | # 0x87E00000 1 MB DSPLINK (MEM) | ||
11 | # 0x87F00000 4 KB DSPLINK (RESET) | ||
12 | # 0x87F01000 1020 KB unused | ||
13 | |||
14 | # sanity check to verify that we're using the right mem=xxM (80M in this case) | ||
15 | awk '/MemTotal:/ { | ||
16 | mem=$2 | ||
17 | |||
18 | if (mem > 80 * 1024) | ||
19 | print "Warning! You need to use mem=80M or less on the kernel cmdline" | ||
20 | |||
21 | printf "You have %dkB total memory for Linux\n", mem | ||
22 | }' /proc/meminfo | ||
23 | |||
24 | # Select cmemk parameters for best fit, i.e. starting at 0x85000000 | ||
25 | modprobe cmemk phys_start=0x85000000 phys_end=0x86000000 pools=20x4096,8x131072,5x1048576,1x1429440,1x256000,1x3600000,5x829440 | ||
26 | |||
27 | # insert DSP/BIOS Link driver | ||
28 | # | ||
29 | modprobe dsplinkk | ||
30 | |||
31 | # make /dev/dsplink | ||
32 | #rm -f /dev/dsplink | ||
33 | #mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0 | ||
34 | |||
35 | # insert Local Power Manager driver | ||
36 | # | ||
37 | modprobe lpm_omap3530 | ||
diff --git a/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh b/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh deleted file mode 100644 index f990d997..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # Unload modules - CODEC ENGINE - OMAP3530 | ||
2 | |||
3 | # remove lpm module | ||
4 | rmmod lpm_omap3530 | ||
5 | |||
6 | # remove DSP/BIOS Link driver | ||
7 | rmmod dsplinkk | ||
8 | #rm -f /dev/dsplink | ||
9 | |||
10 | # remove cmem module | ||
11 | rmmod cmemk | ||
12 | |||
diff --git a/recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb b/recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb deleted file mode 100644 index 4a27b1d7..00000000 --- a/recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | require ti-codec-engine.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://codec_engine_${PV}_manifest.html;md5=912535f1b02ecf329a3979bf313f91e0" | ||
4 | PV = "2_26_02_11" | ||
5 | PR_append = "b" | ||
6 | |||
7 | SRC_URI += "file://bypass-GCArmv5T-used-is-sealed.patch" | ||
8 | |||
9 | SRC_URI[cetarball.md5sum] = "4f755f77119e4da19ab5cc7ae7ccfdb4" | ||
10 | SRC_URI[cetarball.sha256sum] = "17fa053719265e0901fe3c3f90c9204957c6d0f5351d6b3ba4900df58cb7300f" | ||
11 | |||
12 | INSANE_SKIP_${PN} = "installed-vs-shipped" | ||
diff --git a/recipes-ti/codec-engine/ti-codecs-omap3530/disable-c6accel.diff b/recipes-ti/codec-engine/ti-codecs-omap3530/disable-c6accel.diff deleted file mode 100644 index 6e2ed7e4..00000000 --- a/recipes-ti/codec-engine/ti-codecs-omap3530/disable-c6accel.diff +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | diff -ur a/packages/ti/sdo/server/cs/codec.cfg b/packages/ti/sdo/server/cs/codec.cfg | ||
2 | --- a/packages/ti/sdo/server/cs/codec.cfg 2011-08-07 20:08:57.000000000 +0200 | ||
3 | +++ b/packages/ti/sdo/server/cs/codec.cfg 2011-08-07 20:08:10.000000000 +0200 | ||
4 | @@ -7,7 +7,7 @@ | ||
5 | * which we'll use to initialize config params and add the codecs to | ||
6 | * the Server.algs array. | ||
7 | */ | ||
8 | - var C6ACCEL = xdc.useModule('ti.c6accel.ce.C6ACCEL'); | ||
9 | +/* var C6ACCEL = xdc.useModule('ti.c6accel.ce.C6ACCEL'); | ||
10 | |||
11 | C6ACCEL.serverFxns = "UNIVERSAL_SKEL"; | ||
12 | C6ACCEL.stubFxns = "UNIVERSAL_STUBS"; | ||
13 | @@ -17,7 +17,7 @@ | ||
14 | C6ACCEL.alg.codeSection = codeSection; | ||
15 | C6ACCEL.alg.udataSection = udataSection; | ||
16 | C6ACCEL.alg.dataSection = dataSection; | ||
17 | - | ||
18 | +*/ | ||
19 | var AACHEDEC = xdc.useModule('ti.sdo.codecs.aachedec.ce.AACHEDEC'); | ||
20 | |||
21 | AACHEDEC.serverFxns = "AUDDEC1_SKEL"; | ||
22 | @@ -151,11 +151,11 @@ | ||
23 | * algorithms (e.g. stack sizes, priorities, etc.). | ||
24 | */ | ||
25 | Server.algs = [ | ||
26 | - {name: "c6accel", mod: C6ACCEL , threadAttrs: { | ||
27 | +/* {name: "c6accel", mod: C6ACCEL , threadAttrs: { | ||
28 | stackMemId: 0, priority: Server.MINPRI + 3}, | ||
29 | groupId : 2, | ||
30 | }, | ||
31 | - | ||
32 | +*/ | ||
33 | {name: "aachedec", mod: AACHEDEC , threadAttrs: { | ||
34 | stackMemId: 0, priority: Server.MINPRI + 3}, | ||
35 | groupId : 2, | ||
36 | diff -ur a/packages/ti/sdo/server/cs/package.xs b/packages/ti/sdo/server/cs/package.xs | ||
37 | --- a/packages/ti/sdo/server/cs/package.xs 2011-08-07 20:09:31.000000000 +0200 | ||
38 | +++ b/packages/ti/sdo/server/cs/package.xs 2011-08-07 20:08:21.000000000 +0200 | ||
39 | @@ -7,7 +7,7 @@ | ||
40 | // Each codec is validated with the following call: | ||
41 | // validate_one_codec(<package name>, <module name>); | ||
42 | |||
43 | - validate_one_codec( "ti.c6accel", "C6ACCEL" ); | ||
44 | +// validate_one_codec( "ti.c6accel", "C6ACCEL" ); | ||
45 | validate_one_codec( "ti.sdo.codecs.aachedec", "AACHEDEC" ); | ||
46 | validate_one_codec( "ti.sdo.codecs.deinterlacer", "I2P" ); | ||
47 | validate_one_codec( "ti.sdo.codecs.g711dec", "G711DEC" ); | ||
diff --git a/recipes-ti/codec-engine/ti-codecs-omap3530/mp3dec_cs1omap3530.patch b/recipes-ti/codec-engine/ti-codecs-omap3530/mp3dec_cs1omap3530.patch deleted file mode 100644 index 4ed9267e..00000000 --- a/recipes-ti/codec-engine/ti-codecs-omap3530/mp3dec_cs1omap3530.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | diff -uNr -x .xdcenv.mak -x mp3dec cs1omap3530_1_00_01/packages/ti/sdo/server/cs/codec.cfg cs1omap3530_1_00_01_patches/packages/ti/sdo/server/cs/codec.cfg | ||
2 | --- cs1omap3530_1_00_01/packages/ti/sdo/server/cs/codec.cfg 2009-10-26 14:19:21.000000000 -0500 | ||
3 | +++ cs1omap3530_1_00_01_patches/packages/ti/sdo/server/cs/codec.cfg 2009-10-26 14:36:03.000000000 -0500 | ||
4 | @@ -92,6 +92,14 @@ | ||
5 | MPEG4ENC.alg.udataSection = "DDR2"; | ||
6 | MPEG4ENC.alg.dataSection = "DDR2"; | ||
7 | |||
8 | + var MP3DEC = xdc.useModule('ti.sdo.codecs.mp3dec.ce.MP3DEC'); | ||
9 | + | ||
10 | + // Module Config | ||
11 | + MP3DEC.alg.watermark = false; | ||
12 | + MP3DEC.alg.codeSection = "DDR2"; | ||
13 | + MP3DEC.alg.udataSection = "DDR2"; | ||
14 | + MP3DEC.alg.dataSection = "DDR2"; | ||
15 | + | ||
16 | /* | ||
17 | * The array of algorithms this server can serve up. This array also | ||
18 | * configures details about the threads which will be created to run the | ||
19 | @@ -103,6 +111,11 @@ | ||
20 | groupId : 1, | ||
21 | }, | ||
22 | |||
23 | + {name: "mp3dec", mod: MP3DEC , threadAttrs: { | ||
24 | + stackMemId: 0, priority: Server.MINPRI + 3}, | ||
25 | + groupId : 1, | ||
26 | + }, | ||
27 | + | ||
28 | {name: "g711dec", mod: G711DEC , threadAttrs: { | ||
29 | stackMemId: 0, priority: Server.MINPRI + 3}, | ||
30 | groupId : 1, | ||
31 | diff -uNr -x .xdcenv.mak -x mp3dec cs1omap3530_1_00_01/packages/ti/sdo/server/cs/package.xs cs1omap3530_1_00_01_patches/packages/ti/sdo/server/cs/package.xs | ||
32 | --- cs1omap3530_1_00_01/packages/ti/sdo/server/cs/package.xs 2009-10-26 14:19:20.000000000 -0500 | ||
33 | +++ cs1omap3530_1_00_01_patches/packages/ti/sdo/server/cs/package.xs 2009-10-26 14:53:40.000000000 -0500 | ||
34 | @@ -17,6 +17,7 @@ | ||
35 | validate_one_codec( "ti.sdo.codecs.mpeg2dec", "MPEG2DEC" ); | ||
36 | validate_one_codec( "ti.sdo.codecs.mpeg4dec", "MPEG4DEC" ); | ||
37 | validate_one_codec( "ti.sdo.codecs.mpeg4enc", "MPEG4ENC" ); | ||
38 | + validate_one_codec( "ti.sdo.codecs.mp3dec", "MP3DEC" ); | ||
39 | } | ||
40 | |||
41 | function validate_one_codec( packageName, moduleName ) { | ||
diff --git a/recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb b/recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb deleted file mode 100644 index 633e0985..00000000 --- a/recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb +++ /dev/null | |||
@@ -1,208 +0,0 @@ | |||
1 | DESCRIPTION = "TI Codecs and Server Combo for OMAP3530" | ||
2 | SECTION = "multimedia" | ||
3 | LICENSE = "TI" | ||
4 | |||
5 | require recipes-ti/includes/ti-paths.inc | ||
6 | require recipes-ti/includes/ti-staging.inc | ||
7 | |||
8 | PR="${MACHINE_KERNEL_PR}" | ||
9 | PR_append = "a" | ||
10 | |||
11 | PV="4_00_00_00" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://packages/ti/sdo/server/cs/docs/cs1omap3530_software_manifest.pdf;md5=84444ba7c7abe117c30f9c960d1930ec" | ||
14 | |||
15 | CODEC_SUITE_NAME="${WORKDIR}/${PN}_${PV}" | ||
16 | |||
17 | SRCREV = "8393c892b09e0ac42b19ff1531e232478c3b1a6c" | ||
18 | |||
19 | require recipes-ti/includes/ti-eula-unpack.inc | ||
20 | |||
21 | SRC_URI="http://software-dl.ti.com/dsps/dsps_public_sw/codecs/OMAP35xx//OMAP35xx_latest/omap3530_h264enc_2_01_013_production.bin;name=h264enc \ | ||
22 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/OMAP35xx//OMAP35xx_latest/omap3530_h264dec_2_01_007_production.bin;name=h264dec \ | ||
23 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/OMAP35xx//OMAP35xx_latest/omap3530_jpegenc_02_01_01_00_production.bin;name=jpegenc \ | ||
24 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Video//C64XPlus_Video_latest/c64xplus_jpegdec_02_00_01_01_production.bin;name=jpegdec \ | ||
25 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Video//C64XPlus_Video_latest/c64xplus_mpeg2dec_02_00_02_00_production.bin;name=mpeg2dec \ | ||
26 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/OMAP35xx//OMAP35xx_latest/omap3530_mpeg4enc_02_04_00_00_production.bin;name=mpeg4enc \ | ||
27 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Video//C64XPlus_Video_latest/c64xplus_mpeg4dec_02_01_00_00_production.bin;name=mpeg4dec \ | ||
28 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Audio//C64XPlus_Audio_latest/c64xplus_aachedec_01_30_03_00_production.bin;name=aachedec \ | ||
29 | http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Speech//C64XPlus_Speech_latest/c64xplus_g711_1_12_00_000_production.bin;name=g711 \ | ||
30 | http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/OMAP35xx_DM37xx_C64xPLUS_Algorithms/01_00_00_07//exports/c64xplus_deinterlacer_01_00_00_07_production.bin;name=i2p \ | ||
31 | git://arago-project.org/git/projects/codec-servers.git;protocol=git \ | ||
32 | \ | ||
33 | file://disable-c6accel.diff \ | ||
34 | " | ||
35 | |||
36 | SRC_URI[h264enc.md5sum] = "4a7a4698b1db360fe103aae76127a4ec" | ||
37 | SRC_URI[h264enc.sha256sum] = "8fd970d83004bb099f51420b0eecd660b4ba9dccc87b2759d0b5a0be46f8f1a0" | ||
38 | |||
39 | SRC_URI[h264dec.md5sum] = "81980df2d9dbedc5b64789c4e5575819" | ||
40 | SRC_URI[h264dec.sha256sum] = "19d65e71ba0342670cb217e0fa6617263ff68a513e8444a8dfd5f34bd641b24f" | ||
41 | |||
42 | SRC_URI[jpegenc.md5sum] = "c2e8ad88e90c04d2de7b199517019ac8" | ||
43 | SRC_URI[jpegenc.sha256sum] = "6525e067cb5dd00cfc0b38045c44dcbed05866f8ad20188ceac630812502d473" | ||
44 | |||
45 | SRC_URI[jpegdec.md5sum] = "cf2886c3406ab41409a586e5d550918d" | ||
46 | SRC_URI[jpegdec.sha256sum] = "6b0c9f1b8f023070c6a59af690f015f84f2c7f3143235f788ddd1a4a7b229089" | ||
47 | |||
48 | SRC_URI[mpeg2dec.md5sum] = "da3d0561f3073352be43dce96ce1ea62" | ||
49 | SRC_URI[mpeg2dec.sha256sum] = "06cdb31242b8649bdd46bc07b9276de0ccd5f4e1c137d3cb79e0866c1ed04264" | ||
50 | |||
51 | SRC_URI[mpeg4enc.md5sum] = "07c36e5d03368e1326df75a1f0c4934d" | ||
52 | SRC_URI[mpeg4enc.sha256sum] = "a9566c8978f7230936053de9b1f3bfe8820ae555262ceba87243abdf60e5193f" | ||
53 | |||
54 | SRC_URI[mpeg4dec.md5sum] = "4a27cda2d5a859e6322680a4855b6b88" | ||
55 | SRC_URI[mpeg4dec.sha256sum] = "ca35db6841586fc2c22dd9c07a7f5b8557f480fa907e8a3471b660d4ada76e40" | ||
56 | |||
57 | SRC_URI[aachedec.md5sum] = "649f2e79b4950719295cfecbff2ea82b" | ||
58 | SRC_URI[aachedec.sha256sum] = "34d19e40d624ccdc1b371f9a5d6594b4793bdf3b7223ac65912d15d75320e020" | ||
59 | |||
60 | SRC_URI[g711.md5sum] = "fd8e9f939cc505dc5761705ed17a726c" | ||
61 | SRC_URI[g711.sha256sum] = "c87021e8df2a3f494f47e5bdce8a5fad04d667aa1b792fd9b3ecff634867b48d" | ||
62 | |||
63 | SRC_URI[i2p.md5sum] = "f67c04eec9ee49c7a686eecf5d54be33" | ||
64 | SRC_URI[i2p.sha256sum] = "3fbf8801f3ce2aabb6d31eb18e1e24e41ca861696b3140536f1d66adc76f0323" | ||
65 | |||
66 | |||
67 | TI_BIN_UNPK_CMDS = "Y:workdir" | ||
68 | |||
69 | S = "${CODEC_SUITE_NAME}" | ||
70 | |||
71 | DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-codec-engine ti-linuxutils" | ||
72 | |||
73 | #generic codec | ||
74 | DSPSUFFIX_omap3530 = "x64P" | ||
75 | |||
76 | python do_unpack () { | ||
77 | bb.build.exec_func('base_do_unpack', d) | ||
78 | |||
79 | d.setVar("BINFILE", "omap3530_h264enc_2_01_013_production.bin", d) | ||
80 | d.setVar("TARFILE", "omap3530_h264enc_2_01_013_production.tar", d) | ||
81 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
82 | |||
83 | d.setVar("BINFILE", "omap3530_h264dec_2_01_007_production.bin", d) | ||
84 | d.setVar("TARFILE", "omap3530_h264dec_2_01_007_production.tar", d) | ||
85 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
86 | |||
87 | d.setVar("BINFILE", "omap3530_jpegenc_02_01_01_00_production.bin", d) | ||
88 | d.setVar("TARFILE", "omap3530_jpegenc_02_01_01_00_production.tar", d) | ||
89 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
90 | |||
91 | d.setVar("BINFILE", "c64xplus_jpegdec_02_00_01_01_production.bin", d) | ||
92 | d.setVar("TARFILE", "c64xplus_jpegdec_02_00_01_01_production.tar", d) | ||
93 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
94 | |||
95 | d.setVar("BINFILE", "c64xplus_mpeg2dec_02_00_02_00_production.bin", d) | ||
96 | d.setVar("TARFILE", "c64xplus_mpeg2dec_02_00_02_00_production.tar", d) | ||
97 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
98 | |||
99 | d.setVar("BINFILE", "omap3530_mpeg4enc_02_04_00_00_production.bin", d) | ||
100 | d.setVar("TARFILE", "omap3530_mpeg4enc_02_04_00_00_production.tar", d) | ||
101 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
102 | |||
103 | d.setVar("BINFILE", "c64xplus_mpeg4dec_02_01_00_00_production.bin", d) | ||
104 | d.setVar("TARFILE", "c64xplus_mpeg4dec_02_01_00_00_production.tar", d) | ||
105 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
106 | |||
107 | d.setVar("BINFILE", "c64xplus_aachedec_01_30_03_00_production.bin", d) | ||
108 | d.setVar("TARFILE", "dm6446_aachedec_01_30_03_00_production.tar", d) | ||
109 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
110 | |||
111 | d.setVar("BINFILE", "c64xplus_g711_1_12_00_000_production.bin", d) | ||
112 | d.setVar("TARFILE", "dm6446_g711enc_1_12_00_000_production.tar", d) | ||
113 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
114 | |||
115 | d.setVar("BINFILE", "c64xplus_g711_1_12_00_000_production.bin", d) | ||
116 | d.setVar("TARFILE", "dm6446_g711dec_1_12_00_000_production.tar", d) | ||
117 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
118 | |||
119 | d.setVar("BINFILE", "c64xplus_deinterlacer_01_00_00_07_production.bin", d) | ||
120 | d.setVar("TARFILE", "c64xplus_deinterlacer_01_00_00_07/c64xplus_deinterlacer_01_00_00_07_production.tar", d) | ||
121 | d.setVar("TI_BIN_UNPK_CMDS", "y: :q: ", d) | ||
122 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
123 | |||
124 | } | ||
125 | |||
126 | addtask prepsources after do_unpack before do_patch | ||
127 | |||
128 | do_prepsources () { | ||
129 | |||
130 | mkdir -p ${CODEC_SUITE_NAME}/packages/ti/sdo/server/cs | ||
131 | cp ${WORKDIR}/git/omap3530/cs1omap3530/rel-files/* ${CODEC_SUITE_NAME}/ | ||
132 | cp ${WORKDIR}/git/omap3530/cs1omap3530/source/* ${CODEC_SUITE_NAME}/packages/ti/sdo/server/cs | ||
133 | cp -a "${WORKDIR}/git/omap3530/cs1omap3530/docs" ${CODEC_SUITE_NAME}/packages/ti/sdo/server/cs | ||
134 | |||
135 | mkdir -p ${CODEC_SUITE_NAME}/packages/ti/sdo/codecs | ||
136 | cp -a "${WORKDIR}/omap3530_h264enc_2_01_013_production/packages/ti/sdo/codecs/h264enc" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
137 | cp -a "${WORKDIR}/omap3530_h264dec_2_01_007_production/packages/ti/sdo/codecs/h264dec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
138 | cp -a "${WORKDIR}/omap3530_jpegenc_02_01_01_00_production/packages/ti/sdo/codecs/jpegenc" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
139 | cp -a "${WORKDIR}/c64xplus_jpegdec_02_00_01_01_production/packages/ti/sdo/codecs/jpegdec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
140 | cp -a "${WORKDIR}/c64xplus_mpeg2dec_02_00_02_00_production/packages/ti/sdo/codecs/mpeg2dec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
141 | cp -a "${WORKDIR}/omap3530_mpeg4enc_02_04_00_00_production/packages/ti/sdo/codecs/mpeg4enc" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
142 | cp -a "${WORKDIR}/c64xplus_mpeg4dec_02_01_00_00_production/packages/ti/sdo/codecs/mpeg4dec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
143 | chmod -R +w "${WORKDIR}/dm6446_aachedec_01_30_03_00_production/packages/ti/sdo/codecs/aachedec/docs" | ||
144 | cp -a "${WORKDIR}/dm6446_aachedec_01_30_03_00_production/packages/ti/sdo/codecs/aachedec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
145 | cp -a "${WORKDIR}/dm6446_g711enc_1_12_00_000_production/packages/ti/sdo/codecs/g711enc" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
146 | cp -a "${WORKDIR}/dm6446_g711dec_1_12_00_000_production/packages/ti/sdo/codecs/g711dec" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
147 | cp -a "${WORKDIR}/c64xplus_deinterlacer_01_00_00_07_production/packages/ti/sdo/codecs/deinterlacer" "${CODEC_SUITE_NAME}/packages/ti/sdo/codecs" | ||
148 | chmod 755 -R ${CODEC_SUITE_NAME} | ||
149 | } | ||
150 | |||
151 | do_compile() { | ||
152 | |||
153 | cd "${S}" | ||
154 | |||
155 | make \ | ||
156 | CE_INSTALL_DIR=${CE_INSTALL_DIR} \ | ||
157 | FC_INSTALL_DIR=${FC_INSTALL_DIR} \ | ||
158 | LINK_INSTALL_DIR=${LINK_INSTALL_DIR} \ | ||
159 | CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR} \ | ||
160 | LPM_INSTALL_DIR=${LPM_INSTALL_DIR} \ | ||
161 | BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR} \ | ||
162 | CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR} \ | ||
163 | XDC_INSTALL_DIR=${XDC_INSTALL_DIR} \ | ||
164 | CODEC_INSTALL_DIR="${S}" \ | ||
165 | XDCARGS="prod" \ | ||
166 | C6ACCEL_INSTALL_DIR=${C6ACCEL_INSTALL_DIR} \ | ||
167 | clean | ||
168 | |||
169 | make \ | ||
170 | CE_INSTALL_DIR=${CE_INSTALL_DIR} \ | ||
171 | FC_INSTALL_DIR=${FC_INSTALL_DIR} \ | ||
172 | LINK_INSTALL_DIR=${LINK_INSTALL_DIR} \ | ||
173 | CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR} \ | ||
174 | LPM_INSTALL_DIR=${LPM_INSTALL_DIR} \ | ||
175 | BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR} \ | ||
176 | CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR} \ | ||
177 | XDC_INSTALL_DIR=${XDC_INSTALL_DIR} \ | ||
178 | CODEC_INSTALL_DIR="${S}" \ | ||
179 | XDCARGS="prod" \ | ||
180 | C6ACCEL_INSTALL_DIR=${C6ACCEL_INSTALL_DIR} \ | ||
181 | all | ||
182 | } | ||
183 | |||
184 | do_install() { | ||
185 | |||
186 | install -d ${D}/${installdir}/ti-codecs-server | ||
187 | cd ${S} | ||
188 | |||
189 | # Install the DSP Server Binary | ||
190 | for file in `find . -name *.${DSPSUFFIX}`; do | ||
191 | cp ${file} ${D}/${installdir}/ti-codecs-server | ||
192 | done | ||
193 | |||
194 | # Install docs (codec qualiTI test reports, server config datasheet, etc) | ||
195 | for file in `find . -name *.html`; do | ||
196 | cp ${file} ${D}/${installdir}/ti-codecs-server | ||
197 | done | ||
198 | |||
199 | install -d ${D}${CODEC_INSTALL_DIR_RECIPE} | ||
200 | cp -pPrf ${CODEC_SUITE_NAME}/* ${D}${CODEC_INSTALL_DIR_RECIPE} | ||
201 | } | ||
202 | |||
203 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
204 | |||
205 | PACKAGES += "ti-codecs-omap3530-server" | ||
206 | FILES_ti-codecs-omap3530-server = "${installdir}/ti-codecs-server/*" | ||
207 | |||
208 | INSANE_SKIP_${PN} = "installed-vs-shipped" | ||