@@ -25,6 +25,7 @@ static const regex accessSequencesRegEx = regex(string("^(") +
2525 RteConstants::AS_ELF + " |" +
2626 RteConstants::AS_HEX + " |" +
2727 RteConstants::AS_LIB + " |" +
28+ RteConstants::AS_MAP + " |" +
2829 RteConstants::AS_CMSE + " )" +
2930 " \\ ((.*)\\ )$"
3031);
@@ -2397,6 +2398,7 @@ void ProjMgrWorker::SetBuildOutputDependencies(const OutputTypes& types, const s
23972398 { types.hex .on , types.hex .filename },
23982399 { types.lib .on , types.lib .filename },
23992400 { types.cmse .on , types.cmse .filename },
2401+ { types.map .on , types.map .filename },
24002402 };
24012403 for (auto [on, file] : outputTypes) {
24022404 if (on) {
@@ -3224,6 +3226,9 @@ void ProjMgrWorker::ExpandAccessSequence(const ContextItem& context, const Conte
32243226 } else if (sequence == RteConstants::AS_CMSE) {
32253227 regExStr += RteConstants::AS_CMSE;
32263228 replacement = refContext.outputTypes .cmse .on ? relOutDir + " /" + refContext.outputTypes .cmse .filename : " " ;
3229+ } else if (sequence == RteConstants::AS_MAP) {
3230+ regExStr += RteConstants::AS_MAP;
3231+ replacement = refContext.outputTypes .map .on ? relOutDir + " /" + refContext.outputTypes .map .filename : " " ;
32273232 }
32283233 regex regEx = regex (regExStr + " \\ (.*\\ )\\ $" );
32293234 item = regex_replace (item, regEx, replacement);
@@ -4711,6 +4716,9 @@ bool ProjMgrWorker::ProcessOutputFilenames(ContextItem& context) {
47114716 if (context.outputTypes .bin .on ) {
47124717 context.outputTypes .bin .filename = baseName + " .bin" ;
47134718 }
4719+ if (context.outputTypes .map .on ) {
4720+ context.outputTypes .map .filename = baseName + get<0 >(affixesMap.at (toolchain)) + " .map" ;
4721+ }
47144722 if (context.outputTypes .cmse .on ) {
47154723 context.outputTypes .cmse .filename = baseName + " _CMSE_Lib.o" ;
47164724 }
0 commit comments