summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGhsMultiGenerator.cxx
diff options
context:
space:
mode:
authorFred Baksik <fdk17@ftml.net>2021-11-15 18:15:11 (GMT)
committerFred Baksik <fdk17@ftml.net>2021-11-15 18:15:11 (GMT)
commita55b5c4e188126cf73c3e0a25d39f10ed8fcbece (patch)
treead35bcbd9f5d4655de4ec43c55dbcac620af42a0 /Source/cmGlobalGhsMultiGenerator.cxx
parent0427f225395d3fbc5df273596cb7b9d150a369b7 (diff)
downloadCMake-a55b5c4e188126cf73c3e0a25d39f10ed8fcbece.zip
CMake-a55b5c4e188126cf73c3e0a25d39f10ed8fcbece.tar.gz
CMake-a55b5c4e188126cf73c3e0a25d39f10ed8fcbece.tar.bz2
GHS: Update BSP selection logic
Selection of a BSP only needs to be performed if not set by user. Remove all the logic for printing error and status messages about BSP selection. These messages also breaks CMake tests. NOTE: If BSP selection fails then the compiler checks will result in a build error. The build error will report that the BSP does not exist.
Diffstat (limited to 'Source/cmGlobalGhsMultiGenerator.cxx')
-rw-r--r--Source/cmGlobalGhsMultiGenerator.cxx18
1 files changed, 1 insertions, 17 deletions
diff --git a/Source/cmGlobalGhsMultiGenerator.cxx b/Source/cmGlobalGhsMultiGenerator.cxx
index e319242..a237689 100644
--- a/Source/cmGlobalGhsMultiGenerator.cxx
+++ b/Source/cmGlobalGhsMultiGenerator.cxx
@@ -132,23 +132,6 @@ bool cmGlobalGhsMultiGenerator::SetGeneratorPlatform(std::string const& p,
"Generator selected GHS MULTI primaryTarget.",
cmStateEnums::STRING, true);
}
-
- // Determine GHS_BSP_NAME
- std::string bspName = mf->GetSafeDefinition("GHS_BSP_NAME");
-
- if (cmIsOff(bspName) && platform.find("integrity") != std::string::npos) {
- std::string arch = "arm"; /* FIXME - extract from GHS_PRIMARY_TARGET */
- bspName = "sim" + arch;
- /* write back the calculate name for next time */
- mf->AddCacheDefinition("GHS_BSP_NAME", bspName,
- "Name of GHS target platform.",
- cmStateEnums::STRING, true);
- std::string m = cmStrCat(
- "Green Hills MULTI: GHS_BSP_NAME not specified; defaulting to \"",
- bspName, '"');
- cmSystemTools::Message(m);
- }
-
return true;
}
@@ -308,6 +291,7 @@ void cmGlobalGhsMultiGenerator::WriteTopLevelProject(std::ostream& fout,
fout << "# Top Level Project File\n";
// Specify BSP option if supplied by user
+ // -- not all platforms require this entry in the project file
cmValue bspName =
this->GetCMakeInstance()->GetCacheDefinition("GHS_BSP_NAME");
if (!cmIsOff(bspName)) {