diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-01 16:23:30 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-01 16:23:30 -0600 |
commit | f3a67058fff07fe3ba081795903ee64b4553075f (patch) | |
tree | 2d236b38e3d0a157511be0a3e9b9b86e6b26c1d8 /apps/interpreters | |
parent | 0165a9a4b7466e7a38bdfc6e9d890a9e3593e5bd (diff) | |
download | nuttx-f3a67058fff07fe3ba081795903ee64b4553075f.tar.gz nuttx-f3a67058fff07fe3ba081795903ee64b4553075f.tar.bz2 nuttx-f3a67058fff07fe3ba081795903ee64b4553075f.zip |
Add suppport to build BAS as a NSH builtin
Diffstat (limited to 'apps/interpreters')
-rw-r--r-- | apps/interpreters/bas/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/interpreters/bas/Makefile b/apps/interpreters/bas/Makefile index 3cb5f6301..3fca2f139 100644 --- a/apps/interpreters/bas/Makefile +++ b/apps/interpreters/bas/Makefile @@ -72,6 +72,12 @@ else endif endif +# BAS built-in application info + +APPNAME = bas +PRIORITY = SCHED_PRIORITY_DEFAULT +STACKSIZE = 2048 + # Build targets all: .built @@ -89,7 +95,14 @@ $(COBJS): %$(OBJEXT): %.c install: +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) $(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep |