From 6c9bbd6fef6e77df28d65626b5108c812098a270 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 12 Jul 2021 03:30:32 +0000 Subject: [PATCH] zephyr/CMakeLists.txt: explain why we need if(CONFIG_SOF) Not obvious plus many SOF developers are new to west. Signed-off-by: Marc Herbert --- zephyr/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 33cf7d75f..40aaf5ed7 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -1,5 +1,7 @@ # This is still WIP - Not fully validated on any platform. +# When west is installed, Zephyr's CMake invokes west to list and try to +# compile every Zephyr module that can be found. if(CONFIG_SOF) if(CONFIG_LIBRARY) @@ -580,5 +582,5 @@ add_definitions(-DSOF_SRC_HASH=0x${SOF_SRC_HASH} -DSOF_GIT_TAG="${SOF_GIT_TAG}") # Create Trace realtive file paths sof_append_relative_path_definitions(modules_sof) -endif() +endif() # CONFIG_SOF