[Cmake-commits] CMake branch, next, updated. v3.3.1-2806-g86c7715

Brad King brad.king at kitware.com
Wed Sep 9 10:16:13 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  86c7715ae169ac35e8d846a4ff23baf6d82d7bcc (commit)
       via  04de900704c24567521dd29c0bdb46786eea5e71 (commit)
       via  fbe0de92f0cec56d12219125547edced7b3fd413 (commit)
       via  63591b94ab1be542f5fe5635d5f2068ddbe619e2 (commit)
      from  4df395dd4db45f1a40ada8ea84b6f92924b5bf5c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=86c7715ae169ac35e8d846a4ff23baf6d82d7bcc
commit 86c7715ae169ac35e8d846a4ff23baf6d82d7bcc
Merge: 4df395d 04de900
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Wed Sep 9 10:16:12 2015 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Sep 9 10:16:12 2015 -0400

    Merge topic 'ghs-updates' into next
    
    04de9007 GHS: Fix generated file path slashes and quoting for 6.1.6
    fbe0de92 GHS: Tell MULTI to delete .elf.ael file
    63591b94 GHS: Find latest 'int' directory


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=04de900704c24567521dd29c0bdb46786eea5e71
commit 04de900704c24567521dd29c0bdb46786eea5e71
Author:     Geoff Viola <geoffrey.viola at asirobots.com>
AuthorDate: Sat Sep 5 23:15:26 2015 -0600
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Sep 9 10:15:37 2015 -0400

    GHS: Fix generated file path slashes and quoting for 6.1.6

diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index 8216824..cae5c2f 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -452,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() &&

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fbe0de92f0cec56d12219125547edced7b3fd413
commit fbe0de92f0cec56d12219125547edced7b3fd413
Author:     Geoff Viola <geoffrey.viola at asirobots.com>
AuthorDate: Sat Sep 5 23:15:26 2015 -0600
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Sep 9 10:14:54 2015 -0400

    GHS: Tell MULTI to delete .elf.ael file

diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index 846b6e2..8216824 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -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

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=63591b94ab1be542f5fe5635d5f2068ddbe619e2
commit 63591b94ab1be542f5fe5635d5f2068ddbe619e2
Author:     Geoff Viola <geoffrey.viola at asirobots.com>
AuthorDate: Sat Sep 5 23:15:26 2015 -0600
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Sep 9 10:12:35 2015 -0400

    GHS: Find latest 'int' directory

diff --git a/Modules/Platform/GHS-MULTI-Initialize.cmake b/Modules/Platform/GHS-MULTI-Initialize.cmake
index 342ad21..9eb7a8a 100644
--- a/Modules/Platform/GHS-MULTI-Initialize.cmake
+++ b/Modules/Platform/GHS-MULTI-Initialize.cmake
@@ -13,13 +13,35 @@
 #  License text for the above reference.)
 
 #Setup Greenhills MULTI specific compilation information
-find_path(GHS_INT_DIRECTORY INTEGRITY.ld PATHS
-  "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\GreenHillsSoftware6433c345;InstallLocation]" #int1122
-  "C:/ghs/int1122"
-  "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\GreenHillsSoftware289b6625;InstallLocation]" #int1104
-  "C:/ghs/int1104"
-  DOC "Path to integrity directory"
-  )
+
+if (NOT GHS_INT_DIRECTORY)
+  #Assume the C:/ghs/int#### directory that is latest is prefered
+  set(GHS_EXPECTED_ROOT "C:/ghs")
+  if (EXISTS ${GHS_EXPECTED_ROOT})
+    FILE(GLOB GHS_CANDIDATE_INT_DIRS RELATIVE
+      ${GHS_EXPECTED_ROOT} ${GHS_EXPECTED_ROOT}/*)
+    string(REGEX MATCHALL  "int[0-9][0-9][0-9][0-9]" GHS_CANDIDATE_INT_DIRS
+      ${GHS_CANDIDATE_INT_DIRS})
+    if (GHS_CANDIDATE_INT_DIRS)
+      list(SORT GHS_CANDIDATE_INT_DIRS)
+      list(GET GHS_CANDIDATE_INT_DIRS -1 GHS_INT_DIRECTORY)
+      string(CONCAT GHS_INT_DIRECTORY ${GHS_EXPECTED_ROOT} "/"
+        ${GHS_INT_DIRECTORY})
+    endif ()
+  endif ()
+
+  #Try to look for known registry values
+  if (NOT GHS_INT_DIRECTORY)
+    find_path(GHS_INT_DIRECTORY INTEGRITY.ld PATHS
+      "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\GreenHillsSoftware6433c345;InstallLocation]" #int1122
+      "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\GreenHillsSoftware289b6625;InstallLocation]" #int1104
+      )
+  endif ()
+
+  set(GHS_INT_DIRECTORY ${GHS_INT_DIRECTORY} CACHE PATH
+    "Path to integrity directory")
+endif ()
+
 set(GHS_OS_DIR ${GHS_INT_DIRECTORY} CACHE PATH "OS directory")
 set(GHS_PRIMARY_TARGET "arm_integrity.tgt" CACHE STRING "target for compilation")
 set(GHS_BSP_NAME "simarm" CACHE STRING "BSP name")

-----------------------------------------------------------------------

Summary of changes:
 Modules/Platform/GHS-MULTI-Initialize.cmake |   36 +++++++++++++++++++++------
 Source/cmGhsMultiTargetGenerator.cxx        |   23 +++++++++--------
 2 files changed, 41 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list