Subversion Repositories DevTools

Rev

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

Rev 335 Rev 4488
Line 147... Line 147...
147
    {
147
    {
148
        my %need = ( "fontconv.exe"     => "TOOL_FONTCONV",
148
        my %need = ( "fontconv.exe"     => "TOOL_FONTCONV",
149
                     "modcrc.exe"       => "TOOL_MODCRC",
149
                     "modcrc.exe"       => "TOOL_MODCRC",
150
                     "appcrc.exe"       => "TOOL_APPCRC",
150
                     "appcrc.exe"       => "TOOL_APPCRC",
151
                     "mcrpld.pl"        => "TOOL_MCRPLD",
151
                     "mcrpld.pl"        => "TOOL_MCRPLD",
-
 
152
                     "mcrflashend.pl"   => "TOOL_MCRFLASHEND",
152
                   );
153
                   );
153
        my %found = ();
154
        my %found = ();
154
 
155
 
155
        #
156
        #
156
        #   Locate the required files
157
        #   Locate the required files
Line 373... Line 374...
373
    my %loc_list;
374
    my %loc_list;
374
    my ($u_rel_file, $rel_file);
375
    my ($u_rel_file, $rel_file);
375
    my $no_thx;
376
    my $no_thx;
376
    my $no_payload;
377
    my $no_payload;
377
    my $mot_only;
378
    my $mot_only;
-
 
379
    my $flash_end;
378
    my @builds;
380
    my @builds;
379
 
381
 
380
#.. Parse arguments
382
#.. Parse arguments
381
#
383
#
382
    foreach $_ ( @$pArgs ) {
384
    foreach $_ ( @$pArgs ) {
Line 394... Line 396...
394
 
396
 
395
        } elsif (/^--MotOnly/ ) {
397
        } elsif (/^--MotOnly/ ) {
396
            $mot_only = 1;
398
            $mot_only = 1;
397
            $no_thx = 1;
399
            $no_thx = 1;
398
            $no_payload = 1;
400
            $no_payload = 1;
-
 
401
            
-
 
402
        } elsif (/^--FlashEnd=(.*)/ ) {
-
 
403
            $flash_end = $1;
399
 
404
            
400
        } else {
405
        } else {
401
            Message( "m16c LD: unknown option $_ -- ignored\n" );
406
            Message( "m16c LD: unknown option $_ -- ignored\n" );
402
        }
407
        }
403
    }
408
    }
404
 
409
 
Line 423... Line 428...
423
    #
428
    #
424
    #   Create a printer tool instance
429
    #   Create a printer tool instance
425
    #
430
    #
426
    my $io = ToolsetPrinter::New();
431
    my $io = ToolsetPrinter::New();
427
 
432
 
-
 
433
    #
-
 
434
    #   Create the flash size information for this linker Target
-
 
435
    #
-
 
436
    $io->Label( "Flash Boundary Checking", $name );
-
 
437
    if ( $flash_end )
-
 
438
    {
-
 
439
        $io->Prt( "${name}_FlashEnd = $flash_end\n" );
-
 
440
    }
-
 
441
    else
-
 
442
    {
-
 
443
        $io->Prt( "${name}_FlashEnd = 0\n" );
-
 
444
    }
-
 
445
    $io->Newline();
-
 
446
 
428
    unless ( $no_payload )
447
    unless ( $no_payload )
429
    {
448
    {
430
        ####################################################################
449
        ####################################################################
431
        #
450
        #
432
        #   Build the .payload file from the .bin file
451
        #   Build the .payload file from the .bin file