Skip to content

Commit

Permalink
nuttx/qemu: Fix funciton up_idle multiple definition
Browse files Browse the repository at this point in the history
Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
extinguish authored and anchao committed Nov 11, 2024
1 parent a044e18 commit 0679d45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/arm/src/qemu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 0679d45

Please sign in to comment.