apps/examples/netloop: will now build as an NSH built-in app
This commit is contained in:
parent
71d944a5d0
commit
32666422a8
@ -6,9 +6,20 @@
|
||||
config EXAMPLES_NETLOOP
|
||||
bool "Local loopback example"
|
||||
default n
|
||||
depends on !NSH_BUILTIN_APPS && NET_LOOPBACK && NET_TCP && NET_TCPBACKLOG && NET_TCP_READAHEAD && NET_TCP_WRITE_BUFFERS && NET_IPv4
|
||||
depends on NET_LOOPBACK && NET_TCP && NET_TCPBACKLOG && NET_TCP_READAHEAD && NET_TCP_WRITE_BUFFERS && NET_IPv4
|
||||
---help---
|
||||
Enable the local loopback example
|
||||
|
||||
if EXAMPLES_NETLOOP
|
||||
if NSH_BUILTIN_APPS
|
||||
|
||||
config EXAMPLES_NETLOOP_STACKSIZE
|
||||
int "Loopback test stack size"
|
||||
default 2048
|
||||
|
||||
config EXAMPLES_NETLOOP_PRIORITY
|
||||
int "Loopback test task priority"
|
||||
default 100
|
||||
|
||||
endif # NSH_BUILTIN_APPS
|
||||
endif # EXAMPLES_NETLOOP
|
||||
|
@ -70,6 +70,13 @@ else
|
||||
INSTALL_DIR = $(BIN_DIR)
|
||||
endif
|
||||
|
||||
CONFIG_EXAMPLES_NETLOOP_STACKSIZE ?= 2048
|
||||
CONFIG_EXAMPLES_NETLOOP_PRIORITY ?= 100
|
||||
|
||||
APPNAME = netloop
|
||||
PRIORITY = $(CONFIG_EXAMPLES_NETLOOP_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_EXAMPLES_NETLOOP_STACKSIZE)
|
||||
|
||||
CONFIG_XYZ_PROGNAME ?= poll$(EXEEXT)
|
||||
PROGNAME = $(CONFIG_XYZ_PROGNAME)
|
||||
|
||||
@ -105,7 +112,15 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user