|
|
@@ -151,10 +151,6 @@ void cmGhsMultiTargetGenerator::Generate()
|
|
|
this->WriteTargetLinkLibraries();
|
|
|
}
|
|
|
this->WriteCustomCommands();
|
|
|
- if (this->DynamicDownload)
|
|
|
- {
|
|
|
- *this->GetFolderBuildStreams() << " " << this->DDOption << std::endl;
|
|
|
- }
|
|
|
|
|
|
this->WriteSources(objectSources);
|
|
|
}
|
|
|
@@ -230,9 +226,11 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config,
|
|
|
}
|
|
|
if (this->IsTargetGroup())
|
|
|
{
|
|
|
- *this->GetFolderBuildStreams() << " -non_shared" << std::endl;
|
|
|
- *this->GetFolderBuildStreams() << " -o \"" << outputDir
|
|
|
- << outputFilename << ".elf\""
|
|
|
+ *this->GetFolderBuildStreams()
|
|
|
+ << " {optgroup=GhsCommonOptions} -o \"" << outputDir
|
|
|
+ << outputFilename << ".elf\"" << std::endl;
|
|
|
+ *this->GetFolderBuildStreams() << " :extraOutputFile=\"" << outputDir
|
|
|
+ << outputFilename << ".elf.ael\""
|
|
|
<< std::endl;
|
|
|
}
|
|
|
else
|
|
|
@@ -454,14 +452,17 @@ void cmGhsMultiTargetGenerator::WriteSources(
|
|
|
this->Makefile->GetHomeOutputDirectory(), sgPath,
|
|
|
GhsMultiGpj::SUBPROJECT, this->RelBuildFilePath);
|
|
|
|
|
|
- if ((*si)->GetExtension() == ".int")
|
|
|
+ std::string fullSourcePath((*si)->GetFullPath());
|
|
|
+ if ((*si)->GetExtension() == "int" || (*si)->GetExtension() == "bsp")
|
|
|
{
|
|
|
- *this->FolderBuildStreams[sgPath] << "\"" << (*si)->GetFullPath() << "\""
|
|
|
- << std::endl;
|
|
|
+ *this->FolderBuildStreams[sgPath] << fullSourcePath << std::endl;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- *this->FolderBuildStreams[sgPath] << (*si)->GetFullPath() << std::endl;
|
|
|
+ //WORKAROUND: GHS MULTI needs the path to use backslashes without quotes
|
|
|
+ // to open files in search as of version 6.1.6
|
|
|
+ cmsys::SystemTools::ReplaceString(fullSourcePath, "/", "\\");
|
|
|
+ *this->FolderBuildStreams[sgPath] << fullSourcePath << std::endl;
|
|
|
}
|
|
|
|
|
|
if ("ld" != (*si)->GetExtension() && "int" != (*si)->GetExtension() &&
|