Add suppport to build BAS as a NSH builtin
This commit is contained in:
parent
a47ed29c57
commit
b753a775d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user