1# Copyright (c) 2021 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4if (CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
5  add_subdirectory(nrf_802154)
6endif (CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
7
8add_subdirectory_ifdef(CONFIG_HAS_NRFX nrfx)
9add_subdirectory_ifdef(CONFIG_HAS_NRFS nrfs)
10
11if(CONFIG_NRF_REGTOOL_GENERATE_UICR)
12  list(APPEND nrf_regtool_components GENERATE:UICR)
13endif()
14if(DEFINED nrf_regtool_components)
15  find_package(nrf-regtool 8.0.0
16    COMPONENTS ${nrf_regtool_components}
17    PATHS ${CMAKE_CURRENT_LIST_DIR}/nrf-regtool
18    NO_CMAKE_PATH
19    NO_CMAKE_ENVIRONMENT_PATH
20    NO_SYSTEM_ENVIRONMENT_PATH
21    NO_CMAKE_PACKAGE_REGISTRY
22    NO_CMAKE_SYSTEM_PATH
23    NO_CMAKE_SYSTEM_PACKAGE_REGISTRY
24  )
25endif()
26