This is an automated email from the ASF dual-hosted git repository. ligd pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 6630c0878318b1bec0ef9d86252a6895ab12b1d2 Author: v-tangmeng <[email protected]> AuthorDate: Fri Oct 31 14:10:10 2025 +0800 examples/elf: add support for CONFIG_DISABLE_SIGNALS make the example elf can work with SIGNAL disabled Signed-off-by: v-tangmeng <[email protected]> --- examples/elf/main/elf_main.c | 2 ++ examples/elf/tests/Make.defs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/elf/main/elf_main.c b/examples/elf/main/elf_main.c index 23930e1f9..7a52b5f6e 100644 --- a/examples/elf/main/elf_main.c +++ b/examples/elf/main/elf_main.c @@ -136,7 +136,9 @@ const char *dirlist[] = { "errno", "hello", +#ifndef CONFIG_DISABLE_SIGNALS "signal", +#endif "struct", #ifdef CONFIG_HAVE_CXX "hello++1", diff --git a/examples/elf/tests/Make.defs b/examples/elf/tests/Make.defs index b8f77f37c..e29058c49 100644 --- a/examples/elf/tests/Make.defs +++ b/examples/elf/tests/Make.defs @@ -21,7 +21,9 @@ ifeq ($(CONFIG_EXAMPLES_ELF),y) CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/errno CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/hello - CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/signal + ifneq ($(CONFIG_DISABLE_SIGNALS),y) + CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/signal + endif CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/struct ifeq ($(CONFIG_HAVE_CXX),y) CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/helloxx
