summaryrefslogtreecommitdiffstats
path: root/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff')
-rw-r--r--recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff b/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff
new file mode 100644
index 00000000..06ffbec4
--- /dev/null
+++ b/recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff
@@ -0,0 +1,36 @@
1Index: dmai/packages/config.bld
2===================================================================
3--- dmai/packages/config.bld (revisione 642)
4+++ dmai/packages/config.bld (copia locale)
5@@ -44,29 +44,9 @@
6 C6X.rootDir = codegen;
7 C6X.platform = xdcplat;
8
9-/* User passes in $(CROSS_COMPILE) where $(CROSS_COMPILE)gcc is their compiler
10- Then the TOOLDIR and LONGNAME are derived based on a regex of CROSS_COMPILE
11-*/
12-var crosscompile = "" + java.lang.System.getenv("CROSS_COMPILE");
13+var tooldir = "" + java.lang.System.getenv("CSTOOL_DIR");
14+var longName = "" + java.lang.System.getenv("MVTOOL_PREFIX") + "gcc";
15
16-var tooldir = "";
17-var longName = "";
18-
19-/* Search CROSS_COMPILE for bin/ If only 1 bin/ is found, set the tooldir to
20- the path prior to bin/ and the prefix to "bin/" + remainder of path,
21- else leave the tooldir as "" and set the LONGNAME to the full CROSS_COMPILE
22- path
23-*/
24-var regex = new RegExp("bin/");
25-var find = crosscompile.split( regex );
26-
27-if (find[0]!=crosscompile && find.length==2) {
28- tooldir = find[0];
29- longName = "bin/" + find[1] + "gcc";
30-} else {
31- longName = crosscompile + "gcc";
32-}
33-
34 /* location of the GCC Arm9 tools */
35 var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
36 GCArmv5T.LONGNAME = longName;