From 6ed46e341249142d59251117bc55debd42049336 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 4 Aug 2021 14:51:22 -0700 Subject: [PATCH] drivers: ptp_clock: build as static library Instead of putting object files inside libzephyr.a, simply build a separate static library as most other driver types are doing this already. Signed-off-by: Daniel Leung --- drivers/ptp_clock/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ptp_clock/CMakeLists.txt b/drivers/ptp_clock/CMakeLists.txt index 6ece3042a45..719dc0398a7 100644 --- a/drivers/ptp_clock/CMakeLists.txt +++ b/drivers/ptp_clock/CMakeLists.txt @@ -1,3 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -zephyr_sources_ifdef(CONFIG_PTP_CLOCK ptp_clock.c) +zephyr_library() + +zephyr_library_sources_ifdef(CONFIG_PTP_CLOCK ptp_clock.c)