common/tools/raptor/RaptorRecipe.pm
changeset 738 53abda826a9f
parent 728 41d71e272368
child 764 d00048f1b036
equal deleted inserted replaced
737:12fc0aa86db9 738:53abda826a9f
    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_INTERNALFAULT = 'armcc_internal_fault';
    59 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
    59 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
       
    60 my $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE = 'elf2e32_symbol_missing_from_elf_file';
       
    61 
    60 
    62 
    61 sub process
    63 sub process
    62 {
    64 {
    63 	my ($text, $component, $phase, $recipe, $file, $line) = @_;
    65 	my ($text, $component, $phase, $recipe, $file, $line) = @_;
    64 	
    66 	
    80 	}
    82 	}
    81 	elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,)
    83 	elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,)
    82 	{
    84 	{
    83 		$severity = $RaptorCommon::SEVERITY_MAJOR;
    85 		$severity = $RaptorCommon::SEVERITY_MAJOR;
    84 		my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE;
    86 		my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE;
       
    87 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
       
    88 	}
       
    89 	elsif ($text =~ m,elf2e32 : Error: E1036: Symbol .* Missing from ELF File,)
       
    90 	{
       
    91 		$severity = $RaptorCommon::SEVERITY_MAJOR;
       
    92 		my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE;
    85 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
    93 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
    86 	}
    94 	}
    87 	elsif ($text =~ m,Error: L6833E: File '.*' does not exist,)
    95 	elsif ($text =~ m,Error: L6833E: File '.*' does not exist,)
    88 	{
    96 	{
    89 		$severity = $RaptorCommon::SEVERITY_MAJOR;
    97 		$severity = $RaptorCommon::SEVERITY_MAJOR;