From bba82bea89e4174ca8aee3c9d1707fa63b0887f7 Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Sun, 14 Jul 2024 08:42:29 +0800 Subject: [PATCH] build/cmake: allow gcc-riscv64-unknown-elf for PROTECTED This allows using Ubuntu stock gcc-riscv64-unknown-elf 10.2 toolchain for PROTECTED build with cmake. Signed-off-by: Yanfeng Liu --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0341964c7e..6cb7714a2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -812,6 +812,11 @@ if(CONFIG_BUILD_PROTECTED) $<$:supc++> $<$>:-Wl,--end-group>) + target_include_directories( + nuttx_user SYSTEM + PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include + ${CMAKE_BINARY_DIR}/include_arch) + add_custom_command( OUTPUT User.map COMMAND ${CMAKE_NM} nuttx_user > User.map