Subversion Repositories DevTools

Rev

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

Rev 343 Rev 355
Line 84... Line 84...
84
    my( @defines ) = ();
84
    my( @defines ) = ();
85
    my( @cflags, @cflags_debug, @cflags_prod ) = ();
85
    my( @cflags, @cflags_debug, @cflags_prod ) = ();
86
    my( @libflags, @ldflags, @ldflags_debug, @ldflags_prod ) = ();
86
    my( @libflags, @ldflags, @ldflags_debug, @ldflags_prod ) = ();
87
    my $is_vs2005;
87
    my $is_vs2005;
88
    my $default_ehandling = undef;
88
    my $default_ehandling = undef;
-
 
89
    my @pDefines;
89
 
90
 
90
#.. Standard.rul requirements
91
#.. Standard.rul requirements
91
#
92
#
92
    $::s = "asm";
93
    $::s = "asm";
93
    $::o = "obj";
94
    $::o = "obj";
Line 128... Line 129...
128
            $WCEToolchain   = "$1";
129
            $WCEToolchain   = "$1";
129
 
130
 
130
        } elsif (/^--product=(.*)/) {           # GBE product
131
        } elsif (/^--product=(.*)/) {           # GBE product
131
 
132
 
132
        } elsif (/^--NoDinkumware/) {           # Deprecated switch
133
        } elsif (/^--NoDinkumware/) {           # Deprecated switch
-
 
134
 
-
 
135
        } elsif (/^--Define=(.*)/ ) {
-
 
136
            push @pDefines, '-D' . $1;
-
 
137
 
133
        } else {
138
        } else {
134
            Message( "$toolset_name toolset: unknown platform argument $_ -- ignored\n" );
139
            Message( "$toolset_name toolset: unknown platform argument $_ -- ignored\n" );
135
        }
140
        }
136
    }
141
    }
137
 
142
 
Line 188... Line 193...
188
        'PsionTeklogixCE420'=> 'WCE_PLATFORM_STANDARDSDK',
193
        'PsionTeklogixCE420'=> 'WCE_PLATFORM_STANDARDSDK',
189
        'PsionTeklogixCE500'=> 'WCE_PLATFORM_STANDARDSDK',
194
        'PsionTeklogixCE500'=> 'WCE_PLATFORM_STANDARDSDK',
190
        'PA961'             => 'WCE_PLATFORM_PA961',
195
        'PA961'             => 'WCE_PLATFORM_PA961',
191
        'PA962'             => 'WCE_PLATFORM_PA962',
196
        'PA962'             => 'WCE_PLATFORM_PA962',
192
        'PA962 WINCE 500'   => 'WCE_PLATFORM_PA962',
197
        'PA962 WINCE 500'   => 'WCE_PLATFORM_PA962',
-
 
198
        'M81B_SDK'          => 'WCE_PLATFORM_M81B',     # Just made this one up
193
    );
199
    );
194
 
200
 
195
    $WCEPlatformDefine = $PlatformSDKDefinitions{$WCEPlatform};
201
    $WCEPlatformDefine = $PlatformSDKDefinitions{$WCEPlatform};
196
 
202
 
197
    Error ("TOOLSET/$toolset_name - SDK not defined. Extend table",
203
    Error ("TOOLSET/$toolset_name - SDK not defined. Extend table",
Line 387... Line 393...
387
 
393
 
388
    } else {
394
    } else {
389
        Error ("TOOLSET/$toolset_name - unknown TargetCPU '$WCETargetCPU'");
395
        Error ("TOOLSET/$toolset_name - unknown TargetCPU '$WCETargetCPU'");
390
    }
396
    }
391
 
397
 
-
 
398
    #
-
 
399
    #   Append any platform specific definitions
-
 
400
    #
-
 
401
    push @defines, @pDefines;
-
 
402
 
392
#.. Define eMebbed C/C+ environment
403
#.. Define eMebbed C/C+ environment
393
#
404
#
394
 
405
 
395
    #
406
    #
396
    #   Determine the toolchain root
407
    #   Determine the toolchain root
Line 432... Line 443...
432
SDKROOT		:= \$(PROGRAMFILES)/" . $sdkroot ."
443
SDKROOT		:= \$(PROGRAMFILES)/" . $sdkroot ."
433
export SDKROOT
444
export SDKROOT
434
endif
445
endif
435
 
446
 
436
WCE_VSTOOL           := $vstool
447
WCE_VSTOOL           := $vstool
437
WCE_VERSION          := $WCEVersion
448
WCE_VERSION          := 0x$WCEVersion
438
WCE_SUBSYSTEM        := $WCESubsystem
449
WCE_SUBSYSTEM        := $WCESubsystem
439
WCE_PLATFORM         := $WCEPlatform
450
WCE_PLATFORM         := $WCEPlatform
440
WCE_PLATFORM_SDK_DEF := $WCEPlatformDefine
451
WCE_PLATFORM_SDK_DEF := $WCEPlatformDefine
441
WCE_PLATFORM2        := $WCEPlatformClean
452
WCE_PLATFORM2        := $WCEPlatformClean
442
WCE_TARGETCPU        := $WCETargetCPU
453
WCE_TARGETCPU        := $WCETargetCPU