diff options
Diffstat (limited to 'extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff')
-rw-r--r-- | extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff b/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff new file mode 100644 index 00000000..2f328c0e --- /dev/null +++ b/extras/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff | |||
@@ -0,0 +1,48 @@ | |||
1 | From 86e89bb160cfe67c173f1260b93066b12dd73580 Mon Sep 17 00:00:00 2001 | ||
2 | From: Enrico Butera <ebutera@users.berlios.de> | ||
3 | Date: Thu, 22 Dec 2011 11:03:58 +0100 | ||
4 | Subject: [PATCH 2/2] fix toolchain names in config.bld | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | .../dmai/packages/config.bld | 24 +------------------ | ||
9 | 1 files changed, 2 insertions(+), 22 deletions(-) | ||
10 | |||
11 | diff --git a/davinci_multimedia_application_interface/dmai/packages/config.bld b/davinci_multimedia_application_interface/dmai/packages/config.bld | ||
12 | index 8c2e96e..566f907 100644 | ||
13 | --- a/davinci_multimedia_application_interface/dmai/packages/config.bld | ||
14 | +++ b/davinci_multimedia_application_interface/dmai/packages/config.bld | ||
15 | @@ -44,28 +44,8 @@ var C6X = xdc.useModule('ti.targets.C64P'); | ||
16 | C6X.rootDir = codegen; | ||
17 | C6X.platform = xdcplat; | ||
18 | |||
19 | -/* User passes in $(CROSS_COMPILE) where $(CROSS_COMPILE)gcc is their compiler | ||
20 | - Then the TOOLDIR and LONGNAME are derived based on a regex of CROSS_COMPILE | ||
21 | -*/ | ||
22 | -var crosscompile = "" + java.lang.System.getenv("CROSS_COMPILE"); | ||
23 | - | ||
24 | -var tooldir = ""; | ||
25 | -var longName = ""; | ||
26 | - | ||
27 | -/* Search CROSS_COMPILE for bin/ If only 1 bin/ is found, set the tooldir to | ||
28 | - the path prior to bin/ and the prefix to "bin/" + remainder of path, | ||
29 | - else leave the tooldir as "" and set the LONGNAME to the full CROSS_COMPILE | ||
30 | - path | ||
31 | -*/ | ||
32 | -var regex = new RegExp("bin/"); | ||
33 | -var find = crosscompile.split( regex ); | ||
34 | - | ||
35 | -if (find[0]!=crosscompile && find.length==2) { | ||
36 | - tooldir = find[0]; | ||
37 | - longName = "bin/" + find[1] + "gcc"; | ||
38 | -} else { | ||
39 | - longName = crosscompile + "gcc"; | ||
40 | -} | ||
41 | +var tooldir = "" + java.lang.System.getenv("CSTOOL_DIR"); | ||
42 | +var longName = "" + java.lang.System.getenv("MVTOOL_PREFIX") + "gcc"; | ||
43 | |||
44 | /* location of the GCC Arm9 tools */ | ||
45 | var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T'); | ||
46 | -- | ||
47 | 1.7.2.5 | ||
48 | |||