DESCRIPTION = "DSP Link for TI ARM/DSP processors"
-DEPENDS = "virtual/kernel"
+DEPENDS = "virtual/kernel perl-native"
inherit module-base
SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \
file://CURRENTCFG.MK \
file://c64xx_5.xx_linux.mk \
- file://davinci_mvlpro5.0.mk \
+ file://davinci_mvlpro5.0.mk \
+ file://prcs-fix-include.patch;patch=1 \
"
S = "${WORKDIR}/dsplink_1_50/dsplink"
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 () {
- make -C ${S}/gpp/src
+ 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
+ oe_runmake -C ${S}/gpp/src
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
# ----------------------------------------------------------------------------
# Base directory for the GPP OS
# ----------------------------------------------------------------------------
-BASE_BUILDOS := ${HOME}/montavista/kernel/Linux
+BASE_BUILDOS := SED_ME_KERNELDIR
# ----------------------------------------------------------------------------
# Base for code generation tools - compiler, linker, archiver etc.
--- /dev/null
+--- /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>