This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 37080d4f6 examples/hello: Build a loadable module for "m" in CMake.
37080d4f6 is described below
commit 37080d4f6e560b37001d1f38fd37b454c15e97e7
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 19 13:45:17 2026 +0200
examples/hello: Build a loadable module for "m" in CMake.
With CONFIG_EXAMPLES_HELLO=m, the Make build makes hello a loadable
module (MODULE = $(CONFIG_EXAMPLES_HELLO) in the Makefile). The
CMakeLists.txt does not give MODULE to nuttx_add_application(), so the
CMake build makes no program at all: hello is not built in, and there
is no bin/hello.
Give MODULE ${CONFIG_EXAMPLES_HELLO} to both nuttx_add_application()
calls, as the other examples do.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
examples/hello/CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/examples/hello/CMakeLists.txt b/examples/hello/CMakeLists.txt
index 1fb3f2f4b..355238fa6 100644
--- a/examples/hello/CMakeLists.txt
+++ b/examples/hello/CMakeLists.txt
@@ -31,6 +31,8 @@ if(CONFIG_EXAMPLES_HELLO)
${CONFIG_EXAMPLES_HELLO_STACKSIZE}
PRIORITY
${CONFIG_EXAMPLES_HELLO_PRIORITY}
+ MODULE
+ ${CONFIG_EXAMPLES_HELLO}
UID
0
GID
@@ -46,6 +48,8 @@ if(CONFIG_EXAMPLES_HELLO)
STACKSIZE
${CONFIG_EXAMPLES_HELLO_STACKSIZE}
PRIORITY
- ${CONFIG_EXAMPLES_HELLO_PRIORITY})
+ ${CONFIG_EXAMPLES_HELLO_PRIORITY}
+ MODULE
+ ${CONFIG_EXAMPLES_HELLO})
endif()
endif()