summaryrefslogtreecommitdiffstats
path: root/extras/recipes-ti/dsplink
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-ti/dsplink')
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink.inc211
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink/0001-remove-check-for-make-version-3.85-works-fine.patch28
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch71
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch337
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch288
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch335
-rwxr-xr-xextras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh25
-rwxr-xr-xextras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh25
-rwxr-xr-xextras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh5
-rw-r--r--extras/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb16
10 files changed, 1341 insertions, 0 deletions
diff --git a/extras/recipes-ti/dsplink/ti-dsplink.inc b/extras/recipes-ti/dsplink/ti-dsplink.inc
new file mode 100644
index 00000000..ce7cbf97
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink.inc
@@ -0,0 +1,211 @@
1DESCRIPTION = "DSPLINK Inter-Processor Communications (IPC) for TI ARM/DSP processors"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/DSPLink/index.html"
3SECTION = "devel"
4LICENSE = "GPLv2"
5
6LIC_FILES_CHKSUM = "file://dsplink/doc/gpl_2.0.pdf;md5=70996be607b61df78ce46093f4afe2bd"
7
8
9# TODO :: KERNEL_CC, should use for kernel cc for module build?
10# TODO :: Need to understand why OBJDUMP is required for kernel module
11# TODO :: Unset required since LDFLAGS gets picked up and used incorrectly - investigate
12# TODO :: Do we need to pass so many variables to each make step?
13
14inherit module
15
16require ../includes/ti-paths.inc
17require ../includes/ti-staging.inc
18
19PROVIDES = "ti-dsplink-module"
20PROVIDES += "ti-dsplink-examples"
21
22# This package builds a kernel module, use kernel PR as base and append a local version
23PR = "${MACHINE_KERNEL_PR}"
24PR_append = "j"
25
26S = "${WORKDIR}/dsplink_linux_${PV}"
27
28SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/${PV_DL_PATH}/dsplink_linux_${PV}.tar.gz;name=dsplinktarball \
29 file://ti-dsplink-examples-run.sh \
30 file://ti-dsplink-examples-loadmodules.sh \
31 file://ti-dsplink-examples-unloadmodules.sh "
32
33DEPENDS = "ti-dspbios ti-xdctools ti-cgt6x"
34DEPENDS += "virtual/kernel perl-native"
35
36# SOC_FAMILY configuration
37
38DSPLINKPLATFORM_dm6446 = "DAVINCI"
39DSPLINKPLATFORM_dm6467 = "DAVINCIHD"
40DSPLINKPLATFORM_omapl137 = "OMAPL1XX"
41DSPLINKPLATFORM_omapl138 = "OMAPL138"
42DSPLINKPLATFORM_omap3 = "OMAP3530"
43DSPLINKPLATFORM ?= "<UNDEFINED_DSPLINKPLATFORM>"
44
45DSPLINKDSPCFG_dm6446 = "DM6446GEMSHMEM"
46DSPLINKDSPCFG_dm6467 = "DM6467GEMSHMEM"
47DSPLINKDSPCFG_omapl137 = "OMAPL1XXGEMSHMEM"
48DSPLINKDSPCFG_omapl138 = "OMAPL138GEMSHMEM"
49DSPLINKDSPCFG_omap3 = "OMAP3530SHMEM"
50DSPLINKDSPCFG ?= "<UNDEFINED_DSPLINKDSPCFG>"
51
52DSPLINKDSP_dm6446 = "DM6446GEM_0"
53DSPLINKDSP_dm6467 = "DM6467GEM_0"
54DSPLINKDSP_omapl137 = "OMAPL1XXGEM_0"
55DSPLINKDSP_omapl138 = "OMAPL138GEM_0"
56DSPLINKDSP_omap3 = "OMAP3530_0"
57DSPLINKDSP ?= "<UNDEFINED_DSPLINKDSP>"
58
59DSPLINKGPPOS_dm6446 = "DM6446LSP"
60DSPLINKGPPOS_dm6467 = "DM6467LSP"
61DSPLINKGPPOS_omapl137 = "ARM"
62DSPLINKGPPOS_omapl138 = "ARM"
63DSPLINKGPPOS_omap3 = "OMAPLSP"
64DSPLINKGPPOS ?= "<DEFINED_DSPLINKGPPOS>"
65
66# Exported Variable needed by build
67DSPLINK = "${S}/dsplink"
68export DSPLINK
69
70do_configure() {
71
72 # Run perl script to create appropriate makefiles (v1.60 and up)
73 (
74 cd ${DSPLINK}
75 perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 \
76 --dspcfg_0=${DSPLINKDSPCFG} --dspos_0=DSPBIOS5XX \
77 --gppos=${DSPLINKGPPOS} --comps=ponslrmc
78 )
79}
80
81do_prepsources () {
82
83 # Prepare the tree for rebuiling - clean and generate interfaces
84 XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .make -PR .
85 XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc clean -PR .
86 XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .interfaces -PR .
87}
88
89addtask prepsources after do_configure before do_compile
90
91do_compile() {
92 # TODO :: KERNEL_CC, should use for kernel module build?
93 # TODO :: Need to understand why OBJDUMP is required for kernel module
94 # Unset these since LDFLAGS gets picked up and used incorrectly.... need
95 # investigation
96
97 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
98
99 # Build the gpp user space library
100 cd ${DSPLINK}/gpp/src/api && make \
101 CROSS_COMPILE="${TARGET_PREFIX}" \
102 CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
103 AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
104 LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \
105 COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
106 ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
107 KERNEL_DIR="${STAGING_KERNEL_DIR}" \
108 all
109
110 # Build the gpp kernel space (debug and release)
111 do_make_scripts
112 cd ${DSPLINK}/gpp/src && make \
113 OBJDUMP="${TARGET_PREFIX}objdump" \
114 CROSS_COMPILE="${TARGET_PREFIX}" \
115 CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
116 AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
117 LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \
118 COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
119 ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
120 KERNEL_DIR="${STAGING_KERNEL_DIR}" \
121 BASE_BUILDOS="${STAGING_KERNEL_DIR}" \
122 all
123
124 # Build the gpp samples
125 cd ${DSPLINK}/gpp/src/samples && make \
126 BASE_TOOLCHAIN="${TOOLCHAIN_PATH}" \
127 BASE_CGTOOLS="${BASE_TOOLCHAIN}/bin" \
128 OSINC_PLATFORM="${TOOLCHAIN_PATH}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include" \
129 OSINC_TARGET="${BASE_TOOLCHAIN}/target/usr/include" \
130 CROSS_COMPILE="${TARGET_PREFIX}" \
131 CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
132 LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
133 AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
134 COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
135 LINKER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
136 ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
137 KERNEL_DIR="${STAGING_KERNEL_DIR}" \
138 all
139
140 # Build the dsp library (debug and release)
141 cd ${DSPLINK}/dsp/src && make \
142 BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \
143 BASE_SABIOS="${BIOS_INSTALL_DIR}" \
144 all
145
146 # Build the dsp samples (debug and release)
147 cd ${DSPLINK}/dsp/src/samples && make \
148 BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \
149 BASE_SABIOS="${BIOS_INSTALL_DIR}" \
150 all
151}
152
153KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
154
155do_install () {
156
157 # Install the kernel module
158 install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
159 install -m 0755 ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
160
161 # Install the example apps (gpp and dsp)
162 install -d ${D}/${installdir}/ti-dsplink-examples/
163 cp ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/*gpp ${D}/${installdir}/ti-dsplink-examples
164 cp ${DSPLINK}/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/RELEASE/*.out ${D}/${installdir}/ti-dsplink-examples
165
166 # Install the example apps module un/load scripts
167 install ${WORKDIR}/ti-dsplink-examples-loadmodules.sh ${D}/${installdir}/ti-dsplink-examples
168 install ${WORKDIR}/ti-dsplink-examples-unloadmodules.sh ${D}/${installdir}/ti-dsplink-examples
169 install ${WORKDIR}/ti-dsplink-examples-run.sh ${D}/${installdir}/ti-dsplink-examples
170
171 # Install/Stage the Source Tree
172 install -d ${D}${LINK_INSTALL_DIR_RECIPE}
173 cp -pPrf ${S}/* ${D}${LINK_INSTALL_DIR_RECIPE}
174 chmod -R +w ${D}${LINK_INSTALL_DIR_RECIPE}
175
176 # Changes path of include txt file to use LINK_INSTALL_DIR variable for GPP
177 for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/*/ -name "*.txt"); do
178 sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g
179 done
180
181 # Changes path of include txt file to use LINK_INSTALL_DIR variable for DSP
182 for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/*/ -name "*.txt"); do
183 sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g
184 done
185
186}
187
188PACKAGES =+ "ti-dsplink-module"
189FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko"
190RDEPENDS_ti-dsplink-module += "update-modules"
191
192pkg_postinst_ti-dsplink-module () {
193#!/bin/sh
194if [ -n "$D" ]; then
195 exit 1
196fi
197
198depmod -a
199update-modules || true
200}
201
202pkg_postrm_ti-dsplink-module () {
203#!/bin/sh
204update-modules || true
205}
206
207PACKAGES += "ti-dsplink-examples"
208RDEPENDS_ti-dsplink-examples_append = " ti-dsplink-module"
209RDEPENDS_ti-dsplink-examples_append_omap3 += " ti-lpm-module ti-lpm-utils"
210FILES_ti-dsplink-examples = "${installdir}/ti-dsplink-examples/*"
211INSANE_SKIP_ti-dsplink-examples = "1"
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/0001-remove-check-for-make-version-3.85-works-fine.patch b/extras/recipes-ti/dsplink/ti-dsplink/0001-remove-check-for-make-version-3.85-works-fine.patch
new file mode 100644
index 00000000..70596c5d
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/0001-remove-check-for-make-version-3.85-works-fine.patch
@@ -0,0 +1,28 @@
1From a96aa25518f306138c71b3fc074381f102092a13 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Fri, 23 Dec 2011 10:58:47 +0100
4Subject: [PATCH] remove check for make version, 3.85 works fine
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 dsplink/make/start.mk | 4 ----
9 1 files changed, 0 insertions(+), 4 deletions(-)
10
11diff --git a/dsplink/make/start.mk b/dsplink/make/start.mk
12index 0589f3c..a8f5740 100644
13--- a/dsplink/make/start.mk
14+++ b/dsplink/make/start.mk
15@@ -39,10 +39,6 @@
16 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17 # ============================================================================
18
19-
20-# Check for MAKE version
21-$(if $(filter $(MAKE_VERSION), 3.81 3.81beta1 3.90 3.92),,\
22-$(error This makefile requires one of GNU make version 3.81 3.81beta1 3.90 3.92))
23 # ============================================================================
24 # Export the directory separator
25 # ============================================================================
26--
271.7.7.4
28
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch b/extras/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch
new file mode 100644
index 00000000..eab3ec63
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch
@@ -0,0 +1,71 @@
1From e0931bf37628727903a567f1c7096ae0011edc3d Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Tue, 4 Jan 2011 13:49:05 +0100
4Subject: [PATCH] Adjust drv_pmgr for post 2.6.36 ioctl changes
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c | 17 ++++++++++++++++-
9 1 files changed, 16 insertions(+), 1 deletions(-)
10
11diff --git a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
12index a9b831c..e4a836d 100644
13--- a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
14+++ b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
15@@ -399,10 +399,15 @@ DRV_Release (struct inode * inode, struct file * filp) ;
16 * @see None
17 * ----------------------------------------------------------------------------
18 */
19+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
20 STATIC
21 int
22 DRV_Ioctl (struct inode * inode, struct file * filp,
23 unsigned int cmd, unsigned long args) ;
24+#else
25+STATIC
26+int DRV_Ioctl (struct file *filp, unsigned int cmd, unsigned long args);
27+#endif
28
29
30 /** ----------------------------------------------------------------------------
31@@ -495,7 +500,11 @@ STATIC struct file_operations driverOps = {
32 open: DRV_Open,
33 flush: DRV_Flush,
34 release: DRV_Release,
35+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
36 ioctl: DRV_Ioctl,
37+#else
38+ unlocked_ioctl: DRV_Ioctl,
39+#endif
40 mmap: DRV_Mmap,
41 read: DRV_Read,
42 .owner = THIS_MODULE
43@@ -817,10 +826,16 @@ DRV_Release (struct inode * inode, struct file * filp)
44 * @desc Function to invoke the APIs through ioctl.
45 * ----------------------------------------------------------------------------
46 */
47+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
48 STATIC
49 NORMAL_API
50 int DRV_Ioctl (struct inode * inode, struct file * filp,
51 unsigned int cmd, unsigned long args)
52+#else
53+STATIC
54+NORMAL_API
55+int DRV_Ioctl (struct file *filp, unsigned int cmd, unsigned long args)
56+#endif
57 {
58 DSP_STATUS status = DSP_SOK ;
59 int osStatus = 0 ;
60@@ -829,7 +844,7 @@ int DRV_Ioctl (struct inode * inode, struct file * filp,
61 CMD_Args apiArgs ;
62
63
64- TRC_4ENTER ("DRV_Ioctl", inode, filp, cmd, args) ;
65+ TRC_3ENTER ("DRV_Ioctl", filp, cmd, args) ;
66
67 retVal = copy_from_user ((Pvoid) &apiArgs,
68 (const Pvoid) srcAddr,
69--
701.6.6.1
71
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch
new file mode 100644
index 00000000..5a25dbb5
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch
@@ -0,0 +1,337 @@
1From 7b36e94dcb33892e1df7d3327db31bd41fb6167e Mon Sep 17 00:00:00 2001
2From: Roger Monk <r-monk@ti.com>
3Date: Fri, 5 Mar 2010 19:22:58 +0000
4Subject: [PATCH] dsplink_1_64: Add support for building with CS tools + against 2.6.30+
5
6 * Tweaked Patches from Niclas
7
8Signed-off-by: Roger Monk <r-monk@ti.com>
9---
10 dsplink/config/bin/dsplinkcfg.pl | 17 ++++-
11 dsplink/gpp/src/DIRS | 5 +
12 dslpink/gpp/src/Makefile | 8 ++-
13 dsplink/gpp/src/Rules.mk | 5 +
14 dsplink/make/Linux/davinci_2.6.mk | 211 +++++++++++++++++++++++++++++++++++++++++++++
15 5 files changed, 244 insertions(+), 2 deletions(-)
16 create mode 100644 make/Linux/davinci_2.6.mk
17
18diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl
19index 644aa38..e83c133 100644
20--- a/dsplink/config/bin/dsplinkcfg.pl
21+++ b/dsplink/config/bin/dsplinkcfg.pl
22@@ -215,6 +215,18 @@ my %CFG_GPPOS_DM6467LSPuc =
23 'OSPREFIX' => 'uc',
24 ) ;
25
26+# DM6446 Linux
27+my %CFG_GPPOS_DM6446LSP =
28+(
29+ 'NAME' => 'DM6446LSP',
30+ 'PREFIX' => '2.6',
31+ 'ID' => 'DM6446LSP',
32+ 'DESC' => 'DM6446 LSP for DM6446',
33+ 'VER' => '2.6.18',
34+ 'TYPE' => 'Linux',
35+ 'LOADERS'=> [\%CFG_LOADER_COFF, ],
36+ 'COMPS' => 'ponslrmc',
37+) ;
38
39 # OMAPL138 Linux with uCLibc filesystem
40 my %CFG_GPPOS_OMAPL138LSPuc =
41@@ -356,7 +368,7 @@ my %CFG_DSPCFG_DM6446GEMSHMEM =
42 'PHYID' => 'DM6446GEMSHMEM',
43 'PHYDESC' => 'Shared Memory Physical Interface',
44 'PHYTYPE' => 'SHMEM',
45- 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G],
46+ 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G, \%CFG_GPPOS_DM6446LSP],
47 'DSPOS' => [\%CFG_DSPOS_5XX, \%CFG_DSPOS_6XX],
48 # DSP defines
49 'DSPNAME' => 'DM6446GEM',
50@@ -2994,6 +3006,9 @@ sub main {
51 if ($platform {'ID'} eq 'DA850') {
52 print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
53 }
54+ if ($platform {'ID'} eq 'DAVINCI') {
55+ print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
56+ }
57 if ($platform {'ID'} eq 'DAVINCIHD') {
58 print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
59 }
60diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS
61index e82969c..05bad2b 100644
62--- a/dsplink/gpp/src/DIRS
63+++ b/dsplink/gpp/src/DIRS
64@@ -63,6 +63,10 @@ ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
65 DIRS += \
66 api
67 else # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
68+ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
69+DIRS += \
70+ api
71+else # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
72 ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
73 DIRS += \
74 api
75@@ -77,6 +81,7 @@ DIRS += \
76 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
77 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
78 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
79+endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
80 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
81 else # ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
82 DIRS += \
83diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile
84index 9e6bbb1..49c3b97 100644
85--- a/dsplink/gpp/src/Makefile
86+++ b/dsplink/gpp/src/Makefile
87@@ -78,7 +78,13 @@ ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
88 include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
89 include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
90 else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
91- include Makefile_bld
92+ ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
93+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_bld
94+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
95+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
96+ else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
97+ include Makefile_bld
98+ endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
99 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
100 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
101 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
102diff --git a/dsplink/gpp/src/Rules.mk b/dsplink/gpp/src/Rules.mk
103index 658ee8a..5a6f52a 100644
104--- a/dsplink/gpp/src/Rules.mk
105+++ b/dsplink/gpp/src/Rules.mk
106@@ -63,6 +63,11 @@ KERNEL_DIR := ${HOME}/da850/DaVinci-PSP-SDK-03.20.00.01/src/kernel/linux-03.2
107 TOOL_PATH := ${HOME}/git/arm-2008q3/bin
108 endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
109
110+ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
111+KERNEL_DIR := ${HOME}/linux-davinci
112+TOOL_PATH := ${HOME}/toolchains/git/arm-2009q1-203/bin
113+endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
114+
115 ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
116 KERNEL_DIR := ${HOME}/linux-davinci
117 TOOL_PATH := ${HOME}/toolchains/git/arm-2009q1-203/bin
118diff --git a/dsplink/make/Linux/davinci_2.6.mk b/dsplink/make/Linux/davinci_2.6.mk
119new file mode 100644
120index 0000000..834fd74
121--- /dev/null
122+++ b/dsplink/make/Linux/davinci_2.6.mk
123@@ -0,0 +1,211 @@
124+# ============================================================================
125+# @file davinci_2.6.mk
126+#
127+# @path $(DSPLINK)/make/Linux/
128+#
129+# @desc This makefile defines OS specific macros used by MAKE system for
130+# the Montavista Pro 5.0 Linux distribution.
131+#
132+# @ver 1.64
133+# ============================================================================
134+# Copyright (C) 2002-2009, Texas Instruments Incorporated -
135+# http://www.ti.com/
136+#
137+# Redistribution and use in source and binary forms, with or without
138+# modification, are permitted provided that the following conditions
139+# are met:
140+#
141+# * Redistributions of source code must retain the above copyright
142+# notice, this list of conditions and the following disclaimer.
143+#
144+# * Redistributions in binary form must reproduce the above copyright
145+# notice, this list of conditions and the following disclaimer in the
146+# documentation and/or other materials provided with the distribution.
147+#
148+# * Neither the name of Texas Instruments Incorporated nor the names of
149+# its contributors may be used to endorse or promote products derived
150+# from this software without specific prior written permission.
151+#
152+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
153+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
154+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
155+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
156+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
157+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
158+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
159+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
160+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
161+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
162+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
163+# ============================================================================
164+
165+
166+ifndef DAVINCI_LINUX2_6_MK
167+
168+define DAVINCI_LINUX2_6_MK
169+endef
170+
171+
172+# ============================================================================
173+# Let the make system know that a specific distribution for the GPP OS
174+# is being used.
175+# ============================================================================
176+USE_DISTRIBUTION := 1
177+
178+
179+# ============================================================================
180+# Set the values of necessary variables to be used for the OS.
181+# ============================================================================
182+
183+# ----------------------------------------------------------------------------
184+# Base directory for the GPP OS
185+# ----------------------------------------------------------------------------
186+BASE_BUILDOS := ${HOME}/linux-davinci
187+
188+# ----------------------------------------------------------------------------
189+# Base for toolchain
190+# ----------------------------------------------------------------------------
191+BASE_TOOLCHAIN := ${HOME}/toolchains/git/arm-2009q1-203
192+
193+# ----------------------------------------------------------------------------
194+# Base for code generation tools - compiler, linker, archiver etc.
195+# ----------------------------------------------------------------------------
196+BASE_CGTOOLS := $(BASE_TOOLCHAIN)/bin
197+
198+# ----------------------------------------------------------------------------
199+# Base directory for include files provided by GPP OS
200+# ----------------------------------------------------------------------------
201+BASE_OSINC := $(BASE_BUILDOS)/include
202+
203+OSINC_GENERIC := $(BASE_OSINC)
204+OSINC_PLATFORM := $(BASE_TOOLCHAIN)/lib/gcc/arm-none-linux-gnueabi/4.2.3/include
205+OSINC_TARGET := $(BASE_TOOLCHAIN)/arm-none-linux-gnueabi/libc/usr/include
206+
207+ifneq ("$(VARIANT)", "")
208+OSINC_VARIANT := $(BASE_OSINC)
209+endif
210+
211+
212+# ----------------------------------------------------------------------------
213+# Base directory for libraries provided by GPP OS
214+# ----------------------------------------------------------------------------
215+BASE_OSLIB := $(BASE_TOOLCHAIN)/lib
216+
217+OSLIB_GENERIC := $(BASE_OSLIB)
218+OSLIB_PLATFORM := $(BASE_OSLIB)
219+
220+
221+ifneq ("$(VARIANT)", "")
222+OSLIB_VARIANT := $(BASE_OSLIB)
223+endif
224+
225+
226+# ============================================================================
227+# COMPILER
228+# ============================================================================
229+
230+# ----------------------------------------------------------------------------
231+# Name of the compiler
232+# ----------------------------------------------------------------------------
233+COMPILER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
234+LD := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ld
235+
236+CROSS_COMPILE := arm-none-linux-gnueabi-
237+export CROSS_COMPILE
238+
239+# ----------------------------------------------------------------------------
240+# Command line switches used by the compiler
241+#
242+# CC_SW_DEF Command line defines
243+# CC_SW_INC Search path for header files
244+# CC_SW_OBJ Create object file
245+# CC_SW_DEB Include debug information
246+# ----------------------------------------------------------------------------
247+CC_SW_DEF := -D
248+CC_SW_INC := -I
249+CC_SW_OBJ := -o
250+CC_SW_DEB := -g
251+
252+# ----------------------------------------------------------------------------
253+# Standard flags for the compiler
254+# ----------------------------------------------------------------------------
255+STD_USER_FLAGS := -Wall -c
256+
257+# ----------------------------------------------------------------------------
258+# Flags for the compiler when building a library
259+# ----------------------------------------------------------------------------
260+EXE_CC_FLAGS :=
261+
262+# ----------------------------------------------------------------------------
263+# Standard flags for the compiler when building an executable
264+# ----------------------------------------------------------------------------
265+DRV_CC_FLAGS := -nostdinc
266+
267+# ----------------------------------------------------------------------------
268+# Flags for the compiler when building a driver
269+# ----------------------------------------------------------------------------
270+LIB_CC_FLAGS :=
271+
272+# ----------------------------------------------------------------------------
273+# Standard definitions for the compiler
274+# ----------------------------------------------------------------------------
275+STD_CC_DEFNS := -D_REENTRANT
276+
277+# ============================================================================
278+# ARCHIVER2 - This denotes the archiver.
279+# ============================================================================
280+ARCHIVER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ar
281+
282+# ----------------------------------------------------------------------------
283+# Standard flags for the archiver
284+# ----------------------------------------------------------------------------
285+STD_AR_FLAGS := -rs
286+
287+
288+# ============================================================================
289+# LINKER used for Library & Driver build
290+# ============================================================================
291+LINKER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
292+
293+# ----------------------------------------------------------------------------
294+# Command line switches used by the linker
295+#
296+# LD_SW_LIB Search path for libraries
297+# LD_SW_OUT Output filename
298+# LD_SW_RELOC Generate relocateable output
299+# ----------------------------------------------------------------------------
300+LD_SW_LIB := -L
301+LD_SW_OUT := -o
302+LD_SW_RELOC := -r
303+
304+# ----------------------------------------------------------------------------
305+# Flags for the LD when building an executable
306+# ----------------------------------------------------------------------------
307+STD_LD_FLAGS :=
308+
309+# ----------------------------------------------------------------------------
310+# Standard flags for the LD
311+# ----------------------------------------------------------------------------
312+EXE_LD_FLAGS := -lpthread -lc
313+
314+# ----------------------------------------------------------------------------
315+# Standard flags for the archiver
316+# ----------------------------------------------------------------------------
317+DRV_LD_FLAGS :=
318+
319+
320+# ============================================================================
321+# Post processing utilities for Linux 2.6
322+# ============================================================================
323+ifneq ($(CONFIG_MODVERSIONS),)
324+CMD_MODPOST_FLAGS := -m -i
325+else
326+CMD_MODPOST_FLAGS := -i
327+endif
328+
329+CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost \
330+ $(CMD_MODPOST_FLAGS) $(BASE_BUILDOS)/Module.symvers \
331+ $(BASE_BUILDOS)/vmlinux
332+
333+
334+endif # ifndef DAVINCI_LINUX2_6_MK
335--
3361.6.0.6
337
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch
new file mode 100644
index 00000000..fa4cb2e6
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch
@@ -0,0 +1,288 @@
1From fd5858c3a247bc61a4de3af1a5097cb05042cfa4 Mon Sep 17 00:00:00 2001
2From: Roger Monk <r-monk@ti.com>
3Date: Sun, 14 Mar 2010 22:13:42 +0000
4Subject: [PATCH] omap1
5
6Signed-off-by: Roger Monk <r-monk@ti.com>
7---
8 dsplink/config/bin/dsplinkcfg.pl | 2 +-
9 dsplink/gpp/src/DIRS | 5 +
10 dsplink/gpp/src/Makefile | 8 ++-
11 dsplink/make/Linux/omapl1xx_arm.mk | 210 ++++++++++++++++++++++++++++++++++++
12 4 files changed, 223 insertions(+), 2 deletions(-)
13 create mode 100644 dsplink/make/Linux/omapl1xx_arm.mk
14
15diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl
16index e83c133..8151945 100644
17--- a/dsplink/config/bin/dsplinkcfg.pl
18+++ b/dsplink/config/bin/dsplinkcfg.pl
19@@ -523,7 +523,7 @@ my %CFG_DSPCFG_OMAPL1XXGEMSHMEM =
20 'PHYID' => 'OMAPL1XXGEMSHMEM',
21 'PHYDESC' => 'Shared Memory Physical Interface',
22 'PHYTYPE' => 'SHMEM',
23- 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G],
24+ 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G, \%CFG_GPPOS_ARM],
25 'DSPOS' => [\%CFG_DSPOS_5XX],
26 # DSP defines
27 'DSPNAME' => 'OMAPL1XXGEM',
28diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS
29index 05bad2b..af48904 100644
30--- a/dsplink/gpp/src/DIRS
31+++ b/dsplink/gpp/src/DIRS
32@@ -55,6 +55,10 @@ ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
33 DIRS += \
34 api
35 else # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
36+ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
37+DIRS += \
38+ api
39+else # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
40 ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
41 DIRS += \
42 api
43@@ -83,6 +87,7 @@ endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
44 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
45 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
46 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
47+endif
48 else # ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
49 DIRS += \
50 arch \
51diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile
52index 49c3b97..0afd988 100644
53--- a/dsplink/gpp/src/Makefile
54+++ b/dsplink/gpp/src/Makefile
55@@ -83,7 +83,13 @@ ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
56 include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
57 include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
58 else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
59- include Makefile_bld
60+ ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
61+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_bld
62+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
63+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
64+ else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
65+ include Makefile_bld
66+ endif
67 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
68 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
69 endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
70diff --git a/dsplink/make/Linux/omapl1xx_arm.mk b/dsplink/make/Linux/omapl1xx_arm.mk
71new file mode 100644
72index 0000000..3e42e87
73--- /dev/null
74+++ b/dsplink/make/Linux/omapl1xx_arm.mk
75@@ -0,0 +1,210 @@
76+# ============================================================================
77+# @file omapl1xx_arm.mk
78+#
79+# @path $(DSPLINK)/make/Linux/
80+#
81+# @desc This makefile defines OS specific macros used by MAKE system for
82+# the Montavista Pro 5.0 Linux distribution with mvlpro.
83+#
84+# @ver 1.64
85+# ============================================================================
86+# Copyright (C) 2002-2009, Texas Instruments Incorporated -
87+# http://www.ti.com/
88+#
89+# Redistribution and use in source and binary forms, with or without
90+# modification, are permitted provided that the following conditions
91+# are met:
92+#
93+# * Redistributions of source code must retain the above copyright
94+# notice, this list of conditions and the following disclaimer.
95+#
96+# * Redistributions in binary form must reproduce the above copyright
97+# notice, this list of conditions and the following disclaimer in the
98+# documentation and/or other materials provided with the distribution.
99+#
100+# * Neither the name of Texas Instruments Incorporated nor the names of
101+# its contributors may be used to endorse or promote products derived
102+# from this software without specific prior written permission.
103+#
104+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
105+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
106+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
107+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
108+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
109+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
110+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
111+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
112+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
113+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
114+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115+# ============================================================================
116+
117+ifndef OMAPL1XX_ARM_MK
118+
119+define OMAPL1XX_ARM_MK
120+endef
121+
122+
123+# ============================================================================
124+# Let the make system know that a specific distribution for the GPP OS
125+# is being used.
126+# ============================================================================
127+USE_DISTRIBUTION := 1
128+
129+
130+# ============================================================================
131+# Set the values of necessary variables to be used for the OS.
132+# ============================================================================
133+
134+# ----------------------------------------------------------------------------
135+# Base directory for the GPP OS
136+# ----------------------------------------------------------------------------
137+BASE_BUILDOS := ${HOME}/da850/DaVinci-PSP-SDK-03.20.00.01/src/kernel/linux-03.20.00.01
138+
139+# ----------------------------------------------------------------------------
140+# Base for toolchain
141+# ----------------------------------------------------------------------------
142+BASE_TOOLCHAIN := ${HOME}/git/arm-2008q3
143+
144+# ----------------------------------------------------------------------------
145+# Base for code generation tools - compiler, linker, archiver etc.
146+# ----------------------------------------------------------------------------
147+BASE_CGTOOLS := $(BASE_TOOLCHAIN)/bin
148+
149+# ----------------------------------------------------------------------------
150+# Base directory for include files provided by GPP OS
151+# ----------------------------------------------------------------------------
152+BASE_OSINC := $(BASE_BUILDOS)/include
153+
154+OSINC_GENERIC := $(BASE_OSINC)
155+OSINC_PLATFORM := $(BASE_TOOLCHAIN)/lib/gcc/arm-none-linux-gnueabi/4.3.2/include
156+OSINC_TARGET := $(BASE_TOOLCHAIN)/arm-none-linux-gnueabi/libc/usr/include
157+
158+ifneq ("$(VARIANT)", "")
159+OSINC_VARIANT := $(BASE_OSINC)
160+endif
161+
162+
163+# ----------------------------------------------------------------------------
164+# Base directory for libraries provided by GPP OS
165+# ----------------------------------------------------------------------------
166+BASE_OSLIB := $(BASE_TOOLCHAIN)/lib
167+
168+OSLIB_GENERIC := $(BASE_OSLIB)
169+OSLIB_PLATFORM := $(BASE_OSLIB)
170+
171+
172+ifneq ("$(VARIANT)", "")
173+OSLIB_VARIANT := $(BASE_OSLIB)
174+endif
175+
176+
177+# ============================================================================
178+# COMPILER
179+# ============================================================================
180+
181+# ----------------------------------------------------------------------------
182+# Name of the compiler
183+# ----------------------------------------------------------------------------
184+COMPILER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
185+LD := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ld
186+
187+CROSS_COMPILE := arm-none-linux-gnueabi-
188+export CROSS_COMPILE
189+
190+# ----------------------------------------------------------------------------
191+# Command line switches used by the compiler
192+#
193+# CC_SW_DEF Command line defines
194+# CC_SW_INC Search path for header files
195+# CC_SW_OBJ Create object file
196+# CC_SW_DEB Include debug information
197+# ----------------------------------------------------------------------------
198+CC_SW_DEF := -D
199+CC_SW_INC := -I
200+CC_SW_OBJ := -o
201+CC_SW_DEB := -g
202+
203+# ----------------------------------------------------------------------------
204+# Standard flags for the compiler
205+# ----------------------------------------------------------------------------
206+STD_USER_FLAGS := -Wall -c
207+
208+# ----------------------------------------------------------------------------
209+# Standard flags for the compiler when building an executable
210+# ----------------------------------------------------------------------------
211+EXE_CC_FLAGS :=
212+
213+# ----------------------------------------------------------------------------
214+# Flags for the compiler when building a driver
215+# ----------------------------------------------------------------------------
216+DRV_CC_FLAGS := -nostdinc
217+
218+# ----------------------------------------------------------------------------
219+# Flags for the compiler when building a library
220+# ----------------------------------------------------------------------------
221+LIB_CC_FLAGS :=
222+
223+# ----------------------------------------------------------------------------
224+# Standard definitions for the compiler
225+# ----------------------------------------------------------------------------
226+STD_CC_DEFNS := -D_REENTRANT
227+
228+# ============================================================================
229+# ARCHIVER2 - This denotes the archiver.
230+# ============================================================================
231+ARCHIVER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ar
232+
233+# ----------------------------------------------------------------------------
234+# Standard flags for the archiver
235+# ----------------------------------------------------------------------------
236+STD_AR_FLAGS := -rs
237+
238+
239+# ============================================================================
240+# LINKER - The compiler is used for linking purpose as well.
241+# ============================================================================
242+LINKER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
243+
244+# ----------------------------------------------------------------------------
245+# Command line switches used by the linker
246+#
247+# LD_SW_LIB Search path for libraries
248+# LD_SW_OUT Output filename
249+# LD_SW_RELOC Generate relocateable output
250+# ----------------------------------------------------------------------------
251+LD_SW_LIB := -L
252+LD_SW_OUT := -o
253+LD_SW_RELOC := -r
254+
255+# ----------------------------------------------------------------------------
256+# Standard flags for the linker
257+# ----------------------------------------------------------------------------
258+STD_LD_FLAGS :=
259+
260+# ----------------------------------------------------------------------------
261+# Flags for the linker when building an executable
262+# ----------------------------------------------------------------------------
263+EXE_LD_FLAGS := -lpthread -lc
264+
265+# ----------------------------------------------------------------------------
266+# Flags for the linker when building a driver
267+# ----------------------------------------------------------------------------
268+DRV_LD_FLAGS :=
269+
270+
271+# ============================================================================
272+# Post processing utilities for Linux 2.6
273+# ============================================================================
274+ifneq ($(CONFIG_MODVERSIONS),)
275+CMD_MODPOST_FLAGS := -m -i
276+else
277+CMD_MODPOST_FLAGS := -i
278+endif
279+
280+CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost \
281+ $(CMD_MODPOST_FLAGS) $(BASE_BUILDOS)/Module.symvers \
282+ $(BASE_BUILDOS)/vmlinux
283+
284+
285+endif # ifndef OMAPL1XX_ARM_MK
286--
2871.6.0.6
288
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch
new file mode 100644
index 00000000..271b3043
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch
@@ -0,0 +1,335 @@
1diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c
2--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c 2009-11-13 12:12:47.000000000 +0000
3+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c 2010-02-09 17:42:37.000000000 +0000
4@@ -22,7 +22,12 @@
5
6
7 /* ----------------------------------- OSAL Headers */
8+#include <linux/version.h>
9+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
10+#include <generated/autoconf.h>
11+#else
12 #include <linux/autoconf.h>
13+#endif
14 #include <asm/page.h>
15 #include <asm/io.h>
16
17diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c
18--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
19+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c 2010-02-09 17:43:06.000000000 +0000
20@@ -22,7 +22,12 @@
21
22
23 /* ----------------------------------- OS Headers */
24+#include <linux/version.h>
25+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
26+#include <generated/autoconf.h>
27+#else
28 #include <linux/autoconf.h>
29+#endif
30 #include <linux/module.h>
31 #include <linux/types.h>
32 #include <linux/kernel.h>
33diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c
34--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c 2009-11-13 12:12:46.000000000 +0000
35+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c 2010-02-09 17:45:06.000000000 +0000
36@@ -21,7 +21,12 @@
37 */
38
39
40+#include <linux/version.h>
41+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
42+#include <generated/autoconf.h>
43+#else
44 #include <linux/autoconf.h>
45+#endif
46 #include <asm/page.h>
47 #include <asm/io.h>
48
49diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c
50--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c 2009-11-13 12:12:46.000000000 +0000
51+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c 2010-02-09 17:44:49.000000000 +0000
52@@ -22,7 +22,12 @@
53
54
55 /* ----------------------------------- OS Headers */
56+#include <linux/version.h>
57+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
58+#include <generated/autoconf.h>
59+#else
60 #include <linux/autoconf.h>
61+#endif
62 #include <linux/module.h>
63 #include <linux/types.h>
64 #include <linux/kernel.h>
65diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c
66--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c 2009-11-13 12:12:46.000000000 +0000
67+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c 2010-02-09 17:44:21.000000000 +0000
68@@ -22,7 +22,12 @@
69
70
71 /* ----------------------------------- OS Headers */
72+#include <linux/version.h>
73+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
74+#include <generated/autoconf.h>
75+#else
76 #include <linux/autoconf.h>
77+#endif
78 #include <linux/module.h>
79 #include <linux/types.h>
80 #include <linux/kernel.h>
81diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c
82--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c 2009-11-13 12:12:46.000000000 +0000
83+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c 2010-02-09 17:41:46.000000000 +0000
84@@ -22,7 +22,12 @@
85
86
87 /* ----------------------------------- OS Headers */
88+#include <linux/version.h>
89+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
90+#include <generated/autoconf.h>
91+#else
92 #include <linux/autoconf.h>
93+#endif
94 #include <linux/module.h>
95 #include <linux/types.h>
96 #include <linux/kernel.h>
97diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c
98--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c 2009-11-13 12:12:46.000000000 +0000
99+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c 2010-02-09 17:42:02.000000000 +0000
100@@ -20,7 +20,12 @@
101 * ============================================================================
102 */
103
104+#include <linux/version.h>
105+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
106+#include <generated/autoconf.h>
107+#else
108 #include <linux/autoconf.h>
109+#endif
110 #include <asm/page.h>
111 #include <asm/io.h>
112
113diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c
114--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c 2009-11-13 12:12:46.000000000 +0000
115+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c 2010-02-09 17:42:21.000000000 +0000
116@@ -22,7 +22,12 @@
117
118
119 /* ----------------------------------- OS Headers */
120+#include <linux/version.h>
121+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
122+#include <generated/autoconf.h>
123+#else
124 #include <linux/autoconf.h>
125+#endif
126 #include <linux/module.h>
127 #include <linux/types.h>
128 #include <linux/kernel.h>
129diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c
130--- dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
131+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c 2010-02-09 17:43:29.000000000 +0000
132@@ -25,7 +25,12 @@
133
134
135 /* ----------------------------------- OS Headers */
136+#include <linux/version.h>
137+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
138+#include <generated/autoconf.h>
139+#else
140 #include <linux/autoconf.h>
141+#endif
142 #include <linux/module.h>
143 #include <linux/types.h>
144 #include <linux/kernel.h>
145diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c
146--- dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
147+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c 2010-02-09 17:43:50.000000000 +0000
148@@ -22,7 +22,12 @@
149
150
151 /* ----------------------------------- OS Headers */
152+#include <linux/version.h>
153+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
154+#include <generated/autoconf.h>
155+#else
156 #include <linux/autoconf.h>
157+#endif
158 #include <linux/module.h>
159 #include <linux/types.h>
160 #include <linux/kernel.h>
161diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c
162--- dsplink_linux_1_64a/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
163+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c 2010-02-09 17:44:06.000000000 +0000
164@@ -22,7 +22,12 @@
165
166
167 /* ----------------------------------- OS Headers */
168+#include <linux/version.h>
169+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
170+#include <generated/autoconf.h>
171+#else
172 #include <linux/autoconf.h>
173+#endif
174 #include <linux/module.h>
175 #include <linux/types.h>
176 #include <linux/kernel.h>
177diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c
178--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c 2009-11-13 12:12:47.000000000 +0000
179+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c 2010-02-09 17:47:25.000000000 +0000
180@@ -22,7 +22,12 @@
181
182
183 /* ----------------------------------- OS Specific Headers */
184+#include <linux/version.h>
185+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
186+#include <generated/autoconf.h>
187+#else
188 #include <linux/autoconf.h>
189+#endif
190 #include <linux/spinlock.h>
191 #include <linux/sched.h>
192 #include <linux/interrupt.h>
193diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/isr.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/isr.c
194--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/isr.c 2009-11-13 12:12:47.000000000 +0000
195+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/isr.c 2010-02-09 17:46:54.000000000 +0000
196@@ -22,7 +22,12 @@
197
198
199 /* ----------------------------------- OS Specific Headers */
200+#include <linux/version.h>
201+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
202+#include <generated/autoconf.h>
203+#else
204 #include <linux/autoconf.h>
205+#endif
206 #include <linux/version.h>
207 #include <linux/spinlock.h>
208 #include <linux/sched.h>
209diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c
210--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c 2009-11-13 12:12:47.000000000 +0000
211+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c 2010-02-09 17:46:39.000000000 +0000
212@@ -22,7 +22,12 @@
213
214
215 /* ----------------------------------- OS Specific Headers */
216+#include <linux/version.h>
217+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
218+#include <generated/autoconf.h>
219+#else
220 #include <linux/autoconf.h>
221+#endif
222 #include <linux/spinlock.h>
223 #include <linux/kernel.h>
224 #include <linux/mm.h>
225diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/mem.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/mem.c
226--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2009-11-13 12:12:47.000000000 +0000
227+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2010-02-09 17:46:25.000000000 +0000
228@@ -22,7 +22,12 @@
229
230
231 /* ----------------------------------- OS Specific Headers */
232+#include <linux/version.h>
233+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
234+#include <generated/autoconf.h>
235+#else
236 #include <linux/autoconf.h>
237+#endif
238 #include <linux/spinlock.h>
239 #include <linux/sched.h>
240 #include <linux/types.h>
241diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c
242--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c 2009-11-13 12:12:47.000000000 +0000
243+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c 2010-02-09 17:47:12.000000000 +0000
244@@ -22,7 +22,12 @@
245
246
247 /* ----------------------------------- OS Specific Headers */
248+#include <linux/version.h>
249+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
250+#include <generated/autoconf.h>
251+#else
252 #include <linux/autoconf.h>
253+#endif
254 #include <linux/spinlock.h>
255 #include <linux/signal.h>
256 #include <linux/kernel.h>
257diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/sync.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/sync.c
258--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/sync.c 2009-11-13 12:12:47.000000000 +0000
259+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/sync.c 2010-02-09 17:47:39.000000000 +0000
260@@ -22,7 +22,12 @@
261
262
263 /* ----------------------------------- OS Specific Headers */
264+#include <linux/version.h>
265+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
266+#include <generated/autoconf.h>
267+#else
268 #include <linux/autoconf.h>
269+#endif
270 #include <linux/spinlock.h>
271 #include <linux/timer.h>
272 #include <linux/sched.h>
273diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/prcs.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/prcs.c
274--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/prcs.c 2009-11-13 12:12:47.000000000 +0000
275+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/prcs.c 2010-02-09 17:45:44.000000000 +0000
276@@ -22,7 +22,12 @@
277
278
279 /* ----------------------------------- OS Specific Headers */
280+#include <linux/version.h>
281+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
282+#include <generated/autoconf.h>
283+#else
284 #include <linux/autoconf.h>
285+#endif
286 #include <linux/spinlock.h>
287 #include <linux/module.h>
288 #include <linux/mm.h>
289diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/print.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/print.c
290--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/print.c 2009-11-13 12:12:47.000000000 +0000
291+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/print.c 2010-02-09 17:45:30.000000000 +0000
292@@ -22,7 +22,12 @@
293
294
295 /* ----------------------------------- OS Specific Headers */
296+#include <linux/version.h>
297+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
298+#include <generated/autoconf.h>
299+#else
300 #include <linux/autoconf.h>
301+#endif
302 #include <linux/spinlock.h>
303 #include <stdarg.h>
304 #include <linux/types.h>
305diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/user.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/user.c
306--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/user.c 2009-11-13 12:12:47.000000000 +0000
307+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/user.c 2010-02-09 17:46:07.000000000 +0000
308@@ -22,7 +22,12 @@
309
310
311 /* ----------------------------------- OS Specific Headers */
312+#include <linux/version.h>
313+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
314+#include <generated/autoconf.h>
315+#else
316 #include <linux/autoconf.h>
317+#endif
318 #include <linux/spinlock.h>
319 #include <linux/timer.h>
320 #include <linux/sched.h>
321diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c dsplink_linux_1_64b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
322--- dsplink_linux_1_64a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2009-11-13 12:12:48.000000000 +0000
323+++ dsplink_linux_1_64b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2010-02-09 17:40:59.000000000 +0000
324@@ -33,7 +33,11 @@
325 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
326 #include <linux/device.h>
327 #endif
328+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
329+#include <generated/autoconf.h>
330+#else
331 #include <linux/autoconf.h>
332+#endif
333 #include <linux/spinlock.h>
334 #include <linux/module.h>
335 #include <linux/init.h>
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh
new file mode 100755
index 00000000..9cfb19d5
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh
@@ -0,0 +1,25 @@
1#
2# Default Memory Map - for OMAP3530 dsplink examples
3#
4# Start Addr Size Description
5# -------------------------------------------
6# 0x80000000 126 MB Linux
7# 0x87E00000 2 MB DSPLINK (MEM) + DDR + DSPLINK (RESET)
8
9# sanity check to verify that we're using the right mem=xxM (126M in this case)
10awk '/MemTotal:/ {
11 mem=$2
12
13 if (mem > 126 * 1024)
14 print "Warning! You need to use mem=126M or less on the kernel cmdline"
15
16 printf "You have %dkB total memory for Linux\n", mem
17}' /proc/meminfo
18
19# insert DSP/BIOS Link driver
20#
21modprobe dsplinkk
22
23# make /dev/dsplink
24#rm -f /dev/dsplink
25#mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh
new file mode 100755
index 00000000..b2f2faac
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh
@@ -0,0 +1,25 @@
1#! /bin/sh
2
3echo "Running Loop Sample App"
4./loopgpp loop.out 1024 2000 0
5
6echo "Running Message Sample App"
7./messagegpp message.out 10000 0
8
9echo "Running Message Multi Sample App"
10./messagemultigpp messagemulti.out 128 1 0
11
12echo "Running MultiProcessor List Sample App"
13./mplistgpp mplist.out 128 128 0
14
15echo "Running MultiProcessorCriticalSection Transfer Sample App"
16./mpcsxfergpp mpcsxfer.out 128 1000 0
17
18echo "Running Ringio Sample App"
19./ringiogpp ringio.out 2048 128 0
20
21echo "Running Scale Sample App"
22./scalegpp scale.out 128 500 0
23
24#echo "Running Read/Write Sample App"
25#./readwritegpp readwrite.out
diff --git a/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh
new file mode 100755
index 00000000..48fa84b0
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh
@@ -0,0 +1,5 @@
1# Unload modules - DSPLINK - OMAP3530
2
3# remove DSP/BIOS Link driver
4rmmod dsplinkk
5#rm -f /dev/dsplink
diff --git a/extras/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb b/extras/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb
new file mode 100644
index 00000000..a124b21a
--- /dev/null
+++ b/extras/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb
@@ -0,0 +1,16 @@
1require ti-dsplink.inc
2
3PE = "1"
4PV = "1_65_00_03"
5PV_dot = "1.65.00.03"
6PV_major = "1_65"
7
8PV_DL_PATH = "DSPLink/${PV_major}/${PV}/${PV_dot}"
9
10SRC_URI += "file://dsplink-BKL-fix.patch \
11 file://0001-remove-check-for-make-version-3.85-works-fine.patch \
12 "
13
14SRC_URI[dsplinktarball.md5sum] = "1bda596b631bd2f517edc70f6be4f2ca"
15SRC_URI[dsplinktarball.sha256sum] = "4b1bda89bd8465b887f5bcdf7b95018bc1d1f8968c0c44f8cbad2a9e1c52bcb7"
16