dsplink: get first part to build, need to sort out more includes, since someone thoug...
authorKoen Kooi <koen@openembedded.org>
Thu, 15 May 2008 18:45:44 +0000 (18:45 +0000)
committerKoen Kooi <koen@openembedded.org>
Thu, 15 May 2008 18:45:44 +0000 (18:45 +0000)
packages/dsplink/dsplink_1.50.bb
packages/dsplink/files/davinci_mvlpro5.0.mk
packages/dsplink/files/prcs-fix-include.patch [new file with mode: 0644]

index 1c5b267..7051966 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "DSP Link for TI ARM/DSP processors"
 
-DEPENDS = "virtual/kernel"
+DEPENDS = "virtual/kernel perl-native"
 
 inherit module-base
 
@@ -13,7 +13,8 @@ PR = "r0"
 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"
@@ -36,12 +37,17 @@ do_configure () {
        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}" 
index b90045e..2ea2fd8 100644 (file)
@@ -35,7 +35,7 @@ USE_DISTRIBUTION := 1
 #   ----------------------------------------------------------------------------
 #   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.
diff --git a/packages/dsplink/files/prcs-fix-include.patch b/packages/dsplink/files/prcs-fix-include.patch
new file mode 100644 (file)
index 0000000..12fcd5e
--- /dev/null
@@ -0,0 +1,10 @@
+--- /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>