Skip to content

Commit ab0054a

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 15ca04b commit ab0054a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/elf/tests/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
include $(APPDIR)/Make.defs
2424

2525
ALL_SUBDIRS = errno hello helloxx longjmp mutex pthread signal task struct
26-
BUILD_SUBDIRS = errno hello struct signal
26+
BUILD_SUBDIRS = errno hello struct
27+
28+
ifneq ($(CONFIG_DISABLE_SIGNALS),y)
29+
ALL_SUBDIRS += signal
30+
BUILD_SUBDIRS += signal
31+
endif
2732

2833
ifeq ($(CONFIG_HAVE_CXX),y)
2934
BUILD_SUBDIRS += helloxx

0 commit comments

Comments
 (0)