From 0679d45d5b9aee8cd923141db8e92ac2e367c3f1 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Mon, 11 Nov 2024 17:02:38 +0800 Subject: [PATCH] nuttx/qemu: Fix funciton up_idle multiple definition Signed-off-by: guoshichao --- arch/arm/src/qemu/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/qemu/CMakeLists.txt b/arch/arm/src/qemu/CMakeLists.txt index ba28a73850..9dfa7c4975 100644 --- a/arch/arm/src/qemu/CMakeLists.txt +++ b/arch/arm/src/qemu/CMakeLists.txt @@ -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})