nuttx/qemu: Fix funciton up_idle multiple definition

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2024-11-11 17:02:38 +08:00 committed by archer
parent a044e1896f
commit 0679d45d5b

View file

@ -18,11 +18,14 @@
#
# ##############################################################################
set(SRCS qemu_boot.c qemu_serial.c qemu_irq.c qemu_timer.c qemu_memorymap.c
qemu_idle.c)
set(SRCS qemu_boot.c qemu_serial.c qemu_irq.c qemu_timer.c qemu_memorymap.c)
if(CONFIG_SMP)
list(APPEND SRCS qemu_cpuboot.c)
endif()
if(CONFIG_ARCH_IDLE_CUSTOM)
list(APPEND SRCS qemu_idle.c)
endif()
target_sources(arch PRIVATE ${SRCS})