zephyr/drivers/sensor/nrf5/CMakeLists.txt
Rubin Gerritsen 4f034740eb sensor: nrf5: temp: Allow alternative temp driver
This allows out-of-tree libraries to implement their own temperature
driver.

We allow selecting TEMP_NRF5 to aviod dependency loops

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-01-28 08:19:34 -05:00

7 lines
160 B
CMake

# SPDX-License-Identifier: Apache-2.0
if(CONFIG_TEMP_NRF5 AND NOT CONFIG_TEMP_NRF5_FORCE_ALT)
zephyr_library()
zephyr_library_sources(temp_nrf5.c)
endif()