diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-03-14 19:10:15 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-03-14 19:10:15 +0100 |
commit | c1af7e34f0f780e7fdd93a529445fedb3057c5f3 (patch) | |
tree | 5c5d1a77cd2d492cbce4f2bf7823bf02b3764474 /recipes-ti/dsplink | |
parent | 4884692d7f6b9cc76ab3535fc0790a148b1137f6 (diff) | |
download | meta-ti-c1af7e34f0f780e7fdd93a529445fedb3057c5f3.tar.gz |
recipes-ti: initial check in of dsplink stack
* the focus was on to get it to build, not to make the recipes perfect
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-ti/dsplink')
9 files changed, 1308 insertions, 0 deletions
diff --git a/recipes-ti/dsplink/ti-dsplink.inc b/recipes-ti/dsplink/ti-dsplink.inc new file mode 100644 index 00000000..396b3561 --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink.inc | |||
@@ -0,0 +1,208 @@ | |||
1 | DESCRIPTION = "DSPLINK Inter-Processor Communications (IPC) for TI ARM/DSP processors" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/DSPLink/index.html" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPLv2" | ||
5 | |||
6 | LIC_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 | |||
14 | require ../includes/ti-paths.inc | ||
15 | require ../includes/ti-staging.inc | ||
16 | |||
17 | PROVIDES = "ti-dsplink-module" | ||
18 | PROVIDES += "ti-dsplink-examples" | ||
19 | |||
20 | # This package builds a kernel module, use kernel PR as base and append a local version | ||
21 | PR = "${MACHINE_KERNEL_PR}" | ||
22 | PR_append = "i" | ||
23 | |||
24 | S = "${WORKDIR}/dsplink_linux_${PV}" | ||
25 | |||
26 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/${PV_DL_PATH}/dsplink_linux_${PV}.tar.gz;name=dsplinktarball \ | ||
27 | file://ti-dsplink-examples-run.sh \ | ||
28 | file://ti-dsplink-examples-loadmodules.sh \ | ||
29 | file://ti-dsplink-examples-unloadmodules.sh " | ||
30 | |||
31 | DEPENDS = "ti-dspbios ti-xdctools ti-cgt6x" | ||
32 | DEPENDS += "virtual/kernel perl-native" | ||
33 | |||
34 | # SOC_FAMILY configuration | ||
35 | |||
36 | DSPLINKPLATFORM_dm6446 = "DAVINCI" | ||
37 | DSPLINKPLATFORM_dm6467 = "DAVINCIHD" | ||
38 | DSPLINKPLATFORM_omapl137 = "OMAPL1XX" | ||
39 | DSPLINKPLATFORM_omapl138 = "OMAPL138" | ||
40 | DSPLINKPLATFORM_omap3 = "OMAP3530" | ||
41 | DSPLINKPLATFORM ?= "<UNDEFINED_DSPLINKPLATFORM>" | ||
42 | |||
43 | DSPLINKDSPCFG_dm6446 = "DM6446GEMSHMEM" | ||
44 | DSPLINKDSPCFG_dm6467 = "DM6467GEMSHMEM" | ||
45 | DSPLINKDSPCFG_omapl137 = "OMAPL1XXGEMSHMEM" | ||
46 | DSPLINKDSPCFG_omapl138 = "OMAPL138GEMSHMEM" | ||
47 | DSPLINKDSPCFG_omap3 = "OMAP3530SHMEM" | ||
48 | DSPLINKDSPCFG ?= "<UNDEFINED_DSPLINKDSPCFG>" | ||
49 | |||
50 | DSPLINKDSP_dm6446 = "DM6446GEM_0" | ||
51 | DSPLINKDSP_dm6467 = "DM6467GEM_0" | ||
52 | DSPLINKDSP_omapl137 = "OMAPL1XXGEM_0" | ||
53 | DSPLINKDSP_omapl138 = "OMAPL138GEM_0" | ||
54 | DSPLINKDSP_omap3 = "OMAP3530_0" | ||
55 | DSPLINKDSP ?= "<UNDEFINED_DSPLINKDSP>" | ||
56 | |||
57 | DSPLINKGPPOS_dm6446 = "DM6446LSP" | ||
58 | DSPLINKGPPOS_dm6467 = "DM6467LSP" | ||
59 | DSPLINKGPPOS_omapl137 = "ARM" | ||
60 | DSPLINKGPPOS_omapl138 = "ARM" | ||
61 | DSPLINKGPPOS_omap3 = "OMAPLSP" | ||
62 | DSPLINKGPPOS ?= "<DEFINED_DSPLINKGPPOS>" | ||
63 | |||
64 | # Exported Variable needed by build | ||
65 | DSPLINK = "${S}/dsplink" | ||
66 | export DSPLINK | ||
67 | |||
68 | do_configure() { | ||
69 | |||
70 | # Run perl script to create appropriate makefiles (v1.60 and up) | ||
71 | ( | ||
72 | cd ${DSPLINK} | ||
73 | perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 \ | ||
74 | --dspcfg_0=${DSPLINKDSPCFG} --dspos_0=DSPBIOS5XX \ | ||
75 | --gppos=${DSPLINKGPPOS} --comps=ponslrmc | ||
76 | ) | ||
77 | } | ||
78 | |||
79 | do_prepsources () { | ||
80 | |||
81 | # Prepare the tree for rebuiling - clean and generate interfaces | ||
82 | XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .make -PR . | ||
83 | XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc clean -PR . | ||
84 | XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .interfaces -PR . | ||
85 | } | ||
86 | |||
87 | addtask prepsources after do_configure before do_compile | ||
88 | |||
89 | do_compile() { | ||
90 | # TODO :: KERNEL_CC, should use for kernel module build? | ||
91 | # TODO :: Need to understand why OBJDUMP is required for kernel module | ||
92 | # Unset these since LDFLAGS gets picked up and used incorrectly.... need | ||
93 | # investigation | ||
94 | |||
95 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS | ||
96 | |||
97 | # Build the gpp user space library | ||
98 | cd ${DSPLINK}/gpp/src/api && make \ | ||
99 | CROSS_COMPILE="${TARGET_PREFIX}" \ | ||
100 | CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
101 | AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
102 | LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \ | ||
103 | COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
104 | ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
105 | KERNEL_DIR="${STAGING_KERNEL_DIR}" \ | ||
106 | all | ||
107 | |||
108 | # Build the gpp kernel space (debug and release) | ||
109 | cd ${DSPLINK}/gpp/src && make \ | ||
110 | OBJDUMP="${TARGET_PREFIX}objdump" \ | ||
111 | CROSS_COMPILE="${TARGET_PREFIX}" \ | ||
112 | CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
113 | AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
114 | LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \ | ||
115 | COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
116 | ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
117 | KERNEL_DIR="${STAGING_KERNEL_DIR}" \ | ||
118 | BASE_BUILDOS="${STAGING_KERNEL_DIR}" \ | ||
119 | all | ||
120 | |||
121 | # Build the gpp samples | ||
122 | cd ${DSPLINK}/gpp/src/samples && make \ | ||
123 | BASE_TOOLCHAIN="${TOOLCHAIN_PATH}" \ | ||
124 | BASE_CGTOOLS="${BASE_TOOLCHAIN}/bin" \ | ||
125 | OSINC_PLATFORM="${TOOLCHAIN_PATH}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include" \ | ||
126 | OSINC_TARGET="${BASE_TOOLCHAIN}/target/usr/include" \ | ||
127 | CROSS_COMPILE="${TARGET_PREFIX}" \ | ||
128 | CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
129 | LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
130 | AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
131 | COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
132 | LINKER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \ | ||
133 | ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \ | ||
134 | KERNEL_DIR="${STAGING_KERNEL_DIR}" \ | ||
135 | all | ||
136 | |||
137 | # Build the dsp library (debug and release) | ||
138 | cd ${DSPLINK}/dsp/src && make \ | ||
139 | BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \ | ||
140 | BASE_SABIOS="${BIOS_INSTALL_DIR}" \ | ||
141 | all | ||
142 | |||
143 | # Build the dsp samples (debug and release) | ||
144 | cd ${DSPLINK}/dsp/src/samples && make \ | ||
145 | BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \ | ||
146 | BASE_SABIOS="${BIOS_INSTALL_DIR}" \ | ||
147 | all | ||
148 | } | ||
149 | |||
150 | KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" | ||
151 | |||
152 | do_install () { | ||
153 | |||
154 | # Install the kernel module | ||
155 | install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp | ||
156 | install -m 0755 ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ | ||
157 | |||
158 | # Install the example apps (gpp and dsp) | ||
159 | install -d ${D}/${installdir}/ti-dsplink-examples/ | ||
160 | cp ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/*gpp ${D}/${installdir}/ti-dsplink-examples | ||
161 | cp ${DSPLINK}/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/RELEASE/*.out ${D}/${installdir}/ti-dsplink-examples | ||
162 | |||
163 | # Install the example apps module un/load scripts | ||
164 | install ${WORKDIR}/ti-dsplink-examples-loadmodules.sh ${D}/${installdir}/ti-dsplink-examples | ||
165 | install ${WORKDIR}/ti-dsplink-examples-unloadmodules.sh ${D}/${installdir}/ti-dsplink-examples | ||
166 | install ${WORKDIR}/ti-dsplink-examples-run.sh ${D}/${installdir}/ti-dsplink-examples | ||
167 | |||
168 | # Install/Stage the Source Tree | ||
169 | install -d ${D}${LINK_INSTALL_DIR_RECIPE} | ||
170 | cp -pPrf ${S}/* ${D}${LINK_INSTALL_DIR_RECIPE} | ||
171 | chmod -R +w ${D}${LINK_INSTALL_DIR_RECIPE} | ||
172 | |||
173 | # Changes path of include txt file to use LINK_INSTALL_DIR variable for GPP | ||
174 | for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/*/ -name "*.txt"); do | ||
175 | sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g | ||
176 | done | ||
177 | |||
178 | # Changes path of include txt file to use LINK_INSTALL_DIR variable for DSP | ||
179 | for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/*/ -name "*.txt"); do | ||
180 | sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g | ||
181 | done | ||
182 | |||
183 | } | ||
184 | |||
185 | PACKAGES += "ti-dsplink-module" | ||
186 | FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko" | ||
187 | RDEPENDS_ti-dsplink-module += "update-modules" | ||
188 | |||
189 | pkg_postinst_ti-dsplink-module () { | ||
190 | #!/bin/sh | ||
191 | if [ -n "$D" ]; then | ||
192 | exit 1 | ||
193 | fi | ||
194 | |||
195 | depmod -a | ||
196 | update-modules || true | ||
197 | } | ||
198 | |||
199 | pkg_postrm_ti-dsplink-module () { | ||
200 | #!/bin/sh | ||
201 | update-modules || true | ||
202 | } | ||
203 | |||
204 | PACKAGES += "ti-dsplink-examples" | ||
205 | RDEPENDS_ti-dsplink-examples_append = " ti-dsplink-module" | ||
206 | RDEPENDS_ti-dsplink-examples_append_omap3 += " ti-lpm-module ti-lpm-utils" | ||
207 | FILES_ti-dsplink-examples = "${installdir}/ti-dsplink-examples/*" | ||
208 | INSANE_SKIP_ti-dsplink-examples = True | ||
diff --git a/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch b/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch new file mode 100644 index 00000000..eab3ec63 --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink/dsplink-BKL-fix.patch | |||
@@ -0,0 +1,71 @@ | |||
1 | From e0931bf37628727903a567f1c7096ae0011edc3d Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Tue, 4 Jan 2011 13:49:05 +0100 | ||
4 | Subject: [PATCH] Adjust drv_pmgr for post 2.6.36 ioctl changes | ||
5 | |||
6 | Signed-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 | |||
11 | diff --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 | ||
12 | index 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 | -- | ||
70 | 1.6.6.1 | ||
71 | |||
diff --git a/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch new file mode 100644 index 00000000..5a25dbb5 --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_dm6446_build_support.patch | |||
@@ -0,0 +1,337 @@ | |||
1 | From 7b36e94dcb33892e1df7d3327db31bd41fb6167e Mon Sep 17 00:00:00 2001 | ||
2 | From: Roger Monk <r-monk@ti.com> | ||
3 | Date: Fri, 5 Mar 2010 19:22:58 +0000 | ||
4 | Subject: [PATCH] dsplink_1_64: Add support for building with CS tools + against 2.6.30+ | ||
5 | |||
6 | * Tweaked Patches from Niclas | ||
7 | |||
8 | Signed-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 | |||
18 | diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl | ||
19 | index 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 | } | ||
60 | diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS | ||
61 | index 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 += \ | ||
83 | diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile | ||
84 | index 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") | ||
102 | diff --git a/dsplink/gpp/src/Rules.mk b/dsplink/gpp/src/Rules.mk | ||
103 | index 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 | ||
118 | diff --git a/dsplink/make/Linux/davinci_2.6.mk b/dsplink/make/Linux/davinci_2.6.mk | ||
119 | new file mode 100644 | ||
120 | index 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 | -- | ||
336 | 1.6.0.6 | ||
337 | |||
diff --git a/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch new file mode 100644 index 00000000..fa4cb2e6 --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_add_omapl137_build_support.patch | |||
@@ -0,0 +1,288 @@ | |||
1 | From fd5858c3a247bc61a4de3af1a5097cb05042cfa4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Roger Monk <r-monk@ti.com> | ||
3 | Date: Sun, 14 Mar 2010 22:13:42 +0000 | ||
4 | Subject: [PATCH] omap1 | ||
5 | |||
6 | Signed-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 | |||
15 | diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl | ||
16 | index 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', | ||
28 | diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS | ||
29 | index 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 \ | ||
51 | diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile | ||
52 | index 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") | ||
70 | diff --git a/dsplink/make/Linux/omapl1xx_arm.mk b/dsplink/make/Linux/omapl1xx_arm.mk | ||
71 | new file mode 100644 | ||
72 | index 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 | -- | ||
287 | 1.6.0.6 | ||
288 | |||
diff --git a/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch new file mode 100644 index 00000000..271b3043 --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink/dsplink_1_64_kernel_2_6_33_autoconf.patch | |||
@@ -0,0 +1,335 @@ | |||
1 | diff -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 | |||
17 | diff -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> | ||
33 | diff -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 | |||
49 | diff -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> | ||
65 | diff -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> | ||
81 | diff -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> | ||
97 | diff -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 | |||
113 | diff -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> | ||
129 | diff -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> | ||
145 | diff -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> | ||
161 | diff -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> | ||
177 | diff -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> | ||
193 | diff -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> | ||
209 | diff -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> | ||
225 | diff -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> | ||
241 | diff -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> | ||
257 | diff -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> | ||
273 | diff -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> | ||
289 | diff -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> | ||
305 | diff -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> | ||
321 | diff -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/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh b/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-loadmodules.sh new file mode 100755 index 00000000..9cfb19d5 --- /dev/null +++ b/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) | ||
10 | awk '/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 | # | ||
21 | modprobe 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/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh b/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh new file mode 100755 index 00000000..b2f2faac --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-run.sh | |||
@@ -0,0 +1,25 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | echo "Running Loop Sample App" | ||
4 | ./loopgpp loop.out 1024 2000 0 | ||
5 | |||
6 | echo "Running Message Sample App" | ||
7 | ./messagegpp message.out 10000 0 | ||
8 | |||
9 | echo "Running Message Multi Sample App" | ||
10 | ./messagemultigpp messagemulti.out 128 1 0 | ||
11 | |||
12 | echo "Running MultiProcessor List Sample App" | ||
13 | ./mplistgpp mplist.out 128 128 0 | ||
14 | |||
15 | echo "Running MultiProcessorCriticalSection Transfer Sample App" | ||
16 | ./mpcsxfergpp mpcsxfer.out 128 1000 0 | ||
17 | |||
18 | echo "Running Ringio Sample App" | ||
19 | ./ringiogpp ringio.out 2048 128 0 | ||
20 | |||
21 | echo "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/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh b/recipes-ti/dsplink/ti-dsplink/ti-dsplink-examples-unloadmodules.sh new file mode 100755 index 00000000..48fa84b0 --- /dev/null +++ b/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 | ||
4 | rmmod dsplinkk | ||
5 | #rm -f /dev/dsplink | ||
diff --git a/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb b/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb new file mode 100644 index 00000000..c2ca5d9f --- /dev/null +++ b/recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require ti-dsplink.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "1_65_00_03" | ||
5 | PV_dot = "1.65.00.03" | ||
6 | PV_major = "1_65" | ||
7 | |||
8 | PV_DL_PATH = "DSPLink/${PV_major}/${PV}/${PV_dot}" | ||
9 | |||
10 | SRC_URI += "file://dsplink-BKL-fix.patch" | ||
11 | |||
12 | SRC_URI[dsplinktarball.md5sum] = "1bda596b631bd2f517edc70f6be4f2ca" | ||
13 | SRC_URI[dsplinktarball.sha256sum] = "4b1bda89bd8465b887f5bcdf7b95018bc1d1f8968c0c44f8cbad2a9e1c52bcb7" | ||
14 | |||