From 392b3b5aa6096a2b47cc0504cd416a9ee5ff7ade Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 13 Feb 2018 10:35:53 -0800 Subject: [PATCH] xtensa/asm2: Don't needlessly build asm2 sources Non-asm2 devices without a generated SoC interrupt file will see a compile failure due to the missing header. Signed-off-by: Andy Ross --- arch/xtensa/core/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/xtensa/core/CMakeLists.txt b/arch/xtensa/core/CMakeLists.txt index 9b2ae4efdbf..672d897cd81 100644 --- a/arch/xtensa/core/CMakeLists.txt +++ b/arch/xtensa/core/CMakeLists.txt @@ -3,6 +3,9 @@ zephyr_sources( cpu_idle.c fatal.c window_vectors.S + ) + +zephyr_sources_ifdef(CONFIG_XTENSA_ASM2 xtensa-asm2-util.S xtensa-asm2.c )