Subversion Repositories DevTools

Rev

Rev 5619 | Rev 5716 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5619 Rev 5708
Line 38... Line 38...
38
#          PACKAGE_ARCH     => Packageing architecture
38
#          PACKAGE_ARCH     => Packageing architecture
39
#          VERSION          => Version reported by GCC
39
#          VERSION          => Version reported by GCC
40
#          MACHINE          => Machine reported by GCC
40
#          MACHINE          => Machine reported by GCC
41
#          COMPILER_OPTIONS => Toolset specific compiler initial options
41
#          COMPILER_OPTIONS => Toolset specific compiler initial options
42
#                              This is a comma seperated list
42
#                              This is a comma seperated list
43
 
-
 
44
my %ToolsetConfig = (
43
my %ToolsetConfig = (
45
 
44
 
46
    'i386-unknown-linux-gnu'    => {
45
    'i386-unknown-linux-gnu'    => {
47
        ROOT => '/opt/crosstool/gcc-4.1.1-glibc-2.5/i586-unknown-linux-gnu',
46
        ROOT        => '/opt/crosstool/gcc-4.1.1-glibc-2.5/i586-unknown-linux-gnu',
48
        BASE => 'bin/i586-unknown-linux-gnu-',
47
        BASE        => 'bin/i586-unknown-linux-gnu-',
49
       VERSION      => '4.1.1',
48
       VERSION      => '4.1.1',
50
       MACHINE      => 'i586-unknown-linux-gnu'
49
       MACHINE      => 'i586-unknown-linux-gnu'
51
    },
50
    },
52
 
51
 
53
    'arm-9tdmi-linux-gnu'       => {
52
    'arm-9tdmi-linux-gnu'       => {
54
        ROOT => '/opt/crosstool/gcc-4.1.1-glibc-2.5/arm-9tdmi-linux-gnu',
53
        ROOT        => '/opt/crosstool/gcc-4.1.1-glibc-2.5/arm-9tdmi-linux-gnu',
55
        BASE => 'bin/arm-9tdmi-linux-gnu-',
54
        BASE        => 'bin/arm-9tdmi-linux-gnu-',
56
        VERSION      => '4.1.1',
55
        VERSION     => '4.1.1',
57
        MACHINE      => 'arm-9tdmi-linux-gnu'
56
        MACHINE     => 'arm-9tdmi-linux-gnu'
58
        },
57
        },
59
 
58
 
60
    'powerpc-603e-linux-gnu'    => {
59
    'powerpc-603e-linux-gnu'    => {
61
       ROOT => '/opt/crosstool/gcc-4.1.1-glibc-2.5/powerpc-603e-linux-gnu',
60
       ROOT         => '/opt/crosstool/gcc-4.1.1-glibc-2.5/powerpc-603e-linux-gnu',
62
       BASE => 'bin/powerpc-603e-linux-gnu-',
61
       BASE         => 'bin/powerpc-603e-linux-gnu-',
63
       VERSION      => '4.1.1',
62
       VERSION      => '4.1.1',
64
       MACHINE      => 'powerpc-603e-linux-gnu'
63
       MACHINE      => 'powerpc-603e-linux-gnu'
65
    },
64
    },
66
 
65
 
67
    'arm-926ejs-linux-gnueabi'  => {
66
    'arm-926ejs-linux-gnueabi'  => {
68
       ROOT => '/opt/crosstool/gcc-4.4.3-glibc-2.9/arm-926ejs-linux-gnueabi',
67
       ROOT         => '/opt/crosstool/gcc-4.4.3-glibc-2.9/arm-926ejs-linux-gnueabi',
69
       BASE => 'bin/arm-926ejs-linux-gnueabi-',
68
       BASE         => 'bin/arm-926ejs-linux-gnueabi-',
70
       CC_OPTS => '-Wno-psabi',
69
       CC_OPTS      => '-Wno-psabi',
71
       VERSION      => '4.4.3',
70
       VERSION      => '4.4.3',
72
       MACHINE      => 'arm-926ejs-linux-gnueabi'
71
       MACHINE      => 'arm-926ejs-linux-gnueabi'
73
    },
72
    },
74
 
73
 
-
 
74
    'arm-926ejs-linux-gnueabi-v2'  => {
-
 
75
       ROOT         => '/opt/crosstool/gcc-5.2.0-glibc-2.17/arm-926ejs-linux-gnueabi',
-
 
76
       BASE         => 'bin/arm-926ejs-linux-gnueabi-',
-
 
77
       CC_OPTS      => '-Wno-psabi',
-
 
78
       VERSION      => '5.2.0',
-
 
79
       MACHINE      => 'arm-926ejs-linux-gnueabi'
-
 
80
    },
-
 
81
 
-
 
82
    'powerpc-603e-linux-gnu-v2'  => {
-
 
83
       ROOT         => '/opt/crosstool/gcc-5.2.0-glibc-2.17/powerpc-603e-linux-gnu',
-
 
84
       BASE         => 'bin/powerpc-603e-linux-gnu-',
-
 
85
       VERSION      => '5.2.0',
-
 
86
       MACHINE      => 'powerpc-603e-linux-gnu'
-
 
87
    },
-
 
88
 
75
    'i686-linux-gnu'    => {
89
    'i686-linux-gnu'    => {
76
       ROOT         => '/usr',
90
       ROOT         => '/usr',
77
       BASE         => 'bin/',
91
       BASE         => 'bin/',
78
       PACKAGE_ARCH => 'i386',
92
       PACKAGE_ARCH => 'i386',
79
       VERSION      => '4.6',
93
       VERSION      => '4.6',
80
       MACHINE      => 'i686-linux-gnu'
94
       MACHINE      => 'i686-linux-gnu'
81
    },
95
    },
82
 
96
 
83
    'arm-iwmmxt-linux-gnueabi'  => {
97
    'arm-iwmmxt-linux-gnueabi'  => {
84
       ROOT => '/opt/marvel',
98
       ROOT         => '/opt/marvel',
85
       BASE => 'bin/arm-iwmmxt-linux-gnueabi-',
99
       BASE         => 'bin/arm-iwmmxt-linux-gnueabi-',
86
       VERSION      => '4.2.4',
100
       VERSION      => '4.2.4',
87
       MACHINE      => 'arm-iwmmxt-linux-gnueabi'
101
       MACHINE      => 'arm-iwmmxt-linux-gnueabi'
88
    },
102
    },
89
 
103
 
90
    'arm-unknown-linux-gnueabi-sk20-4.1.1.0'  => {
104
    'arm-unknown-linux-gnueabi-sk20-4.1.1.0'  => {
91
       ROOT => '/opt/arm-unknown-linux-gnueabi-sk20-4.1.1.0',
105
       ROOT         => '/opt/arm-unknown-linux-gnueabi-sk20-4.1.1.0',
92
       BASE => 'bin/arm-unknown-linux-gnueabi-',
106
       BASE         => 'bin/arm-unknown-linux-gnueabi-',
93
       VERSION      => '4.8.2',
107
       VERSION      => '4.8.2',
94
       MACHINE      => 'arm-unknown-linux-gnueabi'
108
       MACHINE      => 'arm-unknown-linux-gnueabi'
95
    },
109
    },
96
 
110
 
97
    'x86_64-linux-gnu'    => {
111
    'x86_64-linux-gnu'    => {
Line 101... Line 115...
101
       VERSION      => '4.8',
115
       VERSION      => '4.8',
102
       MACHINE      => 'x86_64-linux-gnu',
116
       MACHINE      => 'x86_64-linux-gnu',
103
       COMPILER_OPTIONS =>  'pic'               # Always create PIC
117
       COMPILER_OPTIONS =>  'pic'               # Always create PIC
104
    },
118
    },
105
 
119
 
106
 
-
 
107
 
-
 
108
    #
120
    #
109
    #   Old (not to be used) version of the embedded toolchain
121
    #   Old (not to be used) version of the embedded toolchain
110
    #   This was deprecated in favor of gcc-4.1.1-glibc-2.5
122
    #   This was deprecated in favor of gcc-4.1.1-glibc-2.5
111
    #   It is not possible to reproduce old packages using the old compiler
123
    #   It is not possible to reproduce old packages using the old compiler
112
    #   This is a known issue
124
    #   This is a known issue
113
    #
125
    #
114
    'i386-unknown-linux-gnu.glibc-2.3.2' => {
126
    'i386-unknown-linux-gnu.glibc-2.3.2' => {
115
       ROOT => '/opt/crosstool/gcc-4.1.0-glibc-2.3.2/i386-unknown-linux-gnu',
127
       ROOT         => '/opt/crosstool/gcc-4.1.0-glibc-2.3.2/i386-unknown-linux-gnu',
116
       BASE => 'bin/i386-unknown-linux-gnu-'
128
       BASE         => 'bin/i386-unknown-linux-gnu-'
117
    },
129
    },
118
 
130
 
119
    'arm-9tdmi-linux-gnu.glibc-2.3.2' => {
131
    'arm-9tdmi-linux-gnu.glibc-2.3.2' => {
120
       ROOT => '/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu',
132
       ROOT         => '/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu',
121
       BASE => 'bin/arm-9tdmi-linux-gnu-'
133
       BASE         => 'bin/arm-9tdmi-linux-gnu-'
122
    },
134
    },
123
 
135
 
124
    #
136
    #
125
    #   Not too sure where this is used
137
    #   Not too sure where this is used
126
    #
138
    #
127
    'armv4l-unknown-linux-gcc' => {
139
    'armv4l-unknown-linux-gcc' => {
128
       ROOT => '/opt/host/armv4l',
140
       ROOT         => '/opt/host/armv4l',
129
       BASE => 'bin/armv4l-unknown-linux-'
141
       BASE         => 'bin/armv4l-unknown-linux-'
130
    },
142
    },
131
 
143
 
132
    #
144
    #
133
    #   The compiler for the current local machine
145
    #   The compiler for the current local machine
134
    #
146
    #
135
    'i386-unknown-linux-gcc' => {
147
    'i386-unknown-linux-gcc' => {
136
       ROOT => '/usr',
148
       ROOT         => '/usr',
137
       BASE => 'bin/',
149
       BASE         => 'bin/',
138
       UNCONTROLLED => 1,
150
       UNCONTROLLED => 1,
139
       PACKAGE_ARCH => 'i386',
151
       PACKAGE_ARCH => 'i386',
140
    },
152
    },
141
);
153
);
142
 
