Skip to content

Commit 0679d45

Browse files
extinguishanchao
authored andcommitted
nuttx/qemu: Fix funciton up_idle multiple definition
Signed-off-by: guoshichao <[email protected]>
1 parent a044e18 commit 0679d45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch/arm/src/qemu/CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
#
1919
# ##############################################################################
2020

21-
set(SRCS qemu_boot.c qemu_serial.c qemu_irq.c qemu_timer.c qemu_memorymap.c
22-
qemu_idle.c)
21+
set(SRCS qemu_boot.c qemu_serial.c qemu_irq.c qemu_timer.c qemu_memorymap.c)
2322

2423
if(CONFIG_SMP)
2524
list(APPEND SRCS qemu_cpuboot.c)
2625
endif()
2726

27+
if(CONFIG_ARCH_IDLE_CUSTOM)
28+
list(APPEND SRCS qemu_idle.c)
29+
endif()
30+
2831
target_sources(arch PRIVATE ${SRCS})

0 commit comments

Comments
 (0)