syscon: Compile the generic driver only when selected

Currently the generic driver is always unconditionally compiled. Fix
this by compiling it only when needed.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2022-02-05 21:28:45 +01:00 committed by Anas Nashif
commit 9397dafa95

View file

@ -1,4 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_SYSCON syscon.c)
zephyr_library_sources_ifdef(CONFIG_SYSCON_GENERIC syscon.c)