From 77dd3daaaf8e9fde0f81b09cf0ac083b4e215f01 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 4 Aug 2021 14:42:45 -0700 Subject: [PATCH] drivers: edac: 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/edac/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/edac/CMakeLists.txt b/drivers/edac/CMakeLists.txt index a32e8200190..52f6f008e45 100644 --- a/drivers/edac/CMakeLists.txt +++ b/drivers/edac/CMakeLists.txt @@ -1,5 +1,7 @@ # Copyright (c) 2020 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -zephyr_sources_ifdef(CONFIG_EDAC_IBECC edac_ibecc.c) -zephyr_sources_ifdef(CONFIG_EDAC_SHELL shell.c) +zephyr_library() + +zephyr_library_sources_ifdef(CONFIG_EDAC_IBECC edac_ibecc.c) +zephyr_library_sources_ifdef(CONFIG_EDAC_SHELL shell.c)