common/tools/raptor/RaptorRecipe.pm
changeset 728 41d71e272368
parent 723 6b540cc85619
child 738 53abda826a9f
equal deleted inserted replaced
727:51155e4c46ba 728:41d71e272368
    53 my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file';
    53 my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file';
    54 my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file';
    54 my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file';
    55 my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file';
    55 my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file';
    56 my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist';
    56 my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist';
    57 my $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT = 'armcc_controlling_expression_is_constant';
    57 my $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT = 'armcc_controlling_expression_is_constant';
       
    58 my $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT = 'armcc_internal_fault';
    58 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
    59 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
    59 
    60 
    60 sub process
    61 sub process
    61 {
    62 {
    62 	my ($text, $component, $phase, $recipe, $file, $line) = @_;
    63 	my ($text, $component, $phase, $recipe, $file, $line) = @_;
    91 	}
    92 	}
    92 	elsif ($text =~ m,: Warning:  #236-D: controlling expression is constant,)
    93 	elsif ($text =~ m,: Warning:  #236-D: controlling expression is constant,)
    93 	{
    94 	{
    94 		$severity = $RaptorCommon::SEVERITY_MAJOR;
    95 		$severity = $RaptorCommon::SEVERITY_MAJOR;
    95 		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT;
    96 		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT;
       
    97 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
       
    98 	}
       
    99 	elsif ($text =~ m,/armcc.exe , and $text =~ m,Internal fault: ,)
       
   100 	{
       
   101 		$severity = $RaptorCommon::SEVERITY_MAJOR;
       
   102 		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT;
    96 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
   103 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
    97 	}
   104 	}
    98 	# the following captures generic armcc error/warnings, not captured by regexps above
   105 	# the following captures generic armcc error/warnings, not captured by regexps above
    99 	elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,)
   106 	elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,)
   100 	{
   107 	{