Subversion Repositories DevTools

Rev

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

Rev 227 Rev 303
Line 15... Line 15...
15
WCEInit();
15
WCEInit();
16
 
16
 
17
sub WCEInit
17
sub WCEInit
18
{
18
{
19
    my( @args ) = @ScmPlatformArgs;             # Platform arguments
19
    my( @args ) = @ScmPlatformArgs;             # Platform arguments
20
    my( $CEVersion, $CEPlatform, $CETargetCPU, $CEHostCPU );
20
    my( $CEVersion, $CEPlatform, $CETargetCPU, $CEHostCPU, $CEToolchain );
21
 
21
 
22
#.. Parse arguments
22
#.. Parse arguments
23
#
23
#
24
    Debug( "wce(@args)\n" );
24
    Debug( "wce(@args)\n" );
25
 
25
 
Line 33... Line 33...
33
        } elsif (/^--Target=(.*)/) {            # CPU
33
        } elsif (/^--Target=(.*)/) {            # CPU
34
            $CETargetCPU = "$1";
34
            $CETargetCPU = "$1";
35
 
35
 
36
        } elsif (/^--Host=(.*)/) {              # HOST CPU
36
        } elsif (/^--Host=(.*)/) {              # HOST CPU
37
            $CEHostCPU   = "$1";
37
            $CEHostCPU   = "$1";
-
 
38
            
-
 
39
        } elsif (/^--Toolchain=(.*)/) {         # Underling Toolchain
-
 
40
            $CEToolchain   = "$1";
-
 
41
            
38
        }
42
        }
39
    }
43
    }
40
 
44
 
41
    Error ("WCE platform must specify --Target")
45
    Error ("WCE platform must specify --Target")
42
        unless ( $CETargetCPU ne "" );
46
        unless ( $CETargetCPU ne "" );
Line 57... Line 61...
57
        Error ("WCE platform must specify --SDK or WCEDefaultPlatform")
61
        Error ("WCE platform must specify --SDK or WCEDefaultPlatform")
58
            unless ( defined($WCEDefaultPlatform) );
62
            unless ( defined($WCEDefaultPlatform) );
59
 
63
 
60
        push( @ScmPlatformArgs, "--SDK=$WCEDefaultPlatform" );
64
        push( @ScmPlatformArgs, "--SDK=$WCEDefaultPlatform" );
61
    }
65
    }
-
 
66
    
-
 
67
    if ($CEToolchain eq "")
-
 
68
    {
-
 
69
        push( @ScmPlatformArgs, "--Toolchain=EVC4" );
-
 
70
    }
-
 
71
    
62
 
72
 
63
#.. Toolset
73
#.. Toolset
64
#
74
#
65
 
75
 
66
    Toolset( '*', vcwce );                      # Embedded Visual C
76
    Toolset( '*', 'vcwce.pl' );                      # Embedded Visual C
67
}
77
}
68
 
78
 
69
1;
79
1;