Skip to content

Commit f602864

Browse files
TangMeng12extinguish
authored andcommitted
examples/elf: add support for CONFIG_DISABLE_SIGNALS
make the example elf can work with SIGNAL disabled Signed-off-by: v-tangmeng <[email protected]>
1 parent 490d763 commit f602864

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/elf/main/elf_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ const char *dirlist[] =
136136
{
137137
"errno",
138138
"hello",
139+
#ifndef CONFIG_DISABLE_SIGNALS
139140
"signal",
141+
#endif
140142
"struct",
141143
#ifdef CONFIG_HAVE_CXX
142144
"hello++1",

examples/elf/tests/Make.defs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
ifeq ($(CONFIG_EXAMPLES_ELF),y)
2222
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/errno
2323
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/hello
24-
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/signal
24+
ifneq ($(CONFIG_DISABLE_SIGNALS),y)
25+
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/signal
26+
endif
2527
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/struct
2628
ifeq ($(CONFIG_HAVE_CXX),y)
2729
CONFIGURED_APPS += $(APPDIR)/examples/elf/tests/helloxx

0 commit comments

Comments
 (0)