From 17048703096c4e73a34cace4568d0ee9d289c5e9 Mon Sep 17 00:00:00 2001 From: "Dobrowolski, PawelX" Date: Fri, 7 Jun 2024 09:42:22 +0200 Subject: [PATCH] cmake/zephyr: change if condition to zephyr metod For syntax clearity changed if conditional to zephyr method Signed-off-by: Dobrowolski, PawelX --- zephyr/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 968401247..e10d9fbe6 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -251,17 +251,13 @@ if (CONFIG_SOC_SERIES_INTEL_ADSP_ACE) lib/dma.c ) - if (CONFIG_SOC_INTEL_ACE15_MTPM) - zephyr_library_sources( + zephyr_library_sources_ifdef(CONFIG_SOC_INTEL_ACE15_MTPM ${SOF_PLATFORM_PATH}/meteorlake/lib/clk.c ) - endif() - if (CONFIG_SOC_INTEL_ACE20_LNL) - zephyr_library_sources( + zephyr_library_sources_ifdef(CONFIG_SOC_INTEL_ACE20_LNL ${SOF_PLATFORM_PATH}/lunarlake/lib/clk.c ) - endif() # SOF core infrastructure - runs on top of Zephyr zephyr_library_sources(