154
 
Line 300... Line 312...
300
        {
312
        {
301
            $GCCToolchain = $ToolsetConfig{ $arg_alias };
313
            $GCCToolchain = $ToolsetConfig{ $arg_alias };
302
            my $testCompilerPath = $GCCToolchain->{ROOT} . '/' . $GCCToolchain->{BASE} . 'gcc';
314
            my $testCompilerPath = $GCCToolchain->{ROOT} . '/' . $GCCToolchain->{BASE} . 'gcc';
303
            $tools_found = (-d $GCCToolchain->{ROOT}) && ( -f $testCompilerPath);
315
            $tools_found = (-d $GCCToolchain->{ROOT}) && ( -f $testCompilerPath);
304
            Warning ("gcc toolset: CrossPlatform toolchain not found for: $arg_alias",
316
            Warning ("gcc toolset: CrossPlatform toolchain not found for: $arg_alias",
305
                     "Path    : $GCCToolchain->{ROOT}",
317
                     "Path    : $GCCToolchain->{ROOT}" ,
306
                     "Compiler: $testCompilerPath"
318
                     "Compiler: $testCompilerPath " 
307
                      ) unless $tools_found;
319
                      ) unless $tools_found;
308
        }
320
        }
309
        else
321
        else
310
        {
322
        {
311
            Error("gcc toolset: CrossPlatform Alias not configured: $arg_alias");
323
            Error("gcc toolset: CrossPlatform Alias not configured: $arg_alias");