diff options
Diffstat (limited to 'recipes/dvsdk/ti-dsplink-module_1.61.3.bb')
-rw-r--r-- | recipes/dvsdk/ti-dsplink-module_1.61.3.bb | 50 |
1 files changed, 31 insertions, 19 deletions
diff --git a/recipes/dvsdk/ti-dsplink-module_1.61.3.bb b/recipes/dvsdk/ti-dsplink-module_1.61.3.bb index 492305f5c5..7febdc86bc 100644 --- a/recipes/dvsdk/ti-dsplink-module_1.61.3.bb +++ b/recipes/dvsdk/ti-dsplink-module_1.61.3.bb @@ -1,35 +1,42 @@ DESCRIPTION = "DSPLINK 1.61.3 module for TI ARM/DSP processors" + +require ti-paths.inc inherit module # compile and run time dependencies -DEPENDS += " virtual/kernel perl-native ti-dspbios-native ti-cgt6x-native update-modules" +DEPENDS += "virtual/kernel perl-native ti-dspbios-native ti-cgt6x-native update-modules ti-xdctools-native" # tconf from xdctools dislikes '.' in pwd :/ -PV = "1613" #This is a kernel module, don't set PR directly -MACHINE_KERNEL_PR_append = "a" +MACHINE_KERNEL_PR_append = "a" +PV = "1613" -installdir = "${datadir}/ti" -SRC_URI = "http://install.source.dir.com/codec_engine_2_23_01.tar.gz \ +SRC_URI = "http://install.source.dir.com/dsplink_1_61_03.tar.gz \ file://loadmodules-ti-dsplink-apps.sh \ file://unloadmodules-ti-dsplink-apps.sh" # Set the source directory -S = "${WORKDIR}/codec_engine_2_23_01" +S = "${WORKDIR}/dsplink_1_61_03" # DSPLINK - Config Variable for different platform -DSPLINKPLATFORM ?= "DAVINCI" -DSPLINKPLATFORM_dm6446-evm ?= "DAVINCI" +DSPLINKPLATFORM ?= "DAVINCI" +DSPLINKPLATFORM_dm6446-evm ?= "DAVINCI" +DSPLINKPLATFORM_da830-omapl137-evm ?= "OMAPL1XX" -DSPLINKDSPCFG ?= "DM6446GEMSHMEM" -DSPLINKDSPCFG_dm6446-evm ?= "DM6446GEMSHMEM" +DSPLINKDSPCFG ?= "DM6446GEMSHMEM" +DSPLINKDSPCFG_dm6446-evm ?= "DM6446GEMSHMEM" +DSPLINKDSPCFG_da830-omapl137-evm ?= "OMAPL1XXGEMSHMEM" -DSPLINKGPPOS ?= "MVL5G" -DSPLINKGPPOS_dm6446-evm ?= "MVL5G" +DSPLINKGPPOS ?= "MVL5G" +DSPLINKGPPOS_dm6446-evm ?= "MVL5G" +DSPLINKGPPOS_da830-omapl137-evm ?= "MVL5G" + +DSPLINK = "${S}/dsplink" +export DSPLINK -export DSPLINK="${S}/cetools/packages/dsplink" STAGING_TI_DSPBIOS_DIR="${STAGING_DIR_NATIVE}/ti-dspbios-native" STAGING_TI_CGT6x_DIR="${STAGING_DIR_NATIVE}/ti-cgt6x-native" +STAGING_TI_XDCTOOL_INSTALL_DIR="${STAGING_DIR_NATIVE}/ti-xdctools-native" do_compile() { @@ -38,7 +45,7 @@ do_compile() { cd ${DSPLINK} perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 \ --dspcfg_0=${DSPLINKDSPCFG} --dspos_0=DSPBIOS5XX \ - --gppos=${DSPLINKGPPOS} --comps=ponslrm + --gppos=${DSPLINKGPPOS} --comps=ponslrm ) # dsplink makefile is hard-coded to use kbuild only on OMAP3530. @@ -54,7 +61,7 @@ do_compile() { # Build the gpp user space library cd ${DSPLINK}/gpp/src/api - make \ + ${STAGING_TI_XDCTOOL_INSTALL_DIR}/gmake \ CROSS_COMPILE="${TARGET_PREFIX}" \ CC="${KERNEL_CC}" \ AR="${KERNEL_AR}" \ @@ -66,7 +73,7 @@ do_compile() { # Build the gpp kernel space (debug and release) cd ${DSPLINK}/gpp/src - make \ + ${STAGING_TI_XDCTOOL_INSTALL_DIR}/gmake \ OBJDUMP="${TARGET_PREFIX}objdump" \ CROSS_COMPILE="${TARGET_PREFIX}" \ CC="${KERNEL_CC}" \ @@ -79,7 +86,7 @@ do_compile() { # Build the gpp samples cd ${DSPLINK}/gpp/src/samples - make \ + ${STAGING_TI_XDCTOOL_INSTALL_DIR}/gmake \ BASE_TOOLCHAIN="${CROSS_DIR}" \ BASE_CGTOOLS="${BASE_TOOLCHAIN}/bin" \ OSINC_PLATFORM="${CROSS_DIR}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include" \ @@ -96,14 +103,14 @@ do_compile() { # Build the dsp library (debug and release) cd ${DSPLINK}/dsp/src - make \ + ${STAGING_TI_XDCTOOL_INSTALL_DIR}/gmake \ BASE_CGTOOLS="${STAGING_TI_CGT6x_DIR}" \ BASE_SABIOS="${STAGING_TI_DSPBIOS_DIR}" \ clean all # Build the dsp samples (debug and release) cd ${DSPLINK}/dsp/src/samples - make \ + ${STAGING_TI_XDCTOOL_INSTALL_DIR}/gmake \ BASE_CGTOOLS="${STAGING_TI_CGT6x_DIR}" \ BASE_SABIOS="${STAGING_TI_DSPBIOS_DIR}" \ clean all @@ -132,6 +139,11 @@ do_install () { install ${WORKDIR}/unloadmodules-ti-dsplink-apps.sh ${D}/${installdir}/dsplink/apps } +do_stage () { + install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/packages + cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/packages +} + pkg_postrm () { update-modules || true } |