Skip to content

Commit

Permalink
arch/qemu-armv7a: kernel mode cmake support
Browse files Browse the repository at this point in the history
This allows to build kernel mode NuttX with cmake.

Signed-off-by: Yanfeng Liu <[email protected]>
  • Loading branch information
Yanfeng Liu authored and xiaoxiang781216 committed Jan 2, 2025
1 parent 75aa80d commit 6fb12b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_subdirectory(common)
target_include_directories(arch BEFORE PUBLIC ${NUTTX_CHIP_ABS_DIR} common
${ARCH_SUBDIR})

if(NOT CONFIG_BUILD_FLAT)
if(CONFIG_BUILD_PROTECTED)
target_include_directories(arch_interface BEFORE PUBLIC ${NUTTX_CHIP_ABS_DIR}
common ${ARCH_SUBDIR})
endif()
4 changes: 4 additions & 0 deletions arch/arm/src/qemu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ if(CONFIG_ARCH_IDLE_CUSTOM)
list(APPEND SRCS qemu_idle.c)
endif()

if(CONFIG_BUILD_KERNEL)
list(APPEND SRCS qemu_pgalloc.c)
endif()

target_sources(arch PRIVATE ${SRCS})

0 comments on commit 6fb12b0

Please sign in to comment.