Subversion Repositories DevTools

Rev

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

Rev 4119 Rev 5330
Line 19... Line 19...
19
    $HOST_PROD      = ""                if ( $HOST_PROD eq "" );
19
    $HOST_PROD      = ""                if ( $HOST_PROD eq "" );
20
    $HOST_FAM       = "LINUX_ARM"       if ( $HOST_FAM eq "" );
20
    $HOST_FAM       = "LINUX_ARM"       if ( $HOST_FAM eq "" );
21
 
21
 
22
 
22
 
23
#   Toolset and generic platforms
23
#   Toolset and generic platforms
-
 
24
#   Support multiple versions of the compiler
24
#
25
#
-
 
26
    my @FilteredPlatformArgs = ();
-
 
27
    my $crossAliasVersion;
-
 
28
    my $crossAlias;
-
 
29
    foreach $_ ( @::ScmPlatformArgs ) {
-
 
30
        if ( m~--Version=(.*)~ ) {
-
 
31
            $crossAliasVersion = $1;
-
 
32
        } else {
-
 
33
            push @FilteredPlatformArgs;
-
 
34
        }
-
 
35
    }
-
 
36
    @::ScmPlatformArgs = @FilteredPlatformArgs;
-
 
37
    unless ($crossAliasVersion) {
-
 
38
        Warning ("SK20: No SDK version specified. Using oldest version.");
-
 
39
        $crossAliasVersion = '1.0.0';
-
 
40
    }
-
 
41
 
-
 
42
    #   Convert version number into a compiler name
-
 
43
    #
-
 
44
    my %vlookup = (
-
 
45
                   '4.1.0.0'    => 'arm-unknown-linux-gnueabi-sk20-4.1.0.0',
-
 
46
                   '1.0.0'      => 'arm-iwmmxt-linux-gnueabi',
-
 
47
    );
-
 
48
    $crossAlias = $vlookup{$crossAliasVersion};
-
 
49
    Error ("SK20: Unknown SDK Version: $crossAliasVersion") unless defined $crossAlias;
-
 
50
 
25
    Toolset( '*', 'gcc.pl', '--Target=SK20 gnueabi', '--CrossAlias=arm-iwmmxt-linux-gnueabi' );
51
    Toolset( '*', 'gcc.pl', '--Target=SK20 gnueabi ' . $crossAliasVersion , '--CrossAlias=' . $crossAlias );
26
    PlatformRequire( "unix" );
52
    PlatformRequire( "unix" );
27
}
53
}
28
 
54