forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
21 lines (17 loc) · 950 Bytes
/
CMakeLists.txt
File metadata and controls
21 lines (17 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)
zephyr_library()
zephyr_library_sources(clock_management_common.c)
zephyr_library_sources_ifdef(CONFIG_CLOCK_MANAGEMENT_FIXED_SOURCE fixed_clock_source.c)
zephyr_library_sources_ifdef(CONFIG_CLOCK_MANAGEMENT_SOURCE clock_source.c)
zephyr_library_sources_ifdef(CONFIG_CLOCK_MANAGEMENT_FIXED_FACTOR fixed_factor_clock.c)
zephyr_library_sources_ifdef(CONFIG_CLOCK_MANAGEMENT_GATE clock_gate.c)
zephyr_library_sources_ifdef(CONFIG_CLOCK_MANAGEMENT_MUX clock_mux.c)
# Header for common clock drivers
add_clock_management_header(clock_management_drivers.h)
add_subdirectory(common)
add_subdirectory(adi_max32)
add_subdirectory(nxp_syscon)
# Include headers for all clock management drivers, registered with add_clock_management_header
zephyr_library_compile_options("-include$<JOIN:$<TARGET_PROPERTY:clock_management_header_target,INTERFACE_SOURCES>,;-include>")