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