diff options
Diffstat (limited to 'packages/dsplink')
-rw-r--r-- | packages/dsplink/codec-engine_2.10.bb | 77 | ||||
-rw-r--r-- | packages/dsplink/dsplink-1.51/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/dsplink/dsplink-1.51/prcs-fix-include.patch | 49 | ||||
-rw-r--r-- | packages/dsplink/dsplink.inc | 87 | ||||
-rw-r--r-- | packages/dsplink/dsplink_1.50.bb | 47 | ||||
-rw-r--r-- | packages/dsplink/dsplink_1.51.00.08.bb | 19 | ||||
-rw-r--r-- | packages/dsplink/files/CURRENTCFG.MK | 6 | ||||
-rw-r--r-- | packages/dsplink/files/prcs-fix-include.patch | 40 |
8 files changed, 279 insertions, 46 deletions
diff --git a/packages/dsplink/codec-engine_2.10.bb b/packages/dsplink/codec-engine_2.10.bb new file mode 100644 index 0000000000..8968a0ce02 --- /dev/null +++ b/packages/dsplink/codec-engine_2.10.bb @@ -0,0 +1,77 @@ +DESCRIPTION = "Codec Engine for TI ARM/DSP processors" + +DEPENDS = "virtual/kernel perl-native" +RDEPENDS = "update-modules" + +inherit module + +PR = "r1" +PV = "2.10" + +# Get CE tarball from TI website, place in sources and calculate +# md5sum +# Look for tarball at https://www-a.ti.com/downloads/sds_support/targetcontent/CE/index.html + +SRC_URI = "http://install.tarball.in.source.dir/codec_engine_2_10_01.tar.gz \ +" + +S = "${WORKDIR}/codec_engine_2_10_01" + +do_compile() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + cd ${S}/cetools/packages/ti/sdo/linuxutils/cmem + sed -i \ + -e s:/db/toolsrc/library/vendors2005/mvl/arm/mvl4.0.1-root-new/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-:${TARGET_PREFIX}:g \ + -e s:/db/toolsrc/library/vendors2005/opensource/buildroot/10122007/build_arm/staging_dir/usr/bin/arm-linux-:${TARGET_PREFIX}:g \ + -e s:/db/toolsrc/library/vendors2005/mvl/arm/DaVinci-Linux-Rel_mvl401c/Linux:${STAGING_KERNEL_DIR}:g \ + -e s:/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/opt/dvevm:${D}:g \ + Rules.make + + oe_runmake clean + oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ + KERNEL_SRC=${STAGING_KERNEL_DIR} \ + KERNEL_VERSION=${KERNEL_VERSION} \ + CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ + AR="${KERNEL_AR}" \ + release + oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ + KERNEL_SRC=${STAGING_KERNEL_DIR} \ + KERNEL_VERSION=${KERNEL_VERSION} \ + CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ + AR="${KERNEL_AR}" \ + debug + oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ + KERNEL_SRC=${STAGING_KERNEL_DIR} \ + KERNEL_VERSION=${KERNEL_VERSION} \ + CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ + AR="${KERNEL_AR}" +} + +do_install() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + cd ${S}/cetools/packages/ti/sdo/linuxutils/cmem + oe_runmake install + install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp + mv ${D}/cmemk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp + install -d ${D}/${base_sbindir} + cd ${D} ; mv apitest apitestd multi_process multi_processd translate translated ${D}/${base_sbindir} +} + +pkg_postinst_${PN}-module () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -a + update-modules || true +} + +pkg_postrm_${PN}-module () { + update-modules || true +} + +PACKAGES =+ "dsplink-cmemk-module" +FILES_dsplink-cmemk-module = "${sysconfdir} /lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*ko" + +FILES_${PN} = "${base_sbindir}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/packages/dsplink/dsplink-1.51/.mtn2git_empty b/packages/dsplink/dsplink-1.51/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/dsplink/dsplink-1.51/.mtn2git_empty diff --git a/packages/dsplink/dsplink-1.51/prcs-fix-include.patch b/packages/dsplink/dsplink-1.51/prcs-fix-include.patch new file mode 100644 index 0000000000..6fa92cd50a --- /dev/null +++ b/packages/dsplink/dsplink-1.51/prcs-fix-include.patch @@ -0,0 +1,49 @@ +--- /tmp/prcs.c 2008-05-15 20:35:49.946802023 +0200 ++++ dsplink_1_50/dsplink/gpp/src/osal/Linux/prcs.c 2008-05-15 20:36:01.386858569 +0200 +@@ -17,6 +17,7 @@ + + /* ----------------------------------- OS Specific Headers */ + #include <linux/autoconf.h> ++#include <linux/sched.h> + #include <linux/spinlock.h> + #include <linux/module.h> + #include <linux/mm.h> + +--- /tmp/mem.c 2008-06-22 16:05:16.000000000 +0200 ++++ dsplink_1_50/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2008-06-22 16:05:43.000000000 +0200 +@@ -16,6 +16,7 @@ + + + /* ----------------------------------- OS Specific Headers */ ++ + #include <linux/autoconf.h> + #include <linux/spinlock.h> + #if (defined(DM642_PCI) || defined (DM64LC_PCI)) +@@ -31,6 +32,7 @@ + #endif /* if (defined(DM642_PCI) || defined (DM64LC_PCI)) */ + #include <linux/vmalloc.h> + #include <asm/io.h> ++#include <linux/sched.h> + + /* ----------------------------------- DSP/BIOS Link */ + #include <dsplink.h> +--- /tmp/hal_intgen.c 2008-06-29 23:42:05.000000000 +0200 ++++ dsplink_1_51_00_08/dsplink/gpp/src/ldrv/HAL/OMAP/3530/hal_intgen.c 2008-06-29 23:42:18.000000000 +0200 +@@ -17,6 +17,7 @@ + + + /* ----------------------------------- OS headers */ ++#include <linux/autoconf.h> + #include <asm/io.h> + + /* ----------------------------------- DSP/BIOS Link */ +--- /tmp/hal_prcm.c 2008-06-29 23:42:05.000000000 +0200 ++++ dsplink_1_51_00_08/dsplink/gpp/src/ldrv/HAL/OMAP/3530/hal_prcm.c 2008-06-29 23:43:10.000000000 +0200 +@@ -18,6 +18,7 @@ + + + /* ----------------------------------- OS headers */ ++#include <linux/autoconf.h> + #include <asm/io.h> + + /* ----------------------------------- DSP/BIOS Link */ diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc new file mode 100644 index 0000000000..877697eb99 --- /dev/null +++ b/packages/dsplink/dsplink.inc @@ -0,0 +1,87 @@ +DESCRIPTION = "DSP Link for TI ARM/DSP processors" + +DEPENDS = "virtual/kernel perl-native" +RDEPENDS = "update-modules" + +inherit module + +S = "${WORKDIR}/dsplink_1_50/dsplink" + +# Needed for buildscripts +export DSPLINK = "${S}" + +DSPLINKPLATFORM ?= "Davinci" + +DSPLINKPLATFORM_omap5912osk = "OMAP" +DSPLINKPLATFORM_beagleboard = "OMAP" +DSPLINKPLATFORM_davinci-sffsdr = "Davinci" +DSPLINKPLATFORM_davinci-dvevm = "Davinci" + +DSPLINKDSP ?= "C64XX" +DSPLINKSOC ?= "DM6446" + +DSPLINKSOC_beagleboard = "3530" + +export DSPLINKPLATFORM +export DSPLINKDSP + +do_configure () { + cp ${WORKDIR}/CURRENTCFG.MK ${S}/config + cp ${WORKDIR}/davinci_mvlpro5.0.mk ${S}/make/Linux + cp ${WORKDIR}/c64xx_5.xx_linux.mk ${S}/make/DspBios + + sed -i -e s:SED_ME_SOURCEDIR:${S}:g \ + -e s:SED_ME_GPPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_KERNELVERSION:${KERNEL_VERSION}:g \ + -e s:SED_ME_DSPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_PLATFORM:${DSPLINKPLATFORM}:g \ + -e s:SED_ME_DSP:${DSPLINKDSP}:g \ + -e s:SED_ME_SOC:${DSPLINKSOC}:g \ + ${S}/config/CURRENTCFG.MK + + sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \ + -e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \ + -e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \ + -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \ + ${S}/make/Linux/davinci_mvlpro5.0.mk + +} + +PARALLEL_MAKE = "" + +do_compile () { + ln -sf ${S}/gpp/src/api/*h ${S}/gpp/inc/ + ln -sf ${S}/gpp/src/pmgr/Linux/2.6.18 ${S}/gpp/src/pmgr/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/api/Linux/2.6.18 ${S}/gpp/src/api/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/osal/Linux/2.6.18 ${S}/gpp/src/osal/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/pmgr/Linux/drv_pmgr.h ${S}/gpp/inc/drv_pmgr.h + ln -sf ${S}/gpp/src/pmgr/pmgr_proc.h ${S}/gpp/inc/pmgr_proc.h + + unset DISPLAY + + oe_runmake -C ${S}/gpp/src all targets + oe_runmake -C ${S}/gpp/src/samples +} + +do_install () { + install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp + cp ${S}/gpp/BUILD/EXPORT/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ +} + +pkg_postinst_${PN}-module () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -a + update-modules || true +} + +pkg_postrm_${PN}-module () { + update-modules || true +} + +PACKAGES =+ "${PN}-module" +FILES_${PN}-module = "${sysconfdir} /lib/modules" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + diff --git a/packages/dsplink/dsplink_1.50.bb b/packages/dsplink/dsplink_1.50.bb index 307d1836e1..b9664e7e5b 100644 --- a/packages/dsplink/dsplink_1.50.bb +++ b/packages/dsplink/dsplink_1.50.bb @@ -1,10 +1,8 @@ -DESCRIPTION = "DSP Link for TI ARM/DSP processors" +require dsplink.inc -DEPENDS = "virtual/kernel perl-native" - -inherit module-base - -PR = "r0" +PR = "r3" +PE = "1" +PV = "1.50" # Get dsplink tarball from TI website, place in sources and calculate # md5sum @@ -19,41 +17,4 @@ SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \ S = "${WORKDIR}/dsplink_1_50/dsplink" -# Needed for buildscripts -export DSPLINK = "${S}" - -do_configure () { - cp ${WORKDIR}/CURRENTCFG.MK ${S}/config - cp ${WORKDIR}/davinci_mvlpro5.0.mk ${S}/make/Linux - cp ${WORKDIR}/c64xx_5.xx_linux.mk ${S}/make/DspBios - - sed -i -e s:SED_ME_SOURCEDIR:${S}:g \ - -e s:SED_ME_GPPDISTRO:davinci_mvlpro5\.0:g \ - -e s:SED_ME_KERNELVERSION:${KERNEL_VERSION}:g \ - -e s:SED_ME_DSPDISTRO:davinci_mvlpro5\.0:g \ - -e s:SED_ME_PLATFORM:Davinci:g \ - ${S}/config/CURRENTCFG.MK - - sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \ - -e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \ - -e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \ - -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \ - ${S}/make/Linux/davinci_mvlpro5.0.mk - -} - -PARALLEL_MAKE = "" - -do_compile () { - ln -sf ${S}/gpp/src/api/*h ${S}/gpp/inc/ - ln -sf ${S}/gpp/src/pmgr/Linux/2.6.18 ${S}/gpp/src/pmgr/Linux/2.6.26-rc2-omap1 - ln -sf ${S}/gpp/src/pmgr/Linux/drv_pmgr.h ${S}/gpp/inc/drv_pmgr.h - ln -sf ${S}/gpp/src/pmgr/pmgr_proc.h ${S}/gpp/inc/pmgr_proc.h - - unset DISPLAY - - oe_runmake -C ${S}/gpp/src -} - -PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/packages/dsplink/dsplink_1.51.00.08.bb b/packages/dsplink/dsplink_1.51.00.08.bb new file mode 100644 index 0000000000..d79b5e655c --- /dev/null +++ b/packages/dsplink/dsplink_1.51.00.08.bb @@ -0,0 +1,19 @@ +require dsplink.inc + +PR = "r0" +PE = "1" +PV = "1.51" + +# Get dsplink tarball from TI website, place in sources and calculate +# md5sum +# Look for tarball at https://www-a.ti.com/downloads/sds_support/targetcontent/link/index.html + +SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_51_00_08.tar.gz \ + file://CURRENTCFG.MK \ + file://c64xx_5.xx_linux.mk \ + file://davinci_mvlpro5.0.mk \ + file://prcs-fix-include.patch;patch=1;pnum=2 \ +" + +S = "${WORKDIR}/dsplink_1_51_00_08/dsplink" + diff --git a/packages/dsplink/files/CURRENTCFG.MK b/packages/dsplink/files/CURRENTCFG.MK index ff109de482..1f932f2b77 100644 --- a/packages/dsplink/files/CURRENTCFG.MK +++ b/packages/dsplink/files/CURRENTCFG.MK @@ -47,8 +47,8 @@ export DSPPLATFORM := SED_ME_PLATFORM # ========================================================= # Target GPP and DSP devices # ========================================================= -export GPPDEVICE := Davinci -export DSPDEVICE := C64XX +export GPPDEVICE := SED_ME_PLATFORM +export DSPDEVICE := SED_ME_DSP # ========================================================= @@ -94,6 +94,6 @@ export PROBE := 0 # ========================================================= # Platform Variant # ========================================================= -export VARIANT := DM6446 +export VARIANT := SED_ME_SOC diff --git a/packages/dsplink/files/prcs-fix-include.patch b/packages/dsplink/files/prcs-fix-include.patch index 12fcd5ec5d..421bd706f7 100644 --- a/packages/dsplink/files/prcs-fix-include.patch +++ b/packages/dsplink/files/prcs-fix-include.patch @@ -8,3 +8,43 @@ #include <linux/spinlock.h> #include <linux/module.h> #include <linux/mm.h> + +--- dvevm_1_00_00_32.orig/dsplink_1_30_07ce/packages/dsplink_dm420/gpp/src/osal/Linux/2.6/isr.c ++++ dsplink_1_50/dsplink/gpp/src/osal/Linux/2.6.18/isr.c +@@ -130,7 +130,7 @@ struct IsrObject_tag { + */ + STATIC + irqreturn_t +-ISR_Callback (int irq, void * arg, struct pt_regs * flags) ; ++ISR_Callback (int irq, void * arg) ; + + + /* ============================================================================ +@@ -664,7 +664,7 @@ ISR_Debug () + */ + STATIC + irqreturn_t +-ISR_Callback (int irq, void * arg, struct pt_regs * flags) ++ISR_Callback (int irq, void * arg) + { + DSP_STATUS status = DSP_SOK ; + IsrObject * isrObj = (IsrObject *) (arg) ; + +--- /tmp/mem.c 2008-06-22 16:05:16.000000000 +0200 ++++ dsplink_1_50/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2008-06-22 16:05:43.000000000 +0200 +@@ -16,6 +16,7 @@ + + + /* ----------------------------------- OS Specific Headers */ ++ + #include <linux/autoconf.h> + #include <linux/spinlock.h> + #if (defined(DM642_PCI) || defined (DM64LC_PCI)) +@@ -31,6 +32,7 @@ + #endif /* if (defined(DM642_PCI) || defined (DM64LC_PCI)) */ + #include <linux/vmalloc.h> + #include <asm/io.h> ++#include <linux/sched.h> + + /* ----------------------------------- DSP/BIOS Link */ + #include <dsplink.h> |