diff options
author | Koen Kooi <koen@openembedded.org> | 2008-06-29 18:51:02 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-06-29 18:51:02 +0000 |
commit | c9c7ad8a8952ae9f573464e813a79652cbd6e18e (patch) | |
tree | 5cd96740534089a2cda653e3c061175653fed2c4 /packages/dsplink | |
parent | d2f85defad9eb20118ebc76f5186f2ed883bb408 (diff) |
dsplink: add dsplink 1.51
Diffstat (limited to 'packages/dsplink')
-rw-r--r-- | packages/dsplink/dsplink-1.51/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/dsplink/dsplink-1.51/prcs-fix-include.patch | 29 | ||||
-rw-r--r-- | packages/dsplink/dsplink.inc | 83 | ||||
-rw-r--r-- | packages/dsplink/dsplink_1.50.bb | 80 | ||||
-rw-r--r-- | packages/dsplink/dsplink_1.51.00.08.bb | 19 |
5 files changed, 132 insertions, 79 deletions
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..a71cea3904 --- /dev/null +++ b/packages/dsplink/dsplink-1.51/prcs-fix-include.patch @@ -0,0 +1,29 @@ +--- /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> diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc new file mode 100644 index 0000000000..33aaba1e35 --- /dev/null +++ b/packages/dsplink/dsplink.inc @@ -0,0 +1,83 @@ +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" + +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 \ + ${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 617309ac1d..b9664e7e5b 100644 --- a/packages/dsplink/dsplink_1.50.bb +++ b/packages/dsplink/dsplink_1.50.bb @@ -1,9 +1,4 @@ -DESCRIPTION = "DSP Link for TI ARM/DSP processors" - -DEPENDS = "virtual/kernel perl-native" -RDEPENDS = "update-modules" - -inherit module +require dsplink.inc PR = "r3" PE = "1" @@ -22,77 +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}" - -DSPLINKPLATFORM ?= "Davinci" - -DSPLINKPLATFORM_omap5912osk = "Omap" -DSPLINKPLATFORM_beagleboard = "Omap" -DSPLINKPLATFORM_davinci-sffsdr = "Davinci" -DSPLINKPLATFORM_davinci-dvevm = "Davinci" - -DSPLINKDSP ?= "C64XX" - -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 \ - ${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.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" + |