Skip to content

Commit

Permalink
Fix cmake for LED
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 25, 2024
1 parent abfe709 commit 76ecc1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/risc-v/qemu-rv/rv-virt/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@

set(SRCS qemu_rv_appinit.c)

if(CONFIG_ARCH_LEDS)
list(APPEND SRCS qemu_rv_autoleds.c)
endif()

if(CONFIG_USERLED)
list(APPEND SRCS qemu_rv_userleds.c)
endif()

target_sources(board PRIVATE ${SRCS})

if(CONFIG_ARCH_CHIP_QEMU_RV)
Expand Down

0 comments on commit 76ecc1a

Please sign in to comment.