diff options
author | Koen Kooi <k-kooi@ti.com> | 2009-12-07 13:46:49 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:08 +0200 |
commit | 02ed602f301a438e006d6774605059196323a95b (patch) | |
tree | 0e3d70cf663abae4a611296f7050a20ae81b7fb5 /recipes/ti/ti-codec-engine.inc | |
parent | 201247ca3f8776b44cfae258a7064e6c302cf843 (diff) | |
download | openembedded-02ed602f301a438e006d6774605059196323a95b.tar.gz |
ti-xdctools: add 3.15.04.70 and 3.16.01.27 ti-dspbios 5.33.04: switch to TSPA releases
* add 5.33.06 and 5.41.02.14
* add 5.41.02.14
* move common stuff to .inc file
* bump PE to fix versioning
ti-dsplink-module: add 1.64
* put common stuff in .inc
* refresh xdc interfaces after running configure
* fix up missing SZ_2K define
* move configure step out of compile step
* switch on 'channels' feature
ti-codec-engine: add 2.25.00.05
* put common stuff in .inc
* add in OMAP-L support
* introduce DSPSUFFIX and set it appropriately for C674x DSPs
ti-dmai: add OMAP-L137 support and fix versioning
ti-xdais: add 6.25.00.07
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 | 81 |
1 files changed, 72 insertions, 9 deletions
diff --git a/recipes/ti/ti-codec-engine.inc b/recipes/ti/ti-codec-engine.inc index 81dae36bda..fee33a672f 100644 --- a/recipes/ti/ti-codec-engine.inc +++ b/recipes/ti/ti-codec-engine.inc @@ -1,27 +1,90 @@ DESCRIPTION = "Codec Engine for TI ARM/DSP processors" +require ti-paths.inc + # compile time dependencies -DEPENDS = "ti-xdctools-native ti-xdais-native ti-linuxutils ti-framework-components" -DEPENDS_append_dm6446 = " ti-cgt6x-native ti-dspbios-native" -DEPENDS_append_omap3 = " ti-cgt6x-native ti-dspbios-native" +DEPENDS = "ti-framework-components ti-xdais-native ti-xdctools-native ti-cgt6x-native" + +DEPENDS_append_dm6446 = " ti-dspbios-native ti-linuxutils ti-dsplink-module" +DEPENDS_append_omap3 = " ti-dspbios-native ti-linuxutils ti-dsplink-module" +DEPENDS_append_omapl138 = " ti-dspbios-native ti-linuxutils ti-dsplink-module" -BASE_SRC_URI = "http://install.source.dir.local" -SRC_URI = "${BASE_SRC_URI}/codec_engine_${PV},lite.tar.gz " +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV}.tar.gz;name=cetarball" # Set the source directory S = "${WORKDIR}/codec_engine_${PV}" +# Define Device variable +DEVICES_dm6446 ?= "DM6446" +DEVICES_omap3 ?= "OMAP3530" +DEVICES_dm355 ?= "DM355" +DEVICES_omapl137 ?= "OMAPL137" +DEVICES_omapl138 ?= "OMAPL138" + +#define PROGRAM variables +PROGRAMS ?= "APP_CLIENT DSP_SERVER" +PROGRAMS_dm355 = "APP_LOCAL" + +LINK_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dsplink-module/packages" +CGT6x_DIR = "${STAGING_DIR_NATIVE}/ti-cgt6x-native" +XDCTOOLS_DIR = "${STAGING_DIR_NATIVE}/ti-xdctools-native" +CE_INSTALL_DIR = "${S}" + do_compile () { - echo "! Do not rebuild for now !" + + sed -i \ + -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \ + ${S}/examples/xdcpaths.mak + + 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}" \ + BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}"\ + DSPLINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ + XDAIS_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ + FC_INSTALL_DIR="${FC_INSTALL_DIR}" \ + CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \ + LPM_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ + EDMA3_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ + CGTOOLS_V5T="${CROSS_DIR}"\ + CGTOOLS_C64P="${CGT6x_DIR}" \ + CGTOOLS_C674="${CGT6x_DIR}" \ + clean all + done } +do_install() { + install -d ${D}/${installdir}/codec-engine-apps + cp ${S}/examples/apps/system_files/${DEVICES}/loadmodules.sh ${D}/${installdir}/codec-engine-apps + sed -i 's/insmod/modprobe/g' ${D}/${installdir}/codec-engine-apps/loadmodules.sh + + cd ${S}/examples/ti/sdo/ce/examples + + 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 /` + + for j in $(find . -name "*.${DSPSUFFIX}"); do + install ${j} ${D}/${installdir}/codec-engine-apps/`dirname ${i} | cut -f3 -d /` + done + + done +} + + # stage tree - other packages may need this do_stage() { install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN} - cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/ + cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/ } PACKAGE_ARCH = "${MACHINE_ARCH}" - - INHIBIT_PACKAGE_STRIP = "1" +PACKAGES += "ti-codec-engine-apps" +FILES_ti-codec-engine-apps = "${installdir}/codec-engine-apps/*" +INSANE_SKIP_ti-codec-engine-apps = True + |