From 8d93a161567dcc525771f70692587e6a37947b71 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Thu, 29 Feb 2024 19:40:12 +0100 Subject: [PATCH] [nrf fromlist] modules: hal_nordic: Enforce nrf-regtool minimum version Require the presence of the nrf-regtool package as well as requiring a minimum version, failing the build whenever a suitable version is not found in the system. Upstream PR: https://github.com/zephyrproject-rtos/zephyr/pull/69633 Signed-off-by: Carles Cufi (cherry picked from commit 0e13f61d8ed687a2cc428c8a0458f496e639bd70) --- modules/hal_nordic/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hal_nordic/CMakeLists.txt b/modules/hal_nordic/CMakeLists.txt index c4a7134935c..7f46997c697 100644 --- a/modules/hal_nordic/CMakeLists.txt +++ b/modules/hal_nordic/CMakeLists.txt @@ -11,7 +11,7 @@ if(CONFIG_NRF_REGTOOL_GENERATE_UICR) list(APPEND nrf_regtool_components GENERATE:UICR) endif() if(DEFINED nrf_regtool_components) - find_package(nrf-regtool 5.1.0 + find_package(nrf-regtool 5.1.0 REQUIRED COMPONENTS ${nrf_regtool_components} PATHS ${CMAKE_CURRENT_LIST_DIR}/nrf-regtool NO_CMAKE_PATH