Skip to content

Commit 913c662

Browse files
dcpleungcarlescufi
authored andcommitted
tests: kernel/common: IRQ offload test if CONFIG_IRQ_OFFLOAD=y
This changes to compile the IRQ offload test only if CONFIG_IRQ_OFFLOAD=y. For architectures that do not support IRQ offload (or that developers with to disable IRQ offload during bring-up), compiling the code would result in linking errors. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent 02664db commit 913c662

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/kernel/common/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ target_sources(app PRIVATE
2424
src/multilib.c
2525
src/errno.c
2626
src/boot_delay.c
27-
src/irq_offload.c
2827
src/pow2.c
2928
)
29+
30+
target_sources_ifdef(
31+
CONFIG_IRQ_OFFLOAD
32+
app PRIVATE
33+
src/irq_offload.c
34+
)

0 commit comments

Comments
 (0)