"
# Again, no '.' in PWD allowed :(
-PR = "r17"
+PR = "r23"
PV = "svnr${SRCREV}"
S = "${WORKDIR}/gstreamer_ti/ti_build/ticodecplugin"
-installdir = "${prefix}/ti"
+installdir = "${datadir}/ti"
+
+META_SDK_PATH ?= "${CROSS_DIR}"
DMAI_INSTALL_DIR = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai"
CE_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine"
export PLATFORM
-CROSS_COMPILE = "${CROSS_DIR}/bin/${TARGET_PREFIX}"
-CSTOOL_DIR = "${CROSS_DIR}"
-MVTOOL_DIR = "${CROSS_DIR}"
+CROSS_COMPILE=${META_SDK_PATH}/bin/${TARGET_PREFIX}
+CSTOOL_DIR=${META_SDK_PATH}
+MVTOOL_DIR=${META_SDK_PATH}
export CROSS_COMPILE
export CSTOOL_DIR
export MVTOOL_DIR
# default loadmodule script is hard-coded for insmod, change to modprobe
sed -i 's/insmod/modprobe/g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh
sed -i 's/.ko//g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh
+ if [ "${PLATFORM}" = "omap3530" ]; then
+ echo "modprobe sdmak" >> ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh
+ fi
chmod 0755 ${D}/${installdir}/gst -R
}
-placeholder for readme
-todo with this package
-- rename top level dsplink directory
-- repartion code into different recipes - create codecengine-examples package
-/DONE - fix lpm build to pick up Module.symversion
-- cleanup device selection script - not good to just /d the targets - need cleaner solution
-- staging needs work
+The software needed can be downloaded from:
+* http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/
+* https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm
-- add ce 2.22
require ti-cgt6x.inc
inherit native
-SRC_URI = "http://install.source.dir.com/TI-C6x-CGT-v6.0.16-eval.tar.gz"
+SRC_URI = "http://install.source.dir.com/ti_cgt_c6000_6.0.21_setup_linux_x86.bin"
-S = "${WORKDIR}/cg6x_6_0_16"
+BINFILE="ti_cgt_c6000_6.0.21_setup_linux_x86.bin"
+
+S = "${WORKDIR}/cgt"
# Yes, the xdc stuff still breaks with a '.' in PWD
-PV = "6016"
-PR = "r12"
+PV = "6021"
+PR = "r3"
do_stage() {
install -d ${STAGING_DIR_NATIVE}/${PN}
require ti-cgt6x.inc
inherit sdk
-SRC_URI = "http://install.source.dir.com/TI-C6x-CGT-v6.0.16-eval.tar.gz"
+SRC_URI = "http://install.source.dir.com/ti_cgt_c6000_6.0.21_setup_linux_x86.bin"
-S = "${WORKDIR}/cg6x_6_0_16"
+S = "${WORKDIR}/cgt"
# Yes, the xdc stuff still breaks with a '.' in PWD
-PV = "6016"
-PR = "r12"
+PV = "6021"
+PR = "r3"
do_install() {
- install -d ${D}/${prefix}/dvsdk/cg6x_6_0_16
- cp -pPrf ${S}/* ${D}/${prefix}/dvsdk/cg6x_6_0_16
+ install -d ${D}/${prefix}/dvsdk/cg6x_6_0_21
+ cp -pPrf ${S}/* ${D}/${prefix}/dvsdk/cg6x_6_0_21
# Creates rules.make file
mkdir -p ${STAGING_DIR_HOST}/ti-sdk-rules
echo "# Where the TI C6x codegen tool is installed." > ${STAGING_DIR_HOST}/ti-sdk-rules/cgt6x.Rules.make
- echo "CODEGEN_INSTALL_DIR=${prefix}/dvsdk/cg6x_6_0_16" >> ${STAGING_DIR_HOST}/ti-sdk-rules/cgt6x.Rules.make
+ echo "CODEGEN_INSTALL_DIR=${prefix}/dvsdk/cg6x_6_0_21" >> ${STAGING_DIR_HOST}/ti-sdk-rules/cgt6x.Rules.make
echo "" >> ${STAGING_DIR_HOST}/ti-sdk-rules/cgt6x.Rules.make
}
INHIBIT_PACKAGE_STRIP = "1"
-FILES_${PN} = "${prefix}/dvsdk/cg6x_6_0_16"
+FILES_${PN} = "${prefix}/dvsdk/cg6x_6_0_21"
INSANE_SKIP_${PN} = True
DESCRIPTION = "Code Generation Tools for TI DaVinci and OMAP"
+# This file defines function used for extracting .bin file
+
+python do_unpack () {
+ bb.build.exec_func('base_do_unpack', d)
+ bb.build.exec_func('ti_bin_do_unpack', d)
+}
+
+python ti_bin_do_unpack() {
+
+ import os
+
+ localdata = bb.data.createCopy(d)
+ bb.data.update_data(localdata)
+
+ binfile = bb.data.getVar('BINFILE', localdata)
+
+ # Change to the working directory
+ save_cwd = os.getcwd()
+ workdir = bb.data.getVar('WORKDIR', localdata)
+ workdir = bb.data.expand(workdir, localdata)
+ os.chdir(workdir)
+
+ # Make the InstallJammer binary executable so we can run it
+ os.chmod(binfile, 0755)
+
+ # Run the InstallJammer binary and accept the EULA
+ filename = "HOME=%s ./%s" % (workdir, binfile)
+ f = os.popen(filename,'w')
+ print >>f, "Y\n"
+ print >>f, "qY\n"
+ print >>f, "%s/cgt\n" % workdir
+ print >>f, " \n"
+ print >>f, " \n"
+
+ f.close()
+
+ # Return to the previous directory
+ os.chdir(save_cwd)
+}
+
DEPENDS = "virtual/kernel perl-native"
RDEPENDS = "update-modules"
+# Download codec_engine_2_23_01.tar.gz from
+# https://www-a.ti.com/downloads/sds_support/targetcontent/CE/ce_2_23/index.html
+
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz"
# Set the source directory
S = "${WORKDIR}/codec_engine_2_23_01"
-PR = "r18"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
PV = "2231"
do_compile() {
LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
MVTOOL_PREFIX="${TARGET_PREFIX}" \
UCTOOL_PREFIX="${TARGET_PREFIX}" \
- EXEC_DIR="${D}${prefix}/ti/ti-cmem-apps" \
+ EXEC_DIR="${D}${datadir}/ti/ti-cmem-apps" \
install
}
INHIBIT_PACKAGE_STRIP = "1"
FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/cmemk.ko"
PACKAGES += " ti-cmem-apps"
-FILES_ti-cmem-apps = "${prefix}/ti/ti-cmem-apps/*"
+FILES_ti-cmem-apps = "${datadir}/ti/ti-cmem-apps/*"
INSANE_SKIP_ti-cmem-apps = True
# Set the source directory
S = "${WORKDIR}/codec_engine_2_23"
-PR = "r11"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
PV = "223"
do_compile() {
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "113"
-PR = "r13"
+PR = "r16"
do_compile() {
echo "Do nothing"
S = "${WORKDIR}/dm355_codecs_1_13_000"
BINFILE="dm355_codecs_setuplinux_1_13_000.bin"
-installdir = "${prefix}/ti"
+installdir = "${datadir}/ti"
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "113"
-PR = "r12"
+PR = "r15"
do_compile() {
echo "Do nothing"
--- /dev/null
+DESCRIPTION = "DM6446 Codec Combo 2.05"
+inherit sdk
+
+# Should be replaced with real http URL, but for now create codec combo tar from DVSDK installation.
+SRC_URI = "ftp://install.source.dir.com/dm6446_dvsdk_combos_2_05.tar.gz"
+
+S = "${WORKDIR}/dm6446_dvsdk_combos_2_05"
+
+# Yes, the xdc stuff still breaks with a '.' in PWD
+PV = "205"
+PR = "r10"
+
+# DM6446 combo has Makefile. We don't want to rebuild anything here.
+do_compile() {
+ echo "do nothing"
+}
+
+do_install() {
+ install -d ${D}/${prefix}/dvsdk/dm6446_dvsdk_combos_2_05
+ cp -pPrf ${S}/* ${D}/${prefix}/dvsdk/dm6446_dvsdk_combos_2_05
+
+ # Creates rules.make file
+ mkdir -p ${STAGING_DIR_HOST}/ti-sdk-rules
+ echo "# Where the codec servers are installed." > ${STAGING_DIR_HOST}/ti-sdk-rules/codec.Rules.make
+ echo "CODEC_INSTALL_DIR=${prefix}/dvsdk/dm6446_dvsdk_combos_2_05" >> ${STAGING_DIR_HOST}/ti-sdk-rules/codec.Rules.make
+}
+
+INHIBIT_PACKAGE_STRIP = "1"
+INSANE_SKIP_${PN} = True
+FILES_${PN} = "${prefix}/dvsdk/dm6446_dvsdk_combos_2_05/*"
+
--- /dev/null
+DESCRIPTION = "DM6446 Codec Combo 2.05"
+
+# Should be replaced with real http URL, but for now create codec combo tar from DVSDK installation.
+SRC_URI = "http://install.source.dir.com/dm6446_dvsdk_combos_2_05.tar.gz"
+
+S = "${WORKDIR}/dm6446_dvsdk_combos_2_05"
+
+# Yes, the xdc stuff still breaks with a '.' in PWD
+PV = "205"
+PR = "r11"
+
+installdir = "${datadir}/ti"
+do_compile() {
+ echo "do nothing"
+}
+
+do_install () {
+ install -d ${D}/${installdir}/codec-combo
+ cd ${S}
+ for file in `find . -name *.x64P`; do
+ cp ${file} ${D}/${installdir}/codec-combo
+ done
+}
+
+do_stage() {
+ install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}
+ cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+FILES_${PN} = "/${installdir}/codec-combo/*"
+
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "316"
-PR = "r8"
+PR = "r10"
do_compile () {
echo "No nothing"
S = "${WORKDIR}/omap3530_dvsdk_combos_tspa_3_16_01"
+DEPENDS="ti-codec-engine"
+
+CE_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine"
+FC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools"
+LINK_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools"
+CMEM_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools"
+LPM_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools"
+BIOS_INSTALL_DIR="${STAGING_DIR_NATIVE}/ti-dspbios-native"
+CODEGEN_INSTALL_DIR="${STAGING_DIR_NATIVE}/ti-cgt6x-native"
+XDC_INSTALL_DIR="${STAGING_DIR_NATIVE}/ti-xdctools-native"
+
+export ${CODEGEN_INSTALL_DIR}
+
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "3161"
-PR = "r9"
-installdir = "${prefix}/ti"
+PR = "r12"
+installdir = "${datadir}/ti"
do_compile() {
- echo "Do not rebuild for now"
+ make CE_INSTALL_DIR=${CE_INSTALL_DIR} \
+ FC_INSTALL_DIR=${FC_INSTALL_DIR} \
+ LINK_INSTALL_DIR=${LINK_INSTALL_DIR} \
+ CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR} \
+ LPM_INSTALL_DIR=${LPM_INSTALL_DIR} \
+ BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR} \
+ CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR} \
+ XDC_INSTALL_DIR=${XDC_INSTALL_DIR} \
}
do_install () {
inherit sdk
# tconf from xdctools dislikes '.' in pwd :/
-PR = "r11"
+PR = "r17"
PV = "2231"
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz "
DESCRIPTION = "Codec Engine 2.23.01 for TI ARM/DSP processors"
# compile time dependencies
-DEPENDS_dm6446-evm += "ti-xdctools-native ti-cgt6x-native ti-dspbios-native ti-codec-combo-dm6446"
-DEPENDS_omap3evm += "ti-cgt6x-native ti-dspbios-native ti-codec-combo-omap3530 ti-xdctools-native"
-DEPENDS_beagleboard += "ti-cgt6x-native ti-dspbios-native ti-codec-combo-omap3530 ti-xdctools-native"
-DEPENDS_dm355-evm += "ti-codec-combo-dm355 ti-xdctools-native"
+DEPENDS_dm6446-evm += "ti-xdctools-native ti-cgt6x-native ti-dspbios-native"
+DEPENDS_omap3evm += "ti-cgt6x-native ti-dspbios-native ti-xdctools-native"
+DEPENDS_beagleboard += "ti-cgt6x-native ti-dspbios-native ti-xdctools-native"
+DEPENDS_dm355-evm += "ti-xdctools-native"
# tconf from xdctools dislikes '.' in pwd :/
-PR = "r13"
+PR = "r16"
PV = "2231"
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz "
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "113"
-PR = "r15"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
do_configure() {
find ${S} -name "*.ko" -exec rm {} \; || true
# NOTE: Use Brijesh' DMAI development branch. The URL *must* be updated once
# we have stable DMAI 2.x on gforge.
-SRCREV = "189"
+SRCREV = "195"
SRC_URI = "svn://gforge.ti.com/svn/dmai/branches;module=BRIJESH_GIT_031809;proto=https;user=anonymous;pswd='' \
file://loadmodules-ti-dmai-dm355_al.sh \
file://loadmodules-ti-dmai-dm6446_al.sh \
S = "${WORKDIR}/BRIJESH_GIT_031809/davinci_multimedia_application_interface"
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "svnr${SRCREV}"
+PR = "r27"
DEPENDS_dm6446-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-dm6446 virtual/kernel "
DEPENDS_dm355-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-codec-combo-dm355 virtual/kernel"
-installdir = "${prefix}/ti"
+installdir = "${datadir}/ti"
# Define DMAI build time variables
TARGET ?= "all"
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "533"
-PR = "r11"
+PR = "r13"
do_stage() {
install -d ${STAGING_DIR_NATIVE}/${PN}
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "533"
-PR = "r11"
+PR = "r13"
do_install() {
install -d ${D}/${prefix}/dvsdk/bios_5_33_02
DEPENDS += " virtual/kernel perl-native ti-dspbios-native ti-cgt6x-native update-modules"
# tconf from xdctools dislikes '.' in pwd :/
-PR = "r11"
PV = "1613"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
-installdir = "${prefix}/ti"
+installdir = "${datadir}/ti"
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz \
file://loadmodules-ti-dsplink-apps.sh \
file://unloadmodules-ti-dsplink-apps.sh"
# DSPLINK - Config Variable for different platform
DSPLINKPLATFORM ?= "DAVINCI"
-DSPLINKPLATFORM_omap3evm ?= "OMAP3530"
-DSPLINKPLATFORM_beagleboard ?= "OMAP3530"
DSPLINKPLATFORM_dm6446-evm ?= "DAVINCI"
DSPLINKDSPCFG ?= "DM6446GEMSHMEM"
-DSPLINKDSPCFG_omap3evm ?= "OMAP3530SHMEM"
-DSPLINKDSPCFG_beagleboard ?= "OMAP3530SHMEM"
DSPLINKDSPCFG_dm6446-evm ?= "DM6446GEMSHMEM"
DSPLINKGPPOS ?= "MVL5G"
-DSPLINKGPPOS_omap3evm ?= "OMAPLSP"
-DSPLINKGPPOS_beagleboard ?= "OMAPLSP"
DSPLINKGPPOS_dm6446-evm ?= "MVL5G"
export DSPLINK="${S}/cetools/packages/dsplink"
PACKAGES += " ti-dsplink-apps"
FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*"
-FILES_ti-dsplink-apps = "/${installdir}/dsplink/*"
+FILES_ti-dsplink-apps = "${installdir}/dsplink/*"
# Disable QA check untils we figure out how to pass LDFLAGS in build
INSANE_SKIP_${PN} = True
# compile and run time dependencies
DEPENDS = " virtual/kernel perl-native ti-dsplink-module"
-PR = "r9"
PV = "2231"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
+
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz "
inherit sdk
-PR="r4"
+PR="r7"
FILES=${@os.path.dirname(bb.data.getVar('FILE',d,1))}/files/dvsdk-rules
# compile and run time dependencies
DEPENDS = "virtual/kernel perl-native"
-PR = "r9"
PV = "2231"
+#This is a kernel module, don't set PR directly
+MACHINE_KERNEL_PR_append = "a"
SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz "
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "310"
-PR = "r14"
+PR = "r16"
do_stage() {
install -d ${STAGING_DIR_NATIVE}/${PN}
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "310"
-PR = "r14"
+PR = "r16"
do_install() {
install -d ${D}/${prefix}/dvsdk/xdctools_3_10_03