diff options
author | Roger Monk <r-monk@ti.com> | 2010-02-25 12:44:16 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:20 +0200 |
commit | 73efa8afa568d88ebf94563e9200fbcdfb669fbe (patch) | |
tree | f28dc8590211701d69c3a607c98ba0108913406c /recipes/ti/ti-codec-engine.inc | |
parent | 893cba6c8ad21270753654af0d16fbed0288cc91 (diff) | |
download | openembedded-73efa8afa568d88ebf94563e9200fbcdfb669fbe.tar.gz |
ti recipes: Start moving /files into package specific directories
ti-codec-engine: Cleanup Codec Engine Recipe
* Fix Installer Issues
* Cleanup Variable Names + Add for all targets
* Remove non-tspa older 2.24.01 recipe
* Add omapl137 depends
ti-xdais: Recipe Cleanup
ti-dsplink: Add runscript to run all example applications (for easy testing)
* Add run script
* Rename load/unload scripts for consistency
* Use _append instead of += for RDEPENDS
* ti-dsplink: fix GPPOS for omapl137
* SED out CROSS_COMPILE from dsplink Makefile
gstreamer-ti: Recipe Cleanup align with other recipes
* Recipe cleanup, cosmetics
* Move required variables inside recipe
* Ensure all targets have variables assigned
* Add -rc scripts for all targets
* Add runtime recommends for all targets
* Needs LINUXKERNEL_INSTALL_DIR setting
* export LINUXKERNEL_INSTALL_DIR for gstreamer_ti
* add logic for patching to newer kernel (mach/omapfb)
* don't error out if the sed on omapfb fails since the header won't be there for non-omap3
ti-codecs: Recipe cleanup for omapl, omap3 and dm6446
* Cleanup of omap3, omapl138, omapl137, dm6446
* Start building omapl138 recipe
* Add prepsources step
* Package codecs into -server package
* Add qualiTI reports and codec data sheet
* Variable cleanup
* Set stage for common codec build recipe
* Temp comment out variables, for removal in subsequent commit after validation
ti-dmai: Recipe cleanup
* Recipe cleanup, cosmetics
* Move required variables inside recipe, remove unused variables
* Runtime deps for -apps, -tests
* Add loadmodules script for omapl137
* Need to pass path to CE 'example' codecs for arm side audio codec (g711)
ti-local-power-manager: Set XDC_PLATFORM
* lpm needs XDC platform defined.
Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes/ti/ti-codec-engine.inc')
-rw-r--r-- | recipes/ti/ti-codec-engine.inc | 173 |
1 files changed, 109 insertions, 64 deletions
diff --git a/recipes/ti/ti-codec-engine.inc b/recipes/ti/ti-codec-engine.inc index fc68a3305f..dc5294a927 100644 --- a/recipes/ti/ti-codec-engine.inc +++ b/recipes/ti/ti-codec-engine.inc @@ -1,58 +1,104 @@ DESCRIPTION = "Codec Engine for TI ARM/DSP processors" +HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" SECTION = "devel" +# TODO :: Add Codec Engine Library Rebuild +# TODO :: Add Examples APP_LOCAL build as well? +# TODO :: Check DEPENDS - are the DSP side packages required for ARM-only products? + require ti-paths.inc +require ti-staging.inc -# compile time dependencies -DEPENDS = "ti-framework-components ti-xdais ti-xdctools ti-cgt6x ti-biosutils ti-edma3lld ti-linuxutils" +PROVIDES += "ti-codec-engine-examples" + +PR = "r3" + +S = "${WORKDIR}/codec_engine_${PV}" + +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" +DEPENDS = "ti-framework-components ti-xdais ti-xdctools ti-cgt6x ti-biosutils ti-edma3lld ti-linuxutils" DEPENDS_append_dm6446 = " ti-dspbios ti-dsplink ti-local-power-manager" DEPENDS_append_dm6467 = " ti-dspbios ti-dsplink" DEPENDS_append_omap3 = " ti-dspbios ti-dsplink ti-local-power-manager" +DEPENDS_append_omapl137 = " ti-dspbios ti-dsplink" DEPENDS_append_omapl138 = " ti-dspbios ti-dsplink" -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" +# SOC_FAMILY configuration + +# Define DEVICES variable +CEEXAMPLESDEVICES_dm6446 = "DM6446" +CEEXAMPLESDEVICES_dm6467 = "DM6467" +CEEXAMPLESDEVICES_omap3 = "OMAP3530" +CEEXAMPLESDEVICES_dm355 = "DM355" +CEEXAMPLESDEVICES_dm365 = "DM365" +CEEXAMPLESDEVICES_omapl137 = "OMAPL137" +CEEXAMPLESDEVICES_omapl138 = "OMAPL138" +CEEXAMPLESDEVICES ?= "<UNDEFINED_CEEXAMPLESDEVICES>" + +# Define GPPOS variable +CEEXAMPLESGPPOS_dm6446 = "LINUX_GCC" +CEEXAMPLESGPPOS_dm6467 = "LINUX_GCC" +CEEXAMPLESGPPOS_omap3 = "LINUX_GCC" +CEEXAMPLESGPPOS_dm355 = "LINUX_GCC" +CEEXAMPLESGPPOS_dm365 = "LINUX_GCC" +CEEXAMPLESGPPOS_omapl137 = "LINUX_GCC" +CEEXAMPLESGPPOS_omapl138 = "LINUX_GCC" +CEEXAMPLESGPPOS ?= "<UNDEFINED_CEEXAMPLESGPPOS>" + +# Define PROGRAM variable +CEEXAMPLESPROGRAMS_dm6446 = "APP_CLIENT DSP_SERVER" +CEEXAMPLESPROGRAMS_dm6467 = "APP_CLIENT DSP_SERVER" +CEEXAMPLESPROGRAMS_omap3 = "APP_CLIENT DSP_SERVER" +CEEXAMPLESPROGRAMS_dm355 = "APP_LOCAL" +CEEXAMPLESPROGRAMS_dm365 = "APP_LOCAL" +CEEXAMPLESPROGRAMS_omapl137 = "APP_CLIENT DSP_SERVER" +CEEXAMPLESPROGRAMS_omapl138 = "APP_CLIENT DSP_SERVER" +CEEXAMPLESPROGRAMS ?= "<UNDEFINED_CEEXAMPLESPROGRAMS>" + +do_configure() { + + # No way to pass this via ENV? + sed -i \ + -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \ + ${S}/examples/xdcpaths.mak +} -# Set the source directory -S = "${WORKDIR}/codec_engine_${PV}" +do_prepsources() { -# Define Device variable -DEVICES = "" -DEVICES_dm6446 ?= "DM6446" -DEVICES_dm6467 ?= "DM6467" -DEVICES_omap3 ?= "OMAP3530" -DEVICES_dm355 ?= "DM355" -DEVICES_dm365 ?= "DM365" -DEVICES_omapl137 ?= "OMAPL137" -DEVICES_omapl138 ?= "OMAPL138" - -# Need to set this for other platforms as well -GPPOS_dm355 = "LINUX_GCC" - -#define PROGRAM variables -#TODO - should we build APP_LOCAL for SOCs as well?? - probably? -PROGRAMS ?= "APP_CLIENT DSP_SERVER" -PROGRAMS_dm355 = "APP_LOCAL" -PROGRAMS_dm365 = "APP_LOCAL" - -CGT6x_DIR = "${CODEGEN_INSTALL_DIR}" -XDCTOOLS_DIR = "${XDC_INSTALL_DIR}" -CE_INSTALL_DIR = "${S}" + for i in codecs extensions servers apps ; do + cd ${S}/examples/ti/sdo/ce/examples/$i + make DEVICES="${CEEXAMPLESDEVICES}" \ + GPPOS="${CEEXAMPLESGPPOS}" \ + PROGRAMS="${CEEXAMPLESPROGRAMS}" \ + CE_INSTALL_DIR="${S}" \ + XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ + BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \ + BIOSUTILS_INSTALL_DIR="${BIOSUTILS_INSTALL_DIR}" \ + DSPLINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ + XDAIS_INSTALL_DIR="${XDAIS_INSTALL_DIR}" \ + FC_INSTALL_DIR="${FC_INSTALL_DIR}" \ + CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \ + LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \ + EDMA3_LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \ + CGTOOLS_V5T="${TOOLCHAIN_PATH}" \ + CGTOOLS_C64P="${CODEGEN_INSTALL_DIR}" \ + CGTOOLS_C674="${CODEGEN_INSTALL_DIR}" \ + clean + done +} -do_compile () { +addtask prepsources after do_configure before do_compile - # No way to pass this via ENV? - sed -i \ - -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \ - ${S}/examples/xdcpaths.mak +do_compile () { for i in codecs extensions servers apps ; do cd ${S}/examples/ti/sdo/ce/examples/$i - make DEVICES="${DEVICES}" \ - GPPOS="${GPPOS}" \ - PROGRAMS="${PROGRAMS}" \ - CE_INSTALL_DIR="${CE_INSTALL_DIR}" \ - XDC_INSTALL_DIR="${XDCTOOLS_DIR}" \ + make DEVICES="${CEEXAMPLESDEVICES}" \ + GPPOS="${CEEXAMPLESGPPOS}" \ + PROGRAMS="${CEEXAMPLESPROGRAMS}" \ + CE_INSTALL_DIR="${S}" \ + XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \ BIOSUTILS_INSTALL_DIR="${BIOSUTILS_INSTALL_DIR}" \ DSPLINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ @@ -62,17 +108,17 @@ do_compile () { LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \ EDMA3_LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \ CGTOOLS_V5T="${TOOLCHAIN_PATH}" \ - CGTOOLS_C64P="${CGT6x_DIR}" \ - CGTOOLS_C674="${CGT6x_DIR}" \ - clean all + CGTOOLS_C64P="${CODEGEN_INSTALL_DIR}" \ + CGTOOLS_C674="${CODEGEN_INSTALL_DIR}" \ + all done } do_install() { - install -d ${D}/${installdir}/codec-engine-apps - if [-e ${S}/examples/apps/system_files/${DEVICES}/loadmodules.sh ]; then - cp ${S}/examples/apps/system_files/${DEVICES}/loadmodules.sh ${D}/${installdir}/codec-engine-apps + install -d ${D}/${installdir}/ti-codec-engine-examples + if [ -e ${S}/examples/apps/system_files/${CEEXAMPLESDEVICES}/loadmodules.sh ]; then + cp ${S}/examples/apps/system_files/${CEEXAMPLESDEVICES}/loadmodules.sh ${D}/${installdir}/ti-codec-engine-examples fi cd ${S}/examples/ti/sdo/ce/examples @@ -83,26 +129,26 @@ do_install() { # Put all servers in separate tree. for i in $(find . -name "*.${DSPSUFFIX}"); do - install -d ${D}/${installdir}/codec-engine-apps/servers/`dirname ${i} | cut -f3 -d /` - install ${i} ${D}/${installdir}/codec-engine-apps/servers/`dirname ${i} | cut -f3 -d /` + install -d ${D}/${installdir}/ti-codec-engine-examples/servers/`dirname ${i} | cut -f3 -d /` + install ${i} ${D}/${installdir}/ti-codec-engine-examples/servers/`dirname ${i} | cut -f3 -d /` done for i in $(find . -name "*.xv5T"); do - install -d ${D}/${installdir}/codec-engine-apps/`dirname ${i} | cut -f3 -d /` - install ${i} ${D}/${installdir}/codec-engine-apps/`dirname ${i} | cut -f3 -d /` + install -d ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` + install ${i} ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` done for i in $(find . -name "*.dat"); do - install -d ${D}/${installdir}/codec-engine-apps/`dirname ${i} | cut -f3 -d /` - install ${i} ${D}/${installdir}/codec-engine-apps/`dirname ${i} | cut -f3 -d /` + install -d ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` + install ${i} ${D}/${installdir}/ti-codec-engine-examples/`dirname ${i} | cut -f3 -d /` done # For each directory, softlink to the app server, except special cases - cd ${D}/${installdir}/codec-engine-apps + cd ${D}/${installdir}/ti-codec-engine-examples for i in $(find . -type d | grep -v servers); do { pwd - cd ${D}/${installdir}/codec-engine-apps/$i + cd ${D}/${installdir}/ti-codec-engine-examples/$i if [ $(basename $i) == "audio1_ires" ] ; then ln -s ../servers/audio1_ires/audio1_ires.${DSPSUFFIX} elif [ $(basename $i) == "server_api_example" ] ; then @@ -115,20 +161,19 @@ do_install() { } done - # Stage the complete tree as well - install -d ${D}${CE_INSTALL_DIR_RECIPE} - cp -pPrf ${S}/* ${D}${CE_INSTALL_DIR_RECIPE} + # Install/Stage the Source Tree + install -d ${D}${CE_INSTALL_DIR_RECIPE} + cp -pPrf ${S}/* ${D}${CE_INSTALL_DIR_RECIPE} } -require ti-staging.inc - -RDEPENDS_ti-codec-engine-apps = "ti-cmem-module" -RDEPENDS_append_dm6446 = " ti-dsplink-module" -RDEPENDS_append_omap3 = " ti-dsplink-module" -RDEPENDS_append_omapl138 = " ti-dsplink-module" +PACKAGES += "ti-codec-engine-examples" -PACKAGE_ARCH = "${MACHINE_ARCH}" -PACKAGES += "ti-codec-engine-apps" -FILES_ti-codec-engine-apps = "${installdir}/codec-engine-apps/*" -INSANE_SKIP_ti-codec-engine-apps = True +RDEPENDS_ti-codec-engine-examples = " ti-cmem-module" +RDEPENDS_ti-codec-engine-examples_append_dm6446 = " ti-dsplink-module ti-lpm-module" +RDEPENDS_ti-codec-engine-examples_append_dm6467 = " ti-dsplink-module" +RDEPENDS_ti-codec-engine-examples_append_omap3 = " ti-dsplink-module ti-lpm-module" +RDEPENDS_ti-codec-engine-examples_append_omapl137 = " ti-dsplink-module" +RDEPENDS_ti-codec-engine-examples_append_omapl138 = " ti-dsplink-module" +FILES_ti-codec-engine-examples = "${installdir}/ti-codec-engine-examples/*" +INSANE_SKIP_ti-codec-engine-examples = True |