diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-16 15:52:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-16 15:52:15 +0000 |
commit | ab14fe398b2693da319e4bd47ed1adda704e8175 (patch) | |
tree | e6ebbb945196964ccda40619991bc966a68b0000 /apps/examples/nx/Makefile | |
parent | 77328a1539b34e3b472606673bc726241b0cac20 (diff) | |
download | px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.tar.gz px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.tar.bz2 px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.zip |
Make NX and NXTEXT built-ins; extend stm3210e-eval/nsh2 config to run the NX example from the NX command line
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3791 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nx/Makefile')
-rw-r--r-- | apps/examples/nx/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/examples/nx/Makefile b/apps/examples/nx/Makefile index 326edd118..bdeb57e22 100644 --- a/apps/examples/nx/Makefile +++ b/apps/examples/nx/Makefile @@ -59,12 +59,18 @@ endif ROOTDEPPATH = --dep-path . +# NX built-in application info + +APPNAME = nx +PRIORITY = SCHED_PRIORITY_DEFAULT +STACKSIZE = 2048 + # Common build VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: context clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,7 +84,13 @@ $(COBJS): %$(OBJEXT): %.c done ; ) @touch .built -context: +.context: +ifeq ($(CONFIG_EXAMPLES_NX_BUILTIN),y) + $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) + @touch $@ +endif + +context: .context .depend: Makefile $(SRCS) @$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep |