Add suppport to build BAS as a NSH builtin

This commit is contained in:
Gregory Nutt 2014-11-01 16:23:30 -06:00
parent a47ed29c57
commit b753a775d7

View File

@ -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