summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-22 12:07:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-22 12:07:23 -0600
commit63e2df95787cf8e81fca16e2c0d27324d3753206 (patch)
treebc3c20c615ccde5ff3147d64f4cfdd47e8537404 /apps/examples
parentfe7b49cb3a1cabc7be4ef0718f87974f81d76817 (diff)
downloadnuttx-63e2df95787cf8e81fca16e2c0d27324d3753206.tar.gz
nuttx-63e2df95787cf8e81fca16e2c0d27324d3753206.tar.bz2
nuttx-63e2df95787cf8e81fca16e2c0d27324d3753206.zip
Update makefile for kernel-build issues
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/nxterm/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/examples/nxterm/Makefile b/apps/examples/nxterm/Makefile
index 9f30917e5..f8add33dc 100644
--- a/apps/examples/nxterm/Makefile
+++ b/apps/examples/nxterm/Makefile
@@ -75,6 +75,12 @@ PROGNAME = $(CONFIG_XYZ_PROGNAME)
ROOTDEPPATH = --dep-path .
+# NX built-in application info
+
+APPNAME = nxterm
+PRIORITY = SCHED_PRIORITY_DEFAULT
+STACKSIZE = 2048
+
# Common build
VPATH =
@@ -105,7 +111,14 @@ install:
endif
+ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
+ $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
+
+context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
+else
context:
+endif
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep