drivers: wifi: Fix blobs handling

The blobs are now part of nrf_wifi module, and remove the manual check
and add verifying the blobs and their integrity using helper function.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
Chaitanya Tata 2024-11-09 17:06:59 +05:30 committed by Benjamin Cabé
commit b8cab9e144

View file

@ -96,6 +96,7 @@ if (CONFIG_NRF_WIFI_BUILD_ONLY_MODE)
------------------------------------------------------------------------
")
elseif(CONFIG_NRF_WIFI_PATCHES_BUILTIN)
zephyr_blobs_verify(MODULE nrf_wifi REQUIRED)
# RPU FW patch binaries based on the selected configuration
if(CONFIG_NRF70_SYSTEM_MODE)
set(NRF70_PATCH ${FW_BINS_BASE}/default/nrf70.bin)
@ -112,15 +113,6 @@ elseif(CONFIG_NRF_WIFI_PATCHES_BUILTIN)
message(FATAL_ERROR "Unsupported nRF70 patch configuration")
endif()
if(NOT EXISTS ${NRF70_PATCH})
message(FATAL_ERROR "
------------------------------------------------------------------------
Missing blobs for nRF70 device driver, please install by running:
$ west update
$ west blobs fetch hal_nordic
------------------------------------------------------------------------")
endif()
set(gen_inc_dir ${ZEPHYR_BINARY_DIR}/misc/generated)
zephyr_include_directories(${gen_inc_dir})
set(gen_dir ${gen_inc_dir}/nrf70_fw_patch)