summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-28 23:45:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-28 23:45:56 +0000
commit129dd27cc4deb042d2f88c65927adc49c338756d (patch)
tree265b6617c9f2281815f2c2120a571fb98ce7c883 /nuttx/examples/ostest
parentcbade4e74a17aa881e8031b6785657d7166dd819 (diff)
downloadpx4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.gz
px4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.tar.bz2
px4-nuttx-129dd27cc4deb042d2f88c65927adc49c338756d.zip
Still working toward clean 8051 link
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@25 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest')
-rw-r--r--nuttx/examples/ostest/Makefile10
-rw-r--r--nuttx/examples/ostest/main.c8
2 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/examples/ostest/Makefile b/nuttx/examples/ostest/Makefile
index 22fbb2501..860bc7746 100644
--- a/nuttx/examples/ostest/Makefile
+++ b/nuttx/examples/ostest/Makefile
@@ -40,8 +40,14 @@ MKDEP = $(TOPDIR)/tools/mkdeps.sh
ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT))
-CSRCS = main.c dev_null.c mutex.c cancel.c sem.c cond.c \
- timedwait.c mqueue.c sighand.c
+CSRCS = main.c dev_null.c mutex.c cancel.c sem.c cond.c
+ifneq ($(CONFIG_DISABLE_SIGNALS),y)
+CSRCS += timedwait.c sighand.c
+endif
+ifneq ($(CONFIG_DISABLE_MQUEUE),y)
+CSRCS += mqueue.c
+endif
+
COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c
index ff1072176..06c6ad9f5 100644
--- a/nuttx/examples/ostest/main.c
+++ b/nuttx/examples/ostest/main.c
@@ -120,17 +120,25 @@ static int user_main(int argc, char *argv[])
cond_test();
+#ifndef CONFIG_DISABLE_SIGNALS
/* Verify pthreads and condition variable timed waits */
timedwait_test();
+#endif
+#ifndef CONFIG_DISABLE_MQUEUE
/* Verify pthreads and message queues */
mqueue_test();
+#endif
+#ifndef CONFIG_DISABLE_SIGNALS
/* Verify signal handlers */
sighand_test();
+#endif
+
+ printf("user_main: Exitting\n");
return 0;
}