This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c4f726c0d7f191101a3b403f10f37c0e2c8c477f Author: xuxingliang <[email protected]> AuthorDate: Wed Apr 2 10:12:46 2025 +0800 noteram: fix cmake missing section directive Need to specifiy the section noteram resides in. This is done in Makefile but not cmake. Signed-off-by: xuxingliang <[email protected]> --- drivers/note/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/note/CMakeLists.txt b/drivers/note/CMakeLists.txt index 16126bb2c74..cd2c4e09902 100644 --- a/drivers/note/CMakeLists.txt +++ b/drivers/note/CMakeLists.txt @@ -31,6 +31,12 @@ if(CONFIG_DRIVERS_NOTEFILE OR CONFIG_DRIVERS_NOTELOWEROUT) endif() if(CONFIG_DRIVERS_NOTERAM) + if(NOT "${CONFIG_DRIVERS_NOTERAM_SECTION}" STREQUAL "") + target_compile_definitions( + drivers + PRIVATE -DDRIVERS_NOTERAM_SECTION="${CONFIG_DRIVERS_NOTERAM_SECTION}") + endif() + list(APPEND SRCS noteram_driver.c) endif()
