summaryrefslogtreecommitdiff
path: root/nuttx/sched/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 15:52:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 15:52:58 +0000
commit2f2cd79e084223f644af5bb88ff19fd4f739f8b7 (patch)
treedebe53d5a4c8d5a904b5487d632995bbab5a11a2 /nuttx/sched/Makefile
parent46d5183722a1aac256357f1a054575c6d5ab9a9f (diff)
downloadpx4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.tar.gz
px4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.tar.bz2
px4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.zip
Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/Makefile')
-rw-r--r--nuttx/sched/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/sched/Makefile b/nuttx/sched/Makefile
index 7710ae058..961560176 100644
--- a/nuttx/sched/Makefile
+++ b/nuttx/sched/Makefile
@@ -54,6 +54,10 @@ TSK_SRCS += task_posixspawn.c
endif
endif
+ifeq ($(CONFIG_SCHED_STARTHOOK),y)
+TSK_SRCS += task_starthook.c
+endif
+
SCHED_SRCS = sched_setparam.c sched_setpriority.c sched_getparam.c
SCHED_SRCS += sched_setscheduler.c sched_getscheduler.c
SCHED_SRCS += sched_yield.c sched_rrgetinterval.c sched_foreach.c