Commit 4cc7753c authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Anas Nashif
Browse files

cmake: modules: extensions: Check for missing blobs in zephyr_blobs_verify



Add a separate warning/error message if a blob is missing.

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 49998d93
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1760,9 +1760,11 @@ function(zephyr_blobs_verify)

      message(VERBOSE "Verifying blob \"${path}\"")

      if(NOT EXISTS "${path}")
        message(${msg_lvl} "Blob for path \"${path}\" missing. Update with: west blobs fetch")
      elseif(NOT "A ${path}" IN_LIST BLOBS_LIST)
        # Each path that has a correct sha256 is prefixed with an A
      if(NOT "A ${path}" IN_LIST BLOBS_LIST)
        message(${msg_lvl} "Blob for path \"${path}\" isn't valid.")
        message(${msg_lvl} "Blob for path \"${path}\" isn't valid. Update with: west blobs fetch")
      endif()
    endforeach()
  else()
@@ -1773,7 +1775,9 @@ function(zephyr_blobs_verify)

      message(VERBOSE "Verifying blob \"${path}\"")

      if(NOT "${status}" STREQUAL "A")
      if(NOT EXISTS "${path}")
        message(${msg_lvl} "Blob for path \"${path}\" missing. Update with: west blobs fetch ${BLOBS_VERIFY_MODULE}")
      elseif(NOT "${status}" STREQUAL "A")
        message(${msg_lvl} "Blob for path \"${path}\" isn't valid. Update with: west blobs fetch ${BLOBS_VERIFY_MODULE}")
      endif()
    endforeach()