51 |
51 |
52 my $CATEGORY_RECIPEFAILURE = 'recipe_failure'; |
52 my $CATEGORY_RECIPEFAILURE = 'recipe_failure'; |
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 |
57 |
57 sub process |
58 sub process |
58 { |
59 { |
59 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
60 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
60 |
61 |
76 } |
77 } |
77 elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,) |
78 elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,) |
78 { |
79 { |
79 $severity = $RaptorCommon::SEVERITY_MAJOR; |
80 $severity = $RaptorCommon::SEVERITY_MAJOR; |
80 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE; |
81 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE; |
|
82 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
|
83 } |
|
84 elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
|
85 { |
|
86 $severity = $RaptorCommon::SEVERITY_MAJOR; |
|
87 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
81 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
88 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
82 } |
89 } |
83 else # log everything by default |
90 else # log everything by default |
84 { |
91 { |
85 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
92 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |