Subversion Repositories DevTools

Rev

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

Rev 5783 Rev 5830
Line 464... Line 464...
464
#       These are:
464
#       These are:
465
#               User linker script file
465
#               User linker script file
466
#               Library dependency file
466
#               Library dependency file
467
# 
467
# 
468
    $io->Label( "Program", $name );                     # label
468
    $io->Label( "Program", $name );                     # label
469
    $io->Prt( "$out : \t$dep" );                       # Dependencies
469
    $io->Prt( "$full : \t$dep" );                       # Dependencies
470
    $io->Prt( "\\\n\t\t$script" );
470
    $io->Prt( "\\\n\t\t$script" );
471
    $io->Prt( " \\\n\t\t$loader_file" ) if ($loader_file);
471
    $io->Prt( " \\\n\t\t$loader_file" ) if ($loader_file);
472
    $io->Entry( "", "", "\\\n\t", ".$::o ", @$pObjs );  # Object Files
472
    $io->Entry( "", "", "\\\n\t", ".$::o ", @$pObjs );  # Object Files
473
    $io->Prt( "\n\t\$(LD_IAR)\n" );
473
    $io->Prt( "\n\t\$(LD_IAR)" );
-
 
474
 
-
 
475
    #
-
 
476
    #   Convert elf to srec file
-
 
477
    #   (if $3,--fill 0xFF;$3 --checksum checksum:4\,crc32\,0xFFFFFFFF;$3)
-
 
478
    #
-
 
479
    my  $sRecRange = '';
-
 
480
    if ($crcRange)
-
 
481
    {
-
 
482
        $sRecRange = "--fill \"0xFF;$crcRange\" --checksum \"checksum:4\$(comma)crc32\$(comma)0xFFFFFFFF;$crcRange\"" 
-
 
483
    }
-
 
484
    $io->Prt( "\n\t\$(call GENERATE_SREC, \\" .
-
 
485
              "\n\t\t$out, \\" .
-
 
486
              "\n\t\t$full, \\" .
-
 
487
              "\n\t\t$sRecRange)\n");
474
 
488
 
475
    #
489
    #
476
    #   Insert post processing call if a program loader is needed
490
    #   Insert post processing call if a program loader is needed
477
    #
491
    #
478
    $io->Prt( "\t\$(call LD_IAR_PROCESS, \\" .
492
    $io->Prt( "\t\$(call LD_IAR_PROCESS, \\" .
Line 537... Line 551...
537
    #
551
    #
538
    PackageProgAddFiles ( $name, $full );
552
    PackageProgAddFiles ( $name, $full );
539
    PackageProgAddFiles ( $name, $map , 'Class=map' );
553
    PackageProgAddFiles ( $name, $map , 'Class=map' );
540
 
554
 
541
    #
555
    #
542
    #   Create the .srec file
-
 
543
    #   (if $3,--fill 0xFF;$3 --checksum checksum:4\,crc32\,0xFFFFFFFF;$3)
-
 
544
    #
-
 
545
    my  $sRecRange = '';
-
 
546
    if ($crcRange)
-
 
547
    {
-
 
548
        $sRecRange = "--fill \"0xFF;$crcRange\" --checksum \"checksum:4\$(comma)crc32\$(comma)0xFFFFFFFF;$crcRange\"" 
-
 
549
    }
-
 
550
    $io->Label( "SREC File", $name );
-
 
551
    $io->Prt( "$srec: $out\n");
-
 
552
    $io->Prt( "\t\$(call GENERATE_SREC,$out,$srec,$sRecRange)\n");
-
 
553
    $io->Newline();
-
 
554
 
-
 
555
 
-
 
556
    #
-
 
557
    #   Create the .sxml file
556
    #   Create the .sxml file
558
    #
557
    #
559
    my $sxml = "\$(BINDIR)/${name}.sxml";
558
    my $sxml = "\$(BINDIR)/${name}.sxml";
560
    my ($major, $minor, $patch, $build, $raw_patch) = SplitVersion($ScmBuildVersionFull);
559
    my ($major, $minor, $patch, $build, $raw_patch) = SplitVersion($ScmBuildVersionFull);
561
 
560