Преглед на файлове

Merge branch 'candidate-6.2.8' into candidate-6.4.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 8 години
родител
ревизия
56ac3c07a7
променени са 2 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 8 2
      cmake_modules/commonSetup.cmake
  2. 1 1
      tools/hidl/hidlcomp.cpp

+ 8 - 2
cmake_modules/commonSetup.cmake

@@ -183,9 +183,15 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
           set(GPG_COMMAND_STR "${GPG_COMMAND_STR} --default-key ${SIGN_MODULES_KEYID}")
       endif()
       set(GPG_COMMAND_STR "${GPG_COMMAND_STR} --output sm_keycheck.asc --clearsign sm_keycheck.tmp")
+      execute_process(COMMAND rm -f sm_keycheck.tmp sm_keycheck.asc TIMEOUT 5
+		  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} OUTPUT_QUIET ERROR_QUIET)
+      execute_process(COMMAND touch sm_keycheck.tmp TIMEOUT 5
+          WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} RESULT_VARIABLE t_rc
+          OUTPUT_QUIET ERROR_QUIET)
+      if(NOT "${t_rc}" STREQUAL "0")
+          message(FATAL_ERROR "Failed to create sm_keycheck.tmp for signing")
+      endif()
       execute_process(
-          COMMAND rm -f sm_keycheck.tmp sm_keycheck.asc
-          COMMAND touch sm_keycheck.tmp
           COMMAND bash "-c" "${GPG_COMMAND_STR}"
           TIMOUT 120
           WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}

+ 1 - 1
tools/hidl/hidlcomp.cpp

@@ -5451,7 +5451,7 @@ void writeAccessMap(const char * rawServiceAccessList, const char * methodname,
                 {
                     if (strieq(currAccessName, "NONE") || strieq(currAccessName, "DEFERRED"))
                     {
-                        outf("\n//WARNING: Developer has suppressed automatic feature level authorization, ensure this behavior is correct!");
+                        outf("\n//WARNING: Developer has suppressed automatic feature level authorization, ensure this behavior is correct!\n");
                         continue;
                     }
                     